00001 function outstr = GE_dumpImageHeader(img)
00002 %
00003 % outstr = GE_dumpImageHeader(img)
00004 %
00005 % Writes the image header to the string outstr
00006 %
00007 % Souheil J. Inati
00008 % Dartmouth College
00009 % May 2000
00010 % souheil.inati@dartmouth.edu
00011 %
00012
00013 outstr = sprintf('im_suid: %s\n', char(img.im_suid));
00014 outstr = strcat(outstr, sprintf('im_uniq: %d\n', img.im_uniq));
00015 outstr = strcat(outstr, sprintf('im_diskid: %s\n', char(img.im_diskid)));
00016 outstr = strcat(outstr, sprintf('im_exno: %d\n', img.im_exno));
00017 outstr = strcat(outstr, sprintf('im_seno: %d\n', img.im_seno));
00018 outstr = strcat(outstr, sprintf('im_no: %d\n', img.im_no));
00019 outstr = strcat(outstr, sprintf('im_datetime: %d\n', img.im_datetime));
00020 outstr = strcat(outstr, sprintf('im_actual_dt: %d\n', img.im_actual_dt));
00021 outstr = strcat(outstr, sprintf('sctime: %f\n', img.sctime));
00022 outstr = strcat(outstr, sprintf('slthick: %f\n', img.slthick));
00023 outstr = strcat(outstr, sprintf('imatrix_X: %d\n', img.imatrix_X));
00024 outstr = strcat(outstr, sprintf('imatrix_Y: %d\n', img.imatrix_Y));
00025 outstr = strcat(outstr, sprintf('dfov: %f\n', img.dfov));
00026 outstr = strcat(outstr, sprintf('dfov_rect: %f\n', img.dfov_rect));
00027 outstr = strcat(outstr, sprintf('dim_X: %f\n', img.dim_X));
00028 outstr = strcat(outstr, sprintf('dim_Y: %f\n', img.dim_Y));
00029 outstr = strcat(outstr, sprintf('pixsize_X: %f\n', img.pixsize_X));
00030 outstr = strcat(outstr, sprintf('pixsize_Y: %f\n', img.pixsize_Y));
00031 outstr = strcat(outstr, sprintf('pdid: %s\n', sprintf('%s',img.pdid)));
00032 outstr = strcat(outstr, sprintf('contrastIV: %s\n', cstring(img.contrastIV)));
00033 outstr = strcat(outstr, sprintf('contrastOral: %s\n', cstring(img.contrastOral)));
00034 outstr = strcat(outstr, sprintf('contmode: %d\n', img.contmode));
00035 outstr = strcat(outstr, sprintf('serrx: %d\n', img.serrx));
00036 outstr = strcat(outstr, sprintf('imgrx: %d\n', img.imgrx));
00037 outstr = strcat(outstr, sprintf('screenformat: %d\n', img.screenformat));
00038 outstr = strcat(outstr, sprintf('plane: %d\n', img.plane));
00039 outstr = strcat(outstr, sprintf('scanspacing: %f\n', img.scanspacing));
00040 outstr = strcat(outstr, sprintf('im_compress: %d\n', img.im_compress));
00041 outstr = strcat(outstr, sprintf('im_scouttype: %d\n', img.im_scouttype));
00042 outstr = strcat(outstr, sprintf('loc_ras: %s\n', char(img.loc_ras)));
00043 outstr = strcat(outstr, sprintf('loc: %f\n', img.loc));
00044 outstr = strcat(outstr, sprintf('ctr_R: %f\n', img.ctr_R));
00045 outstr = strcat(outstr, sprintf('ctr_A: %f\n', img.ctr_A));
00046 outstr = strcat(outstr, sprintf('ctr_S: %f\n', img.ctr_S));
00047 outstr = strcat(outstr, sprintf('norm_R: %f\n', img.norm_R));
00048 outstr = strcat(outstr, sprintf('norm_A: %f\n', img.norm_A));
00049 outstr = strcat(outstr, sprintf('norm_S: %f\n', img.norm_S));
00050 outstr = strcat(outstr, sprintf('tlhc_R: %f\n', img.tlhc_R));
00051 outstr = strcat(outstr, sprintf('tlhc_A: %f\n', img.tlhc_A));
00052 outstr = strcat(outstr, sprintf('tlhc_S: %f\n', img.tlhc_S));
00053 outstr = strcat(outstr, sprintf('trhc_R: %f\n', img.trhc_R));
00054 outstr = strcat(outstr, sprintf('trhc_A: %f\n', img.trhc_A));
00055 outstr = strcat(outstr, sprintf('trhc_S: %f\n', img.trhc_S));
00056 outstr = strcat(outstr, sprintf('brhc_R: %f\n', img.brhc_R));
00057 outstr = strcat(outstr, sprintf('brhc_A: %f\n', img.brhc_A));
00058 outstr = strcat(outstr, sprintf('brhc_S: %f\n', img.brhc_S));
00059 outstr = strcat(outstr, sprintf('forimgrev: %s\n', char(img.forimgrev)));
00060 outstr = strcat(outstr, sprintf('tr: %d\n', img.tr));
00061 outstr = strcat(outstr, sprintf('ti: %d\n', img.ti));
00062 outstr = strcat(outstr, sprintf('te: %d\n', img.te));
00063 outstr = strcat(outstr, sprintf('te2: %d\n', img.te2));
00064 outstr = strcat(outstr, sprintf('numecho: %d\n', img.numecho));
00065 outstr = strcat(outstr, sprintf('echonum: %d\n', img.echonum));
00066 outstr = strcat(outstr, sprintf('tbldlta: %f\n', img.tbldlta));
00067 outstr = strcat(outstr, sprintf('nex: %f\n', img.nex));
00068 outstr = strcat(outstr, sprintf('contig: %d\n', img.contig));
00069 outstr = strcat(outstr, sprintf('hrtrate: %d\n', img.hrtrate));
00070 outstr = strcat(outstr, sprintf('tdel: %d\n', img.tdel));
00071 outstr = strcat(outstr, sprintf('saravg: %f\n', img.saravg));
00072 outstr = strcat(outstr, sprintf('sarpeak: %f\n', img.sarpeak));
00073 outstr = strcat(outstr, sprintf('monsar: %d\n', img.monsar));
00074 outstr = strcat(outstr, sprintf('trgwindow: %d\n', img.trgwindow));
00075 outstr = strcat(outstr, sprintf('reptime: %f\n', img.reptime));
00076 outstr = strcat(outstr, sprintf('imgpcyc: %d\n', img.imgpcyc));
00077 outstr = strcat(outstr, sprintf('xmtgain: %d\n', img.xmtgain));
00078 outstr = strcat(outstr, sprintf('rcvgain1: %d\n', img.rcvgain1));
00079 outstr = strcat(outstr, sprintf('rcvgain2: %d\n', img.rcvgain2));
00080 outstr = strcat(outstr, sprintf('mr_flip: %d\n', img.mr_flip));
00081 outstr = strcat(outstr, sprintf('mindat: %d\n', img.mindat));
00082 outstr = strcat(outstr, sprintf('cphase: %d\n', img.cphase));
00083 outstr = strcat(outstr, sprintf('swappf: %d\n', img.swappf));
00084 outstr = strcat(outstr, sprintf('pauseint: %d\n', img.pauseint));
00085 outstr = strcat(outstr, sprintf('pausetime: %f\n', img.pausetime));
00086 outstr = strcat(outstr, sprintf('obplane: %d\n', img.obplane));
00087 outstr = strcat(outstr, sprintf('slocfov: %d\n', img.slocfov));
00088 outstr = strcat(outstr, sprintf('xmtfreq: %d\n', img.xmtfreq));
00089 outstr = strcat(outstr, sprintf('autoxmtfreq: %d\n', img.autoxmtfreq));
00090 outstr = strcat(outstr, sprintf('autoxmtgain: %d\n', img.autoxmtgain));
00091 outstr = strcat(outstr, sprintf('prescan_r1: %d\n', img.prescan_r1));
00092 outstr = strcat(outstr, sprintf('prescan_r2: %d\n', img.prescan_r2));
00093 outstr = strcat(outstr, sprintf('user_bitmap: %d\n', img.user_bitmap));
00094 outstr = strcat(outstr, sprintf('cenfreq: %d\n', img.cenfreq));
00095 outstr = strcat(outstr, sprintf('imode: %d\n', img.imode));
00096 outstr = strcat(outstr, sprintf('iopt: %d\n', img.iopt));
00097 outstr = strcat(outstr, sprintf('pseq: %d\n', img.pseq));
00098 outstr = strcat(outstr, sprintf('pseqmode: %d\n', img.pseqmode));
00099 outstr = strcat(outstr, sprintf('psdname: %s\n', cstring(img.psdname)));
00100 outstr = strcat(outstr, sprintf('psd_datetime: %d\n', img.psd_datetime));
00101 outstr = strcat(outstr, sprintf('psd_iname: %s\n', cstring(img.psd_iname)));
00102 outstr = strcat(outstr, sprintf('ctyp: %d\n', img.ctyp));
00103 outstr = strcat(outstr, sprintf('cname: %s\n', cstring(img.cname)));
00104 outstr = strcat(outstr, sprintf('surfctyp: %d\n', img.surfctyp));
00105 outstr = strcat(outstr, sprintf('surfcext: %d\n', img.surfcext));
00106 outstr = strcat(outstr, sprintf('rawrunnum: %d\n', img.rawrunnum));
00107 outstr = strcat(outstr, sprintf('cal_fldstr: %d\n', img.cal_fldstr));
00108 outstr = strcat(outstr, sprintf('supp_tech: %d\n', img.supp_tech));
00109 outstr = strcat(outstr, sprintf('vbw: %f\n', img.vbw));
00110 outstr = strcat(outstr, sprintf('slquant: %d\n', img.slquant));
00111 outstr = strcat(outstr, sprintf('gpre: %d\n', img.gpre));
00112 outstr = strcat(outstr, sprintf('intr_del: %d\n', img.intr_del));
00113 outstr = strcat(outstr, sprintf('user0: %f\n', img.user0));
00114 outstr = strcat(outstr, sprintf('user1: %f\n', img.user1));
00115 outstr = strcat(outstr, sprintf('user2: %f\n', img.user2));
00116 outstr = strcat(outstr, sprintf('user3: %f\n', img.user3));
00117 outstr = strcat(outstr, sprintf('user4: %f\n', img.user4));
00118 outstr = strcat(outstr, sprintf('user5: %f\n', img.user5));
00119 outstr = strcat(outstr, sprintf('user6: %f\n', img.user6));
00120 outstr = strcat(outstr, sprintf('user7: %f\n', img.user7));
00121 outstr = strcat(outstr, sprintf('user8: %f\n', img.user8));
00122 outstr = strcat(outstr, sprintf('user9: %f\n', img.user9));
00123 outstr = strcat(outstr, sprintf('user10: %f\n', img.user10));
00124 outstr = strcat(outstr, sprintf('user11: %f\n', img.user11));
00125 outstr = strcat(outstr, sprintf('user12: %f\n', img.user12));
00126 outstr = strcat(outstr, sprintf('user13: %f\n', img.user13));
00127 outstr = strcat(outstr, sprintf('user14: %f\n', img.user14));
00128 outstr = strcat(outstr, sprintf('user15: %f\n', img.user15));
00129 outstr = strcat(outstr, sprintf('user16: %f\n', img.user16));
00130 outstr = strcat(outstr, sprintf('user17: %f\n', img.user17));
00131 outstr = strcat(outstr, sprintf('user18: %f\n', img.user18));
00132 outstr = strcat(outstr, sprintf('user19: %f\n', img.user19));
00133 outstr = strcat(outstr, sprintf('user20: %f\n', img.user20));
00134 outstr = strcat(outstr, sprintf('user21: %f\n', img.user21));
00135 outstr = strcat(outstr, sprintf('user22: %f\n', img.user22));
00136 outstr = strcat(outstr, sprintf('user23: %f\n', img.user23));
00137 outstr = strcat(outstr, sprintf('user24: %f\n', img.user24));
00138 outstr = strcat(outstr, sprintf('im_alloc_key: %s\n', sprintf('%s',img.im_alloc_key)));
00139 outstr = strcat(outstr, sprintf('im_lastmod: %d\n', img.im_lastmod));
00140 outstr = strcat(outstr, sprintf('im_verscre: %s\n', char(img.im_verscre)));
00141 outstr = strcat(outstr, sprintf('im_verscur: %s\n', char(img.im_verscur)));
00142 outstr = strcat(outstr, sprintf('im_pds_a: %d\n', img.im_pds_a));
00143 outstr = strcat(outstr, sprintf('im_pds_c: %d\n', img.im_pds_c));
00144 outstr = strcat(outstr, sprintf('im_pds_u: %d\n', img.im_pds_u));
00145 outstr = strcat(outstr, sprintf('im_checksum: %d\n', img.im_checksum));
00146 outstr = strcat(outstr, sprintf('im_archived: %d\n', img.im_archived));
00147 outstr = strcat(outstr, sprintf('im_complete: %d\n', img.im_complete));
00148 outstr = strcat(outstr, sprintf('satbits: %d\n', img.satbits));
00149 outstr = strcat(outstr, sprintf('scic: %d\n', img.scic));
00150 outstr = strcat(outstr, sprintf('satxloc1: %d\n', img.satxloc1));
00151 outstr = strcat(outstr, sprintf('satxloc2: %d\n', img.satxloc2));
00152 outstr = strcat(outstr, sprintf('satyloc1: %d\n', img.satyloc1));
00153 outstr = strcat(outstr, sprintf('satyloc2: %d\n', img.satyloc2));
00154 outstr = strcat(outstr, sprintf('satzloc1: %d\n', img.satzloc1));
00155 outstr = strcat(outstr, sprintf('satzloc2: %d\n', img.satzloc2));
00156 outstr = strcat(outstr, sprintf('satxthick: %d\n', img.satxthick));
00157 outstr = strcat(outstr, sprintf('satythick: %d\n', img.satythick));
00158 outstr = strcat(outstr, sprintf('satzthick: %d\n', img.satzthick));
00159 outstr = strcat(outstr, sprintf('flax: %d\n', img.flax));
00160 outstr = strcat(outstr, sprintf('venc: %d\n', img.venc));
00161 outstr = strcat(outstr, sprintf('thk_disclmr: %d\n', img.thk_disclmr));
00162 outstr = strcat(outstr, sprintf('ps_flag: %d\n', img.ps_flag));
00163 outstr = strcat(outstr, sprintf('ps_status: %d\n', img.ps_status));
00164 outstr = strcat(outstr, sprintf('image_type: %d\n', img.image_type));
00165 outstr = strcat(outstr, sprintf('vas_collapse: %d\n', img.vas_collapse));
00166 outstr = strcat(outstr, sprintf('user23n: %f\n', img.user23n));
00167 outstr = strcat(outstr, sprintf('user24n: %f\n', img.user24n));
00168 outstr = strcat(outstr, sprintf('proj_alg: %d\n', img.proj_alg));
00169 outstr = strcat(outstr, sprintf('proj_name: %s\n', cstring(img.proj_name)));
00170 outstr = strcat(outstr, sprintf('x_axis_rot: %f\n', img.x_axis_rot));
00171 outstr = strcat(outstr, sprintf('y_axis_rot: %f\n', img.y_axis_rot));
00172 outstr = strcat(outstr, sprintf('z_axis_rot: %f\n', img.z_axis_rot));
00173 outstr = strcat(outstr, sprintf('thresh_min1: %d\n', img.thresh_min1));
00174 outstr = strcat(outstr, sprintf('thresh_max1: %d\n', img.thresh_max1));
00175 outstr = strcat(outstr, sprintf('thresh_min2: %d\n', img.thresh_min2));
00176 outstr = strcat(outstr, sprintf('thresh_max2: %d\n', img.thresh_max2));
00177 outstr = strcat(outstr, sprintf('echo_trn_len: %d\n', img.echo_trn_len));
00178 outstr = strcat(outstr, sprintf('frac_echo: %d\n', img.frac_echo));
00179 outstr = strcat(outstr, sprintf('prep_pulse: %d\n', img.prep_pulse));
00180 outstr = strcat(outstr, sprintf('cphasenum: %d\n', img.cphasenum));
00181 outstr = strcat(outstr, sprintf('var_echo: %d\n', img.var_echo));
00182 outstr = strcat(outstr, sprintf('ref_img: %s\n', char(img.ref_img)));
00183 outstr = strcat(outstr, sprintf('sum_img: %s\n', char(img.sum_img)));
00184 outstr = strcat(outstr, sprintf('img_window: %d\n', img.img_window));
00185 outstr = strcat(outstr, sprintf('img_level: %d\n', img.img_level));
00186 outstr = strcat(outstr, sprintf('slop_int_1: %d\n', img.slop_int_1));
00187 outstr = strcat(outstr, sprintf('slop_int_2: %d\n', img.slop_int_2));
00188 outstr = strcat(outstr, sprintf('slop_int_3: %d\n', img.slop_int_3));
00189 outstr = strcat(outstr, sprintf('slop_int_4: %d\n', img.slop_int_4));
00190 outstr = strcat(outstr, sprintf('slop_int_5: %d\n', img.slop_int_5));
00191 outstr = strcat(outstr, sprintf('slop_float_1: %f\n', img.slop_float_1));
00192 outstr = strcat(outstr, sprintf('slop_float_2: %f\n', img.slop_float_2));
00193 outstr = strcat(outstr, sprintf('slop_float_3: %f\n', img.slop_float_3));
00194 outstr = strcat(outstr, sprintf('slop_float_4: %f\n', img.slop_float_4));
00195 outstr = strcat(outstr, sprintf('slop_float_5: %f\n', img.slop_float_5));
00196 outstr = strcat(outstr, sprintf('slop_str_1: %s\n', cstring(img.slop_str_1)));
00197 outstr = strcat(outstr, sprintf('slop_str_2: %s\n', cstring(img.slop_str_2)));
00198 outstr = strcat(outstr, sprintf('scanactno: %d\n', img.scanactno));
00199 outstr = strcat(outstr, sprintf('vasflags: %d\n', img.vasflags));
00200 outstr = strcat(outstr, sprintf('vencscale: %f\n', img.vencscale));
00201 outstr = strcat(outstr, sprintf('integrity: %d\n', img.integrity));
00202 outstr = strcat(outstr, sprintf('fphase: %d\n', img.fphase));
00203 outstr = strcat(outstr, sprintf('freq_dir: %d\n', img.freq_dir));
00204 outstr = strcat(outstr, sprintf('vas_mode: %d\n', img.vas_mode));
00205 outstr = strcat(outstr, sprintf('image_uid: %s\n', sprintf('%s',img.image_uid)));
00206 outstr = strcat(outstr, sprintf('sop_uid: %s\n', sprintf('%s',img.sop_uid)));
00207 outstr = strcat(outstr, sprintf('dont_use_1: %d\n', img.dont_use_1));
00208 outstr = strcat(outstr, sprintf('dont_use_2: %d\n', img.dont_use_2));
00209 outstr = strcat(outstr, sprintf('dont_use_3: %d\n', img.dont_use_3));
00210 outstr = strcat(outstr, sprintf('pscopts: %d\n', img.pscopts));
00211 outstr = strcat(outstr, sprintf('asoffsetx: %d\n', img.asoffsetx));
00212 outstr = strcat(outstr, sprintf('asoffsety: %d\n', img.asoffsety));
00213 outstr = strcat(outstr, sprintf('asoffsetz: %d\n', img.asoffsetz));
00214 outstr = strcat(outstr, sprintf('unoriginal: %d\n', img.unoriginal));
00215 outstr = strcat(outstr, sprintf('interleaves: %d\n', img.interleaves));
00216 outstr = strcat(outstr, sprintf('effechospace: %d\n', img.effechospace));
00217 outstr = strcat(outstr, sprintf('viewsperseg: %d\n', img.viewsperseg));
00218 outstr = strcat(outstr, sprintf('rbpm: %d\n', img.rbpm));
00219 outstr = strcat(outstr, sprintf('rtpoint: %d\n', img.rtpoint));
00220 outstr = strcat(outstr, sprintf('rcvrtype: %d\n', img.rcvrtype));
00221 outstr = strcat(outstr, sprintf('dbdt: %f\n', img.dbdt));
00222 outstr = strcat(outstr, sprintf('dbdtper: %f\n', img.dbdtper));
00223 outstr = strcat(outstr, sprintf('estdbdtper: %f\n', img.estdbdtper));
00224 outstr = strcat(outstr, sprintf('estdbdtts: %f\n', img.estdbdtts));
00225 outstr = strcat(outstr, sprintf('saravghead: %f\n', img.saravghead));
00226 outstr = strcat(outstr, sprintf('neg_scanspacing: %f\n', img.neg_scanspacing));
00227 outstr = strcat(outstr, sprintf('offsetfreq: %d\n', img.offsetfreq));
00228 outstr = strcat(outstr, sprintf('user_usage_tag: %d\n', img.user_usage_tag));
00229 outstr = strcat(outstr, sprintf('user_fill_mapMSW: %d\n', img.user_fill_mapMSW));
00230 outstr = strcat(outstr, sprintf('user_fill_mapLSW: %d\n', img.user_fill_mapLSW));
00231 outstr = strcat(outstr, sprintf('user25: %f\n', img.user25));
00232 outstr = strcat(outstr, sprintf('user26: %f\n', img.user26));
00233 outstr = strcat(outstr, sprintf('user27: %f\n', img.user27));
00234 outstr = strcat(outstr, sprintf('user28: %f\n', img.user28));
00235 outstr = strcat(outstr, sprintf('user29: %f\n', img.user29));
00236 outstr = strcat(outstr, sprintf('user30: %f\n', img.user30));
00237 outstr = strcat(outstr, sprintf('user31: %f\n', img.user31));
00238 outstr = strcat(outstr, sprintf('user32: %f\n', img.user32));
00239 outstr = strcat(outstr, sprintf('user33: %f\n', img.user33));
00240 outstr = strcat(outstr, sprintf('user34: %f\n', img.user34));
00241 outstr = strcat(outstr, sprintf('user35: %f\n', img.user35));
00242 outstr = strcat(outstr, sprintf('user36: %f\n', img.user36));
00243 outstr = strcat(outstr, sprintf('user37: %f\n', img.user37));
00244 outstr = strcat(outstr, sprintf('user38: %f\n', img.user38));
00245 outstr = strcat(outstr, sprintf('user39: %f\n', img.user39));
00246 outstr = strcat(outstr, sprintf('user40: %f\n', img.user40));
00247 outstr = strcat(outstr, sprintf('user41: %f\n', img.user41));
00248 outstr = strcat(outstr, sprintf('user42: %f\n', img.user42));
00249 outstr = strcat(outstr, sprintf('user43: %f\n', img.user43));
00250 outstr = strcat(outstr, sprintf('user44: %f\n', img.user44));
00251 outstr = strcat(outstr, sprintf('user45: %f\n', img.user45));
00252 outstr = strcat(outstr, sprintf('user46: %f\n', img.user46));
00253 outstr = strcat(outstr, sprintf('user47: %f\n', img.user47));
00254 outstr = strcat(outstr, sprintf('user48: %f\n', img.user48));
00255 outstr = strcat(outstr, sprintf('slop_int_6: %d\n', img.slop_int_6));
00256 outstr = strcat(outstr, sprintf('slop_int_7: %d\n', img.slop_int_7));
00257 outstr = strcat(outstr, sprintf('slop_int_8: %d\n', img.slop_int_8));
00258 outstr = strcat(outstr, sprintf('slop_int_9: %d\n', img.slop_int_9));
00259 outstr = strcat(outstr, sprintf('mr_padding: %s\n', cstring(img.mr_padding)));
00260
00261 return