Class NIFTI2Header
java.lang.Object
com.xinapse.multisliceimage.analyze.ANZHeader
com.xinapse.multisliceimage.analyze.NIFTIHeader
com.xinapse.multisliceimage.analyze.NIFTI2Header
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 NIFTIHeader
DEFAULT_FSL_COMPATIBLE_NIFTI, DEFAULT_SAVE_FSL_ORIENT, DEFAULT_SAVE_SPM_ORIENTFields inherited from class ANZHeader
COMPRESSED_EXTENSION, COMPRESSED_UPPERCASE_EXTENSION, EXTENSION, MAXDIM, UPPERCASE_EXTENSION -
Method Summary
Modifier and TypeMethodDescriptionvoidsetNCols(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 NIFTIHeader
getFSLCompatibleNIFTI, getPreferredFSLCompatibleNIFTI, getPreferredSaveFSLOrient, getPreferredSaveSPMOrient, getSaveFSLOrient, getSaveSPMOrient, savePreferredFSLCompatibleNIFTI, savePreferredSaveFSLOrient, savePreferredSaveSPMOrient, setImageOrientationPositionPatient, toString, toStringMethods inherited from class ANZHeader
getDBName, getDescription, getMinMax, setDBName, setDims, setDims, setMinMax, setNCols, setNFrames, setNRows, setNSlices
-
Method Details
-
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.
-