ncigt-fil
Functions
Vendor Specific Functions: Siemens

Functions

int parse_vrgf_siemens (char *fname, DATA_OBJ *H)
 
int read_data_from_measdat (SCAN_INFO *hdr, DATA_OBJ *rawframe, DATA_OBJ *vrgf, FILE *fid, char *buf, char *buf2, int slice, int vol, int ngc_flag)
 

Detailed Description

Functions specific to Siemens MR scanners, mostly for reading data files generated by Siemens scanners.

Function Documentation

int parse_vrgf_siemens ( char *  fname,
DATA_OBJ *  H 
)

parse the meas*.dat file, and compute the ramp-sampling regridding operator

Parameters
fnamethe filename for the EPI data (or data descriptor file)
Hthe data object for the ramp-sampling correction operator. Memory will be allocated if the H.data memory is NULL.
int read_data_from_measdat ( SCAN_INFO *  hdr,
DATA_OBJ *  rawframe,
DATA_OBJ *  vrgf,
FILE *  fid,
char *  buf,
char *  buf2,
int  slice,
int  vol,
int  ngc_flag 
)

A function to read raw data from a Siemens meas_*.dat file. Will return data corresponding to a specific slice or volume, if requested.

&& (chn_num == (hdr->ncoils-1)) ) {

&& (chn_num == (hdr->ncoils-1)) ) {

Parameters
hdrthe scan information associated with the data
rawframethe output data buffer to fill
vrgfthe rampsamp correction data. set to NULL if not available or needed
fidFILE handle to read from
bufa pre-allocated scratch buffer of size: 2 * hdr.Nsl * hdr.ncoils * hdr.frame_size * (hdr.Ny+nbaselines) * sizeof(float)
buf2a pre-allocated (COMPLEX *) scratch buffer of size: hdr.Nsl * hdr.ncoils * hdr.frame_size * hdr.Ny * sizeof(DATATYPE) DATATYPE is declared by the 'type' field of rawframe. It can be "fltc" or "dblc" (the default)
slicethe slice number to read. set to -1 to read all slices.
volthe volume number (time point) to read. (multiple calls to this function are needed to read all volumes)
ngc_flagfor EPI data, set to 1 in order apply internal ghost correct using pre-echo-train data. (default: 0==off) *