Hi all, Can a raw data file be stored as an image file without any loss? I read a raw data file into matlab using fread command( the file size is around 35MB and is 12 bit precision).When I used imwrite to save this raw data file to an image file, there was loss of data i.e, the raw data file(35MB) and the .tiff file(17MB) were not of the same size.And the presision of the .tiff file was only 8 bits as against the raw data which was 12 bits. I would like to know if there is a way in matlab to write the raw data file to an image file without any kind of loss or compression. Thanks in advance, Anuradha Agatheeswaran. |
|
Raw data to image format conversion
Started by ●November 13, 2003
Reply by ●November 14, 20032003-11-14
Try imwrite with 'compression' option set to 'none'. Navan --- anujack_21 <> wrote: > Hi all, > > Can a raw data file be stored as an image file > without any loss? > > I read a raw data file into matlab using fread > command( the file size > is around 35MB and is 12 bit precision).When I used > imwrite to save > this raw data file to an image file, there was loss > of data i.e, the > raw data file(35MB) and the .tiff file(17MB) were > not of the same > size.And the presision of the .tiff file was only 8 > bits as against > the raw data which was 12 bits. > > I would like to know if there is a way in matlab to > write the raw > data file to an image file without any kind of loss > or compression. > > Thanks in advance, > Anuradha Agatheeswaran. __________________________________ |
|