ncigt-fil
|
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) |
Functions specific to Siemens MR scanners, mostly for reading data files generated by Siemens scanners.
int parse_vrgf_siemens | ( | char * | fname, |
DATA_OBJ * | H | ||
) |
parse the meas*.dat file, and compute the ramp-sampling regridding operator
fname | the filename for the EPI data (or data descriptor file) |
H | the 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)) ) {
hdr | the scan information associated with the data |
rawframe | the output data buffer to fill |
vrgf | the rampsamp correction data. set to NULL if not available or needed |
fid | FILE handle to read from |
buf | a pre-allocated scratch buffer of size: 2 * hdr.Nsl * hdr.ncoils * hdr.frame_size * (hdr.Ny+nbaselines) * sizeof(float) |
buf2 | a 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) |
slice | the slice number to read. set to -1 to read all slices. |
vol | the volume number (time point) to read. (multiple calls to this function are needed to read all volumes) |
ngc_flag | for EPI data, set to 1 in order apply internal ghost correct using pre-echo-train data. (default: 0==off) * |