|
Doxygen Source Code Documentation
GE_readHeader.m File Reference
Go to the source code of this file.
|
Functions |
else Magic no not at the st
try at the LX2 position | fseek (fid, 3228,-1) |
| error (msg) |
end end Load the pixel header | fseek (fid, pix_hdr_offset,-1) |
Check for epirecon images | if (pix_hdr.img_l_dbHdr==0 &byte_align==0) error('This is a epirecon image.No header') end%Load the suite header fseek(fid |
Load the exam header | fseek (fid, ex_hdr_offset,-1) |
Load the series header | fseek (fid, se_hdr_offset,-1) |
Load the image header | fseek (fid, im_hdr_offset,-1) |
Close the file | fclose (fid) |
Variables |
| function [su_hdr, ex_hdr, se_hdr, im_hdr, pix_hdr, im_offset] |
note | __pad0__ |
note | int32 |
if | magic |
| pix_hdr_offset = 0 |
| su_hdr_size = 114 |
| ex_hdr_size = 1024 |
| se_hdr_size = 1020 |
| im_hdr_size = 1022 |
else Magic no not at the st | word |
else | msg = 'This is not a 5.X or LX2 format image. No Magic Number.' |
| pix_hdr = GE_readHeaderPixel(fid, byte_align) |
Compute the offsets | su_hdr_offset = pix_hdr.img_p_dbHdr |
| ex_hdr_offset = su_hdr_offset + su_hdr_size |
| se_hdr_offset = ex_hdr_offset + ex_hdr_size |
| im_hdr_offset = se_hdr_offset + se_hdr_size |
| im_offset = pix_hdr_offset + pix_hdr.img_hdr_length |
| su_hdr = GE_readHeaderSuite(fid, byte_align) |
| ex_hdr = GE_readHeaderExam(fid, byte_align) |
| se_hdr = GE_readHeaderSeries(fid, byte_align) |
| im_hdr = GE_readHeaderImage(fid, byte_align) |
Function Documentation
else Magic no not at the st try at the LX2 position fseek |
( |
fid |
, |
|
|
3228 |
, |
|
|
- |
1 |
|
) |
|
|
Check for epirecon images if |
( |
pix_hdr. |
img_l_dbHdr = = 0 & byte_align==0 |
) |
|
|
Variable Documentation
Study Entity Unique ID ex_hdr = GE_readHeaderExam(fid, byte_align) |
|
Integer Slop Field im_hdr = GE_readHeaderImage(fid, byte_align) |
|
|
Definition at line 20 of file GE_readHeader.m.
Referenced by BlockComputeSNR(), BMotionSearchCross2(), BMotionSearchExhaust(), BMotionSearchSimple(), CompileTests(), ComputeMotionLumBlock(), DoBIntraCode(), DoIntraCode(), FindBestMatch(), FindBestMatchExhaust(), FindBestMatchLogarithmic(), FindBestMatchTwoLevel(), GenBFrame(), GenIFrame(), GenMPEGStream(), GenPFrame(), LumAddMotionError(), LumBlockMAD(), LumMotionError(), LumMotionErrorA(), LumMotionErrorB(), LumMotionErrorC(), LumMotionErrorD(), main(), mp_fwd_dct_fast(), mpeg_jrevdct_quick(), NotifyMasterDone(), PLocalSearch(), PLogarithmicSearch(), PSubSampleSearch(), PTwoLevelSearch(), ReadFrame(), StartDecodeServer(), StartIOServer(), StartMasterServer(), time_elapsed(), and WaitForOutputFile(). |
else msg = 'This is not a 5.X or LX2 format image. No Magic Number.' |
|
|
Definition at line 42 of file GE_readHeader.m.
Referenced by AFNI_marks_quality_check(), AFNI_niml_redisplay_CB(), AFNI_process_NIML_data(), AFNI_startup_timeout_CB(), atype_squawk(), DCM_OpenFile(), detected(), DRAW_label_CB(), drive_MCW_imseq(), ftnstop(), line_count(), MCW_help_CB(), MCW_message_alter(), MCW_popup_message(), MCW_reghelp_children(), MCW_reghint_children(), MCW_register_help(), MCW_register_hint(), MCW_textwin_alter(), new_MCW_textwin(), new_MCW_textwin_2001(), NI_stream_reopen(), Pbadmsg(), PC_syntax(), process_NIML_AFNI_dataset(), process_NIML_AFNI_volumedata(), process_NIML_Node_ROI(), process_NIML_SUMA_ijk(), process_NIML_SUMA_ixyz(), process_NIML_SUMA_node_normals(), SCAT_main(), Syntax(), T3D_check_outliers(), T3D_geometry_parent_CB(), T3D_poperr(), T3D_swap_CB(), TAG_beep_CB(), TT_syntax(), and UC_syntax(). |
Equipment Unique ID se_hdr = GE_readHeaderSeries(fid, byte_align) |
|
Suite Record Checksum su_hdr = GE_readHeaderSuite(fid, byte_align) |
|
|
Definition at line 30 of file GE_readHeader.m.
Referenced by cput_int_int(), cput_short_short(), get_ascii_item(), ncx_getn_float_float(), ncx_getn_int_int(), ncx_getn_int_long(), ncx_getn_short_short(), ncx_putn_float_float(), ncx_putn_int_int(), ncx_putn_int_long(), ncx_putn_short_short(), and word_align(). |
|