Class NIFTI2Header
java.lang.Object
com.xinapse.multisliceimage.Analyze.ANZHeader
com.xinapse.multisliceimage.Analyze.NIFTIHeader
com.xinapse.multisliceimage.Analyze.NIFTI2Header
- All Implemented Interfaces:
Cloneable
This class represents a multi-dimensional NIFTI-2 image header file. The header file
may either:
- contain all the dimensional and descriptive information about a NIFTI-2 image, but none of the pixel data. This is like the Analyze 7.5 .img/.hdr file format.
- contain both the dimensional and descriptive information about a NIFTI-2 image, and also the pixel data.
-
Field Summary
Fields inherited from class com.xinapse.multisliceimage.Analyze.NIFTIHeader
DEFAULT_FSL_COMPATIBLE_NIFTI, DEFAULT_SAVE_FSL_ORIENT, DEFAULT_SAVE_SPM_ORIENT, extData, extension, FSL_COMPATIBLE_NIFTI_PROPERTY_KEY, magic, qForm, qOffsetX, qOffsetY, qOffsetZ, quaternB, quaternC, quaternD, SAVE_FSL_ORIENT_PROPERTY_KEY, SAVE_SPM_ORIENT_PROPERTY_KEY, sForm, sRowX, sRowY, sRowZFields inherited from class com.xinapse.multisliceimage.Analyze.ANZHeader
AUXFILE_LEN, COMPRESSED_EXTENSION, COMPRESSED_UPPERCASE_EXTENSION, DESCRIPTION_LEN, EXTENSION, MAXDIM, UPPERCASE_EXTENSION, voxOffset -
Method Summary
Modifier and TypeMethodDescriptionprotected intReturns the size of this NIFTI (NIFTI-1 or NIFTI-2) header.voidsetNCols(int nc) Sets the number of columns in this NIFTI-2 image header.voidsetNFrames(int nF) Sets the number of frames in this NIFTI-2 image header.voidsetNRows(int nr) Sets the number of rows in this NIFTI-2 image header.voidsetNSlices(int ns) Sets the number of slices in this NIFTI-2 image header.Methods inherited from class com.xinapse.multisliceimage.Analyze.NIFTIHeader
clone, getPreferredFSLCompatibleNIFTI, getPreferredSaveFSLOrient, getPreferredSaveSPMOrient, readExtensions, readExtensions, savePreferredFSLCompatibleNIFTI, savePreferredSaveFSLOrient, savePreferredSaveSPMOrient, setImageOrientationPositionPatient, toString, toString, writeExtensions, writeExtensionsMethods inherited from class com.xinapse.multisliceimage.Analyze.ANZHeader
getDBName, getDescription, getMinMax, setDBName, setDims, setDims, setMinMax, setNCols, setNFrames, setNRows, setNSlices
-
Method Details
-
getHeaderSize
protected int getHeaderSize()Description copied from class:NIFTIHeaderReturns the size of this NIFTI (NIFTI-1 or NIFTI-2) header.- Overrides:
getHeaderSizein classNIFTIHeader- Returns:
- the size of this NIFTI header.
-
setNCols
public void setNCols(int nc) Sets the number of columns in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of columns in this way will cause errors.- Parameters:
nc- the number of columns.
-
setNRows
public void setNRows(int nr) Sets the number of rows in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of rows in this way will cause errors.- Parameters:
nr- the number of rows.
-
setNSlices
public void setNSlices(int ns) Sets the number of slices in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values into a NIFTI2Image, then manipulating the number of slices in this way will cause errors.- Parameters:
ns- the number of slices.
-
setNFrames
public void setNFrames(int nF) Sets the number of frames in this NIFTI-2 image header. Warning! If this image header is associated with a set of pixel values in a NIFTI2Image, then manipulating the number of frames in this way will cause errors.- Parameters:
nF- the number of frames.
-