From: Louise Anderson on
Hi,
I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
Any help would be greatly appreciated!
Best Regards,
Louise Anderson
From: us on
"Louise Anderson" <andersol(a)student.chalmers.se> wrote in message <hvd41d$ho4$1(a)fred.mathworks.com>...
> Hi,
> I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> Any help would be greatly appreciated!
> Best Regards,
> Louise Anderson

a hint:
- if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...

% just to name a few...
help fopen;
help fclose;
help fread;
help memmapfile;

us
From: Louise Anderson on
"us " <us(a)neurol.unizh.ch> wrote in message <hvd4gv$id7$1(a)fred.mathworks.com>...
> "Louise Anderson" <andersol(a)student.chalmers.se> wrote in message <hvd41d$ho4$1(a)fred.mathworks.com>...
> > Hi,
> > I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> > Any help would be greatly appreciated!
> > Best Regards,
> > Louise Anderson
>
> a hint:
> - if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...
>
> % just to name a few...
> help fopen;
> help fclose;
> help fread;
> help memmapfile;
>
> us


Hi,
Unfortunatly, I do not know the underlying structure of them. Is there anybody else who have succeded of loading a .fid file into Matlab, or written some interface for it?
Kind regards,
Louise
From: us on
"Louise Anderson" <andersol(a)student.chalmers.se> wrote in message <hvd6ak$d2f$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <hvd4gv$id7$1(a)fred.mathworks.com>...
> > "Louise Anderson" <andersol(a)student.chalmers.se> wrote in message <hvd41d$ho4$1(a)fred.mathworks.com>...
> > > Hi,
> > > I am trying to write a program for MRI image reconstruction in Matlab at the moment and would like to load the raw k-space data into Matlab. The data is from a Bruker BioSpin machine with file extention .fid, is there any way of loading it directly into Matlab or do I need to find some way to convert it into an ASCII file first?
> > > Any help would be greatly appreciated!
> > > Best Regards,
> > > Louise Anderson
> >
> > a hint:
> > - if you know the anatomy of those files, use ML's low-level i/o functions to slurp it...
> >
> > % just to name a few...
> > help fopen;
> > help fclose;
> > help fread;
> > help memmapfile;
> >
> > us
>
>
> Hi,
> Unfortunatly, I do not know the underlying structure of them. Is there anybody else who have succeded of loading a .fid file into Matlab, or written some interface for it?
> Kind regards,
> Louise

well... this may(!) be helpful

http://www.pascal-man.com/navigation/faq-java-browser/file-conversion.shtml

us
From: Walter Roberson on
Louise Anderson wrote:
> "us " <us(a)neurol.unizh.ch> wrote in message
> <hvd4gv$id7$1(a)fred.mathworks.com>...
>> "Louise Anderson" <andersol(a)student.chalmers.se> wrote in message
>> <hvd41d$ho4$1(a)fred.mathworks.com>...

>> > I am trying to write a program for MRI image reconstruction in
>> Matlab at the moment and would like to load the raw k-space data into
>> Matlab. The data is from a Bruker BioSpin machine with file extention
>> .fid, is there any way of loading it directly into Matlab or do I need
>> to find some way to convert it into an ASCII file first?

> Unfortunatly, I do not know the underlying structure of them. Is there
> anybody else who have succeded of loading a .fid file into Matlab, or
> written some interface for it?

If the Bruker BioSpin are like the Bruker ElectroSpin then there is a
console command to convert them to ascii.

The format for the 360 and 400 fid files is not especially complex;
about the only real trick is that you have to detect the 'endian'. Do
*not* simply check out a couple of files and use the byte order of
those, as the devices are allowed to store in either byte order, and
eventually you will receive a file in the other byte order.

Unfortunately I no longer remember what the .fid format _is_, and I
believe we have lost the conversion code.

See, for example,

http://www.pascal-man.com/navigation/faq-java-browser/fid-To-Ascii.shtml