Learn R Programming

AnalyzeFMRI (version 1.1-11)

f.read.analyze.header: read Analyze header file

Description

Reads the ANALYZE image format .hdr header file into a list.

Usage

f.read.analyze.header(file)

Arguments

Value

  • A list containing the information in the fields of the .hdr file.
  • file.namepath name of the .img file
  • swapTRUE or FALSE variable indicating whether files are big or little endian
  • sizeof.hdrMust indicate the byte size of the header file
  • data.typecharacter vector indicating data storage type for each voxel
  • db.name
  • extentsShould be 16384, the image file is created as contiguous with a minimum extent size
  • session.error
  • regularMust be `r' to indicate that all images and volumes are the same size
  • hkey.un0
  • dimvector of the image dimensions: dim[1] Number of dimensions in database, usually 4; dim[2] Image X dimension; number of pixels in an image row; dim[3] Image Y dimension; number of pixel rows in slice; dim[4] Volume Z dimension, number of slices in a volume; dim[5] Time points, number of volumes in database
  • vox.unitsspecifies the spatial units of measure for a voxel
  • cal.unitsspecifies the name of the calibration unit i.e. pixel,voxel
  • unused1
  • datatypeinteger indicator of data storage type for this image
  • bitpixnumber of bits per pixel: 1, 8, 16, 32, or 64
  • dim.un0unused
  • pixdimParallel vector to dim, giving real world measurements in mm. and ms. pixdim[1]: voxel width in mm. pixdim[2]: voxel height in mm. pixdim[3]: slice thickness in mm.
  • vox.offsetbyte offset in the .img file at which voxels start. This value can be negative to specify that the absolute value is applied for every image in the file
  • scalespecify the range of calibration values. SPM extends the Analyze format by using a scaling factor for the image from the header
  • funused2
  • funused3
  • cal.maxMax display intensity
  • cal.minMin display intensity
  • compressed
  • verified
  • glmaxThe maximum pixel values for the entire database
  • glminThe minimum pixel values for the entire database
  • descripany text you like
  • aux.fileauxiliary filename
  • orientslice orientation for this dataset: 0 transverse unflipped; 1 coronal unflipped; 2 sagittal unflipped; 3 transverse flipped; 4 coronal flipped; 5 sagittal flipped
  • originatorimage central voxel coordinates. SPM uses this Analyze header field in an unorthodox way
  • generated
  • scannum
  • patient.id
  • exp.date
  • exp.time
  • hist.un0
  • views
  • vols.added
  • start.field
  • field.skip
  • omax
  • omin
  • smax
  • smin

See Also

f.analyze.file.summary

Examples

Run this code
f.read.analyze.header(system.file("example.hdr", package="AnalyzeFMRI"))

Run the code above in your browser using DataLab