Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

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

error msg   ) 
 

Close the file fclose fid   ) 
 

Load the image header fseek fid  ,
im_hdr_offset  ,
1
 

Load the series header fseek fid  ,
se_hdr_offset  ,
1
 

Load the exam header fseek fid  ,
ex_hdr_offset  ,
1
 

end end Load the pixel header fseek fid  ,
pix_hdr_offset  ,
1
 

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

note __pad0__
 

Definition at line 20 of file GE_readHeader.m.

Study Entity Unique ID ex_hdr = GE_readHeaderExam(fid, byte_align)
 

Definition at line 97 of file GE_readHeaderExam.m.

ex_hdr_offset = su_hdr_offset + su_hdr_size
 

Definition at line 53 of file GE_readHeader.m.

ex_hdr_size = 1024
 

Definition at line 38 of file GE_readHeader.m.

function[su_hdr, ex_hdr, se_hdr, im_hdr, pix_hdr, im_offset]
 

Initial value:

 GE_readHeader(IFileName)
%
% [su_hdr,ex_hdr,se_hdr,im_hdr,pix_hdr,im_offset] = GE_readHeader(IFileName)
% Reads the header info from a GE lx2 or 5.X file 
%
%
% Souheil J. Inati
% Dartmouth College
% May 2000
% souheil.inati@dartmouth.edu
%

%%%% Open the IFile %%%%%
[fid,message] = fopen(IFileName,'r','b')

Definition at line 1 of file GE_readHeader.m.

Integer Slop Field im_hdr = GE_readHeaderImage(fid, byte_align)
 

Definition at line 292 of file GE_readHeaderImage.m.

im_hdr_offset = se_hdr_offset + se_hdr_size
 

Definition at line 55 of file GE_readHeader.m.

im_hdr_size = 1022
 

Definition at line 40 of file GE_readHeader.m.

im_offset = pix_hdr_offset + pix_hdr.img_hdr_length
 

Definition at line 56 of file GE_readHeader.m.

note int32
 

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().

if magic
 

Initial value:

= 1229801286
  % This is a 5.X format image
  byte_align = 0

Definition at line 33 of file GE_readHeader.m.

Referenced by nc_get_NC(), and SUMA_FreeSurfer_ReadBin_eng().

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().

byte displacement to user defined data pix_hdr = GE_readHeaderPixel(fid, byte_align)
 

Definition at line 51 of file GE_readHeaderPixel.m.

pix_hdr_offset = 0
 

Definition at line 36 of file GE_readHeader.m.

Equipment Unique ID se_hdr = GE_readHeaderSeries(fid, byte_align)
 

Definition at line 118 of file GE_readHeaderSeries.m.

se_hdr_offset = ex_hdr_offset + ex_hdr_size
 

Definition at line 54 of file GE_readHeader.m.

se_hdr_size = 1020
 

Definition at line 39 of file GE_readHeader.m.

Suite Record Checksum su_hdr = GE_readHeaderSuite(fid, byte_align)
 

Definition at line 25 of file GE_readHeaderSuite.m.

Check for epirecon images su_hdr_offset = pix_hdr.img_p_dbHdr
 

Definition at line 64 of file GE_readHeader.m.

su_hdr_size = 114
 

Definition at line 37 of file GE_readHeader.m.

else Magic no not at the st word
 

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().

 

Powered by Plone

This site conforms to the following standards: