Home > vbmeg > external > bioelectromagnetism > Analyze_read_help.m

Analyze_read_help

PURPOSE ^

AVW_IMG_READ: read Analyze format data image (*.img)

SYNOPSIS ^

function avw = Analyze_read_help(file,IMGorient)

DESCRIPTION ^

 AVW_IMG_READ: read Analyze format data image (*.img)
 
 avw = avw_img_read(fileprefix, orient)
 
 file - a string, the filename without the .img extension
 
 orient - read a specified orientation, integer values:
 
          '', use header history orient field
          0,  transverse unflipped (LAS*)
          1,  coronal unflipped (LA*S)
          2,  sagittal unflipped (L*AS)
          3,  transverse flipped (LPS*)
          4,  coronal flipped (LA*I)
          5,  sagittal flipped (L*AI)
 
 where * follows the slice dimension and letters indicate +XYZ
 orientations (L left, R right, A anterior, P posterior,
 I inferior, & S superior).  The returned 3D matrix will 
 correspond with the default ANALYZE coordinate system, which 
 is Left-handed:
 
 X-Y plane is Transverse
 X-Z plane is Coronal
 Y-Z plane is Sagittal
 
 X axis runs from patient right (low X) to patient Left (high X)
 Y axis runs from posterior (low Y) to Anterior (high Y)
 Z axis runs from inferior (low Z) to Superior (high Z)
 
 Some files may contain data in the 3-5 orientations, but this
 is unlikely. For more information about orientation, see the
 documentation at the end of this .m file.  See also the
 AVW_FLIP function for orthogonal reorientation.

 Returned values:

 avw.hdr - a struct with image data parameters.
 avw.img - a 3D matrix of image data (double precision).

 See also: AVW_HDR_READ (called by this function),
           AVW_VIEW, AVW_IMG_WRITE, AVW_FLIP

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function avw = Analyze_read_help(file,IMGorient)
0002 
0003 % AVW_IMG_READ: read Analyze format data image (*.img)
0004 %
0005 % avw = avw_img_read(fileprefix, orient)
0006 %
0007 % file - a string, the filename without the .img extension
0008 %
0009 % orient - read a specified orientation, integer values:
0010 %
0011 %          '', use header history orient field
0012 %          0,  transverse unflipped (LAS*)
0013 %          1,  coronal unflipped (LA*S)
0014 %          2,  sagittal unflipped (L*AS)
0015 %          3,  transverse flipped (LPS*)
0016 %          4,  coronal flipped (LA*I)
0017 %          5,  sagittal flipped (L*AI)
0018 %
0019 % where * follows the slice dimension and letters indicate +XYZ
0020 % orientations (L left, R right, A anterior, P posterior,
0021 % I inferior, & S superior).  The returned 3D matrix will
0022 % correspond with the default ANALYZE coordinate system, which
0023 % is Left-handed:
0024 %
0025 % X-Y plane is Transverse
0026 % X-Z plane is Coronal
0027 % Y-Z plane is Sagittal
0028 %
0029 % X axis runs from patient right (low X) to patient Left (high X)
0030 % Y axis runs from posterior (low Y) to Anterior (high Y)
0031 % Z axis runs from inferior (low Z) to Superior (high Z)
0032 %
0033 % Some files may contain data in the 3-5 orientations, but this
0034 % is unlikely. For more information about orientation, see the
0035 % documentation at the end of this .m file.  See also the
0036 % AVW_FLIP function for orthogonal reorientation.
0037 %
0038 % Returned values:
0039 %
0040 % avw.hdr - a struct with image data parameters.
0041 % avw.img - a 3D matrix of image data (double precision).
0042 %
0043 % See also: AVW_HDR_READ (called by this function),
0044 %           AVW_VIEW, AVW_IMG_WRITE, AVW_FLIP
0045 %
0046

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005