it worked.. thanks a lot
On Jan 3, 1:56 pm, Mehul Sampat <
mehul.sam...@ieee.org> wrote:
> ps: oops the first line in the code snippet should be: fid =
> fopen(filename,'r','ieee-be');
>
>
>
>
>
>
>
> On Tue, Jan 3, 2012 at 12:47 AM, Mehul Sampat <
mehul.sam...@ieee.org> wrote:
> > Hi Praful,
>
> > The uncompressed images should not have a lot of noise. Most likely it
> > could be
> > a big endian vs. little endian issue. (I believe you need to read it in as
> > big-endian)
> > here is a snippet of matlab code to read the *.1 file. (you can change it
> > to c if needed)
> > -------------------------------------------
> > fid = fopen(fid,'r','ieee-be');
> > image = fread(fid,[COLS ROWS],'short');
> > image = image';
> > image = uint16(image);
> > -------------------------------------------
> > where COLS,ROWS is the number of columns/rows in the image; get this info
> > from *.ics file.
> > Please let the group know if this works for you.
> > Good luck
> > Mehul
>