|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xinapse.multisliceimage.Analyze.ANZHeader
com.xinapse.multisliceimage.Analyze.NIFTIHeader
public class NIFTIHeader
This class represents a multi-dimensional NIFTI image header file. The header file may either:
| Field Summary | |
|---|---|
static boolean |
DEFAULT_FSL_COMPATIBLE_NIFTI
The default setting of whether NIFTI-1 images that have qform and sform orientation both unset should be read as having an increasing a patient left coordinate value with stored pixel data column number, and whether NIFTI-1 images should be prevented from being written without orientation information. |
static boolean |
DEFAULT_SAVE_FSL_ORIENT
The default setting of whether NIFTI-1 images should be saved with an orientation that is compatible with FSL, where possible. |
static boolean |
DEFAULT_SAVE_SPM_ORIENT
The default setting of whether NIFTI-1 images should be saved with an orientation that is compatible with SPM, where possible. |
static java.lang.String |
FSL_COMPATIBLE_NIFTI_PROPERTY_KEY
The property value key for setting whether NIFTI-1 images that have qform and sform orientation both unset should be read as having an increasing a patient left coordinate value with stored pixel data column number, and whether NIFTI-1 images should be prevented from being written without orientation information. |
NIFTIXForm |
qForm
The NIFTI qform parameter. |
float |
qOffsetX
The NIFTI qoffset_x parameter. |
float |
qOffsetY
The NIFTI qoffset_y parameter. |
float |
qOffsetZ
The NIFTI qoffset_z parameter. |
float |
quaternB
The NIFTI quatern_b parameter. |
float |
quaternC
The NIFTI quatern_c parameter. |
float |
quaternD
The NIFTI quatern_d parameter. |
static java.lang.String |
SAVE_FSL_ORIENT_PROPERTY_KEY
The property value key for setting whether NIFTI-1 images should be saved with an orientation that is compatible with FSL, where possible. |
static java.lang.String |
SAVE_SPM_ORIENT_PROPERTY_KEY
The property value key for setting whether NIFTI-1 images should be saved with an orientation that is compatible with SPM, where possible. |
NIFTIXForm |
sForm
The NIFTI sform parameter. |
float[] |
sRowX
The NIFTI srow_x parameter. |
float[] |
sRowY
The NIFTI srow_y parameter. |
float[] |
sRowZ
The NIFTI srow_z parameter. |
| Fields inherited from class com.xinapse.multisliceimage.Analyze.ANZHeader |
|---|
COMPRESSED_EXTENSION, COMPRESSED_UPPERCASE_EXTENSION, EXTENSION, MAXDIM, UPPERCASE_EXTENSION, voxOffset |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns an exact copy of this NIFTI header. |
protected void |
finalize()
Called by the garbage collector on this NIFTIHeader when garbage collection determines that there are no more references to the header. |
static boolean |
getPreferredFSLCompatibleNIFTI()
Returns the user's preference about whether NIFTI-1 images with both qform and sform orientations unset should be read as having the patient left coordinate increasing with stored pixel data column number, and whether NIFTI-1 images should be prevented from being written without orientation information. |
static boolean |
getPreferredSaveFSLOrient()
Returns the user's preference about whether NIFTI-1 images should be saved with an orientation that is compatible with FSL, where possible. |
static boolean |
getPreferredSaveSPMOrient()
Returns the user's preference about whether NIFTI-1 images should be saved with an orientation that is compatible with SPM, where possible. |
static void |
savePreferredFSLCompatibleNIFTI(boolean b)
Saves the user's preference about whether NIFTI-1 images should be read as having the patient left coordinate increasing with stored pixel data column number. |
static void |
savePreferredSaveFSLOrient(boolean b)
Saves the user's preference about whether NIFTI-1 images should be saved with an orientation that is compatible with FSL, where possible. |
static void |
savePreferredSaveSPMOrient(boolean b)
Saves the user's preference about whether NIFTI-1 images should be saved with an orientation that is compatible with SPM, where possible. |
void |
setImageOrientationPositionPatient(javax.vecmath.Vector3f[] cosines,
javax.vecmath.Point3f position)
|
java.lang.String |
toString()
Returns a String representation of this NIFTIHeader. |
java.lang.String |
toString(boolean html)
Returns the string representation of this NIFTI-1 compliant image header, with optional presentation in HTML format. |
| Methods inherited from class com.xinapse.multisliceimage.Analyze.ANZHeader |
|---|
getDBName, getDescription, getMinMax, setDBName, setDims, setMinMax, setNCols, setNFrames, setNRows, setNSlices |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SAVE_FSL_ORIENT_PROPERTY_KEY
public static final java.lang.String SAVE_SPM_ORIENT_PROPERTY_KEY
public static final java.lang.String FSL_COMPATIBLE_NIFTI_PROPERTY_KEY
public static final boolean DEFAULT_SAVE_FSL_ORIENT
public static final boolean DEFAULT_SAVE_SPM_ORIENT
public static final boolean DEFAULT_FSL_COMPATIBLE_NIFTI
public NIFTIXForm qForm
public NIFTIXForm sForm
public float quaternB
public float quaternC
public float quaternD
public float qOffsetX
public float qOffsetY
public float qOffsetZ
public float[] sRowX
public float[] sRowY
public float[] sRowZ
| Method Detail |
|---|
public static boolean getPreferredSaveFSLOrient()
If the system property "analyze.fslorient" exists, and the property value is either "true" or "false", then the user's preference is overridden by the property value.
public static void savePreferredSaveFSLOrient(boolean b)
b - true if NIFTI-1 images should have an orientation
that is compatible with FSL, where possible; false otherwise.public static boolean getPreferredSaveSPMOrient()
If the system property "analyze.spmorient" exists, and the property value is either "true" or "false", then the user's preference is overridden by the property value.
public static void savePreferredSaveSPMOrient(boolean b)
b - true if NIFTI-1 images should have an orientation
that is compatible with SPM, where possible; false otherwise.public static boolean getPreferredFSLCompatibleNIFTI()
If not set in the user's preferences, then the default is to interpret NIFTI-1 images as axial with an increasing patient right coordinate with increasing column number.
If the system property "nifti.fslcompatible" exists, and the property value is either "true" or "false", then the user's preference is overridden by the property value.
public static void savePreferredFSLCompatibleNIFTI(boolean b)
b - true if NIFTI-1 images should be read as having the patient left coordinate
increasing with stored pixel data column number; false otherwise.
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable - - the Exception raised by this method.
public void setImageOrientationPositionPatient(javax.vecmath.Vector3f[] cosines,
javax.vecmath.Point3f position)
throws MultiSliceImageException
MultiSliceImageExceptionpublic java.lang.String toString()
toString in class ANZHeaderpublic java.lang.String toString(boolean html)
toString in class ANZHeaderhtml - if true, then the string will contain HTML tags.
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class ANZHeaderjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||