Package gov.nih.mipav.model.file
Class FileInfoBase
- java.lang.Object
- 
- gov.nih.mipav.model.structures.ModelSerialCloneable
- 
- gov.nih.mipav.model.file.FileInfoBase
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 - Direct Known Subclasses:
- FileInfoAfni,- FileInfoAnalyze,- FileInfoAvi,- FileInfoBFLOAT,- FileInfoBioRad,- FileInfoBMP,- FileInfoBRUKER,- FileInfoCheshire,- FileInfoCOR,- FileInfoCZI,- FileInfoDicom,- FileInfoDM3,- FileInfoFits,- FileInfoGESigna4X,- FileInfoGESigna5X,- FileInfoICS,- FileInfoInterfile,- FileInfoJP2,- FileInfoJSON,- FileInfoLattice,- FileInfoLIFF,- FileInfoLSM,- FileInfoMagnetomVision,- FileInfoMATLAB,- FileInfoMedVision,- FileInfoMetaImage,- FileInfoMGH,- FileInfoMicroCat,- FileInfoMinc,- FileInfoMincHDF,- FileInfoMRC,- FileInfoNIFTI,- FileInfoNRRD,- FileInfoOME,- FileInfoPARREC,- FileInfoPGM,- FileInfoPPM,- FileInfoRaw,- FileInfoSiemensText,- FileInfoSPAR,- FileInfoSPM,- FileInfoSTK,- FileInfoSVS,- FileInfoTiff,- FileInfoTMG,- FileInfoTrackVis,- FileInfoVista,- FileInfoXML,- FileInfoZVI
 
 public abstract class FileInfoBase extends ModelSerialCloneable This structure contains the basic information that describes how the image is stored on disk.Subclasses add additional information which is particular to that image-format. This class needs work 1. fixing (making consistent what to do when null pointers encountered. see getStartLocation and getUnitsOfMeasure - Version:
- 0.9 June 30, 1998
- Author:
- Matthew J. McAuliffe, Ph.D.
- See Also:
- FileBase, Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFileInfoBase.AxisOrientationstatic classFileInfoBase.ImageOrientationstatic classFileInfoBase.Modalitystatic classFileInfoBase.Unitstatic classFileInfoBase.UnitTypeEach unit has a unit type with a given base.
 - 
Field SummaryFields Modifier and Type Field Description static intANGSTROMSUnit of measurement angstroms.static java.lang.StringANGSTROMS_STRINGString version of units of measurement - angstroms.static intAXIALAxial orientation.protected int[]axisOrientationaxis orientation used to support image ordering and display for medical images.static java.lang.String[]axisOrientationStrArray of axis orientation strings.static intBIOMAGNETIC_IMAGINGImage modality biomagnetic imaging.protected java.lang.StringcameraMakeprotected java.lang.StringcameraModelstatic intCENTIMETERSUnit of measurement centimeters.static java.lang.StringCENTIMETERS_STRINGString version of units of measurement - centimeters.static intCOLOR_FLOW_DOPPLERImage modality color flow doppler.static intCOMPRESSION_BZIP2Indicates bzip2 compression of an image.static intCOMPRESSION_GZIPIndicates gzip compression of an image.static intCOMPRESSION_NONEIndicates no compression.static intCOMPRESSION_ZIPIndicates zip compression of an image.private intcompressionTypeUsed to indicate if the raw data was also compression (0 = no, 1 = zip).static intCOMPUTED_RADIOGRAPHYImage modality CR.static intCOMPUTED_TOMOGRAPHYImage modality CT.static double[]conversionSpaceTimeUnitsDeprecated.should use enum conversionsstatic intCORONALCoronal orientation.private intdataTypeThe data type of the data (i.e. byte, short, float ...static intDEGREESstatic java.lang.StringDEGREES_STRINGString version of units of measurement - degrees.static intDIAPHANOGRAPHYImage modality diaphanography.static intDIGITAL_RADIOGRAPHYImage modality digital radiography.private float[]dimResolutionsPixel or voxel resolutions for each dimension - default = 1.0.static intDUPLEX_DOPPLERImage modality duplex doppler.private booleanendianessThe Endianess of the data.static intENDOSCOPYImage modality endoscopy.protected doubleexposureTimeprivate int[]extentsImage extents as decribed by the image file format.static intEXTERNAL_CAMERA_PHOTOGRAPHYImage modality external camera photography.static intFAImage modality Fluorescein Angiography.private intfileFormatFile format as defined in the Filebase.protected java.lang.StringfileNameThe file name which includes the path information.protected java.lang.StringfileSuffixFile suffix (ex.protected doubleFNumberprotected doublefocalLengthprotected doublefocalLength35static intGENERAL_MICROSCOPYImage modality general microscopy.static intHARDCOPYImage modality hard copy.static intHOURSUnit of measurement hours.static java.lang.StringHOURS_STRINGString version of units of measurement - hours.static intHZUnit of measurement hertz.static java.lang.StringHZ_STRINGString version of units of measurement - hertz.static intICGImage modality IndoCyanine Green.protected intimageOrientationIndicates the image orientation (i.e.private static java.lang.String[]imageOrientationStrArray of image orientation strings.static intINCHESUnit of measurement inches.static java.lang.StringINCHES_STRINGString version of units of measurement - inches.static intINTRAORAL_RADIOGRAPHYImage modality intraoral radiography.protected doubleISOSpeedRatingstatic intKILOMETERSUnit of measurement kilometers.static java.lang.StringKILOMETERS_STRINGString version of units of measurement - kilometers.static intLASER_SURFACE_SCANImage modality laser surface scan.private ModelLUTlutModelLUT associated with fileinfostatic intMAGNETIC_RESONANCEImage modality MR.static intMAGNETIC_RESONANCE_ANGIOGRAPHYImage modality MR angiography.static intMAGNETIC_RESONANCE_SPECTROSCOPYImage modality MR SPECT.static intMAMMOGRAPHYImage modality mammography.private doublemaxImage maximum intensity for single channel image.private doublemaxBImage maximum intensity for the blue channel of an RGB image.private doublemaxGImage maximum intensity for the green channel of an RGB image.private doublemaxRImage maximum intensity for the red channel of an RGB image.static intMETERSUnit of measurement meters.static java.lang.StringMETERS_STRINGString version of units of measurement - meters.static intMICROMETERSUnit of measurement micrometers.static java.lang.StringMICROMETERS_STRINGString version of units of measurement - micrometers.static intMICROSECUnit of measurement microseconds.static java.lang.StringMICROSEC_STRINGString version of units of measurement - microseconds.static intMILESUnit of measurement miles.static java.lang.StringMILES_STRINGString version of units of measurement - miles.static intMILLIMETERSUnit of measurement millimeters.static java.lang.StringMILLIMETERS_STRINGString version of units of measurement - millimeters.static intMILLISECUnit of measurement milliseconds.static java.lang.StringMILLISEC_STRINGString version of units of measurement - milliseconds.static intMILSUnits of measurement mil (thousandth of an inch)static java.lang.StringMILS_STRINGString version of units of measurement - mils.private doubleminImage minimum intensity for single channel image.private doubleminBImage minimum intensity for the blue channel of an RGB image.private doubleminGImage minimum intensity for the green channel of an RGB image.private doubleminRImage minimum intensity for the red channel of an RGB image.static intMINUTESUnit of measurement minutes.static java.lang.StringMINUTES_STRINGString version of units of measurement - minutes.protected intmodalityIndicates the modality (medical image type) of the dataset.private static java.lang.String[]modalityStrDeprecated.No longer needed since enum works nowprivate booleanmultiFileFlag that indicates whether or not the image is in multiple files (tiff).static intNANOMETERSUnit of measurement nanometers.static java.lang.StringNANOMETERS_STRINGString version of units of measurement - nanometers.static intNANOSECUnit of measurement nanoseconds.static java.lang.StringNANOSEC_STRINGString version of units of measurement - nanoseconds.static intNUCLEAR_MEDICINEImage modality nuclear medicine.private intoffsetNumber of bytes to the start the image data - ie. the header lengthstatic intORI_A2P_TYPEAxis orientation Anterior to Posterior.static intORI_I2S_TYPEAxis orientation Inferior to Superior.static intORI_L2R_TYPEAxis orientation Left to Right.static intORI_P2A_TYPEAxis orientation Posterior to Anterior.static intORI_R2L_TYPEAxis orientation Right to Left.static intORI_S2I_TYPEAxis orientation Superior to Inferior.static intORI_UNKNOWN_TYPEAxis orientation unknown.protected float[]originThe origin to support image locations (ie.private booleanoriginalEndianessUsed for checking for endianess changes in the ModelImage.reallocate(final int type) function.static intOTHERImage modality other.static intPANORAMIC_XRAYImage modality panoramtic X ray.private shortphotometricImage minimum intensity for single channel image.private java.lang.ShortpixelPadValueSome file formats have a pad value for pixels outside the acquisition domain.static intPOSITRON_EMISSION_TOMOGRAPHYImage modality PET.static intPPMUnit of measurement part-per-million.static java.lang.StringPPM_STRINGString version of units of measurement - part-per-million.static intRADIO_FLUOROSCOPYImage modality radio fluoroscopy.static intRADIOGRAPHIC_IMAGINGImage modality radiographic imaging.static intRADIOTHERAPY_DOSEImage modality radiotherapy dose.static intRADIOTHERAPY_IMAGEImage modality radiotherapy image.static intRADIOTHERAPY_PLANImage modality radiotherapy plan.static intRADIOTHERAPY_RECORDImage modality radiotherapy record.static intRADIOTHERAPY_STRUCTURE_SETImage modality radiotherapy structure set.static intRADSRadians per second.static java.lang.StringRADS_STRINGString version of units of measurement - radians per second.static intRED_FREEImage modality Red Free.private doublerescaleInterceptDICOM images have a rescale y-intercept value that we have also kept in the base.private doublerescaleSlopeDICOM images have a rescale slope value that we have also kept in the base.static intSAGITTALSagittal orientation.static intSECONDSUnit of measurement seconds.static java.lang.StringSECONDS_STRINGString version of units of measurement - seconds.private static longserialVersionUIDUse serialVersionUID for interoperability.static intSINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHYImage modality SPECT.private floatsliceThicknessThe thickness of individual slices in the image volume.static intSLIDE_MICROSCOPYImage modality slide microscopy.static java.lang.String[]sUnitsDeprecated.protected java.util.Vector<java.lang.String>tagDescriptionprotected java.util.Vector<java.lang.String>tagNamestatic intTHERMOGRAPHYImage modality thermography.static intTRANSFORM_ANOTHER_DATASETAnother Dataset transform ID.static intTRANSFORM_MNI_152MNI 152 transform ID.static intTRANSFORM_SCANNER_ANATOMICALScanner Anatomical transform ID.static intTRANSFORM_TALAIRACH_TOURNOUXTalairach Tournoux transform ID.static intTRANSFORM_UNKNOWNUnknown transform ID.static java.lang.String[]tUnitsDeprecated.static intULTRASOUNDImage modality ultrasound.protected FileInfoBase.Unit[]unitsOfMeasureDescribes the units of measure for the dataset.static intUNKNOWN_MEASUREUnit of measurement unknown.static intUNKNOWN_MODALITYImage modality unknown.static intUNKNOWN_ORIENTUnknown orientation.static java.lang.StringUNKNOWN_STRINGString version of units of measurement - unknown.static intXRAY_ANGIOGRAPHYImage modality X ray angiography.
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedFileInfoBase(FileInfoBase copy)Internal constructor for clone usage.FileInfoBase(java.lang.String name, java.lang.String directory, int format)fileInfo constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcopyCoreInfo(FileInfoBase[] originalInfo, FileInfoBase[] newInfo)Helper method to copy important file info type to another file info type.static voidcopyCoreInfo(FileInfoBase[] originalInfo, FileInfoBase[] newInfo, boolean[] listNoCopy)Helper method to copy core information from one fileinfo into another, this method also has a list of fileinfos NOT to copy (used by JDialogRemoveSlices).voiddisplayAboutInfo(JDialogBase dialog)Displays the file information.abstract voiddisplayAboutInfo(JDialogBase dialog, TransMatrix matrix)Abstract method which is used by the extending class to display information about the window.voiddisplayPrimaryInfo(JDialogText dialog, TransMatrix matrix)Method called by many extending classes to display basic information in the dialog common to all images.voidfinalize()Prepares this class for cleanup.java.lang.StringgetAboutInfo(TransMatrix matrix)Abstract method which is used by the extending class to return information about the file header.static int[]getAllSameDimUnits(int measure)Deprecated.should now use enumjava.lang.StringgetAreaUnitsOfMeasureStr()Returns the area unit for the data.int[]getAxisDirection()Get the direction for accessing each axis of data.int[]getAxisOrientation()Returns orientation of each axis.intgetAxisOrientation(int axis)Returns orientation of entered axis.static intgetAxisOrientationFromStr(java.lang.String s)Returns the axis orientation associated with a string.static java.lang.StringgetAxisOrientationStr(int m)Return the string associated with an axis orientation.java.lang.StringgetCameraMake()java.lang.StringgetCameraModel()intgetCompressionType()Gets the compression type.intgetDataType()Returns data type.static intgetDataTypeFromStr(java.lang.String s)Returns the image data type associated with a string.booleangetEndianess()Descibes file endianess.static booleangetEndianessFromStr(java.lang.String s)Returns the endianess associated with a string.doublegetExposureTime()int[]getExtents()Returns the dimensionality of the image.java.lang.StringgetFileDirectory()Returns counter to start of image data.intgetFileFormat()Returns file format.java.lang.StringgetFileName()Returns the file name.java.lang.StringgetFileSuffix()Returns the file suffix.doublegetFNumber()doublegetFocalLength()doublegetFocalLength35()intgetImageOrientation()Returns the image orientation.static intgetImageOrientationFromStr(java.lang.String s)Returns the image orientation associated with a string.static java.lang.StringgetImageOrientationStr(int m)Return the string associated with an image orientation.booleangetIs2_5D()Return whether or not the image's slices are time based.doublegetISOSpeedRating()float[]getLPSOrigin()DOCUMENT ME!ModelLUTgetLUT()Returns the LUT.doublegetMax()Returns max pixel value of the image.doublegetMaxB()Returns max blue pixel value of the image.doublegetMaxG()Returns max green pixel value of the image.doublegetMaxR()Returns max red pixel value of the image.doublegetMin()Returns min pixel value of the image.doublegetMinB()Returns min blue pixel value of the image.doublegetMinG()Returns min green pixel value of the image.doublegetMinR()Returns min red pixel value of the image.intgetModality()Returns the modality.static intgetModalityFromStr(java.lang.String s)Returns the modality associated with a string.static java.lang.String[]getModalityStr()Return all the modality strings as an array.static java.lang.StringgetModalityStr(int m)Return the string associated with a modality.booleangetMultiFile()Returns whether or not the image is in multiple files (tiff).static intgetNumOfBytesPerPixel(int dataType)Returns the number of bytes per pixel based on the data type.intgetOffset()Returns the header offset.float[]getOrigin()Returns the origin.floatgetOrigin(int axis)Returns the origin value of the requested axis.booleangetOriginalEndianess()float[]getOriginAtSlice(int slice)Gets the origin of a particular slice; resets for the z dimension.shortgetPhotometric()Photometric interpretion.java.lang.ShortgetPixelPadValue()Returns pixel pad value.java.lang.StringgetPrimaryInfo(TransMatrix matrix)Method called by many extending classes to return basic information in the dialog common to all images.doublegetRescaleIntercept()Returns the intercept.doublegetRescaleSlope()Returns the slope.floatgetResolution(int dim)Returns the resolution of the requested dimension.float[]getResolutions()Returns each dimension's resolution.intgetSize()Returns the size of the slice image in byte which represented by this object.floatgetSliceThickness()Returns the thickness of the image slices.int[]getUnitsOfMeasure()Returns the units of measure.intgetUnitsOfMeasure(int dim)Returns the units of measure for the given dimension.static java.lang.String[]getUnitsOfMeasureAbbrevStr()Deprecated.should now use enumstatic java.lang.StringgetUnitsOfMeasureAbbrevStr(int i)Deprecated.should now use enumstatic intgetUnitsOfMeasureFromStr(java.lang.String selectedOutput)Deprecated.should now use enumstatic java.lang.String[]getUnitsOfMeasureStr()Deprecated.should use enumstatic java.lang.StringgetUnitsOfMeasureStr(int xUnits)Deprecated.should now use enumjava.lang.StringgetVolumeUnitsOfMeasureStr()Returns the volume unit for the data.booleanisDicomOrdered()isDicomOrdered() returns true if the file is in dicom order, false otherwise.static intoppositeOrient(int orient)Helper method that returns the opposite axis orientation of the one sent in; that is, R2L for L2R, A2P for P2A, etc.static booleansameAxis(int axisA, int axisB)Helper method to determine if axis A and axis B are the same axis: that is, if both are the patient x-axis, they will be either R2L or L2R.voidsetAxisOrientation(int[] axOrient)Sets (copies) orientation of each axis.voidsetAxisOrientation(int axOrient, int axis)Sets the image orientation in the specified axis.voidsetCameraMake(java.lang.String cameraMake)voidsetCameraModel(java.lang.String cameraModel)voidsetCompressionType(int type)Sets the compression type.voidsetDataType(int type)Sets format of image data.voidsetEndianess(boolean endness)Describes file endianess.voidsetExposureTime(double exposureTime)voidsetExtents(int[] dims)Sets dimensionality of the images.voidsetExtents(int extent, int dim)Sets dimensionality for image, on a per dimension basis.voidsetFileDirectory(java.lang.String directory)DOCUMENT ME!voidsetFileFormat(int format)Sets the file format.voidsetFileName(java.lang.String fname)Sets the file name.voidsetFileSuffix(java.lang.String suffix)Sets the file suffix.voidsetFNumber(double FNumber)voidsetFocalLength(double focalLength)voidsetFocalLength35(double focalLength35)voidsetImageOrientation(int orient)Sets the image orientation.voidsetISOSpeedRating(double ISOSpeedRating)voidsetLUT(ModelLUT lut)Sets the model lutvoidsetMax(double Max)Sets max pixel value of image.voidsetMaxB(double Max)Sets max blue pixel value of image.voidsetMaxG(double Max)Sets max green pixel value of image.voidsetMaxR(double Max)Sets max red pixel value of image.voidsetMin(double Min)Sets min pixel value of image.voidsetMinB(double Min)Sets min blue pixel value of image.voidsetMinG(double Min)Sets min green pixel value of image.voidsetMinR(double Min)Sets min red pixel value of image.voidsetModality(int mod)Sets the modality.voidsetMultiFile(boolean flag)Sets the flag for multiple files.voidsetOffset(int off)Sets the header offset.voidsetOrigin(float[] originlocat)Sets the origin.voidsetOrigin(float originCoord, int axis)Sets the start location in the specified axis. creates the startLocations if the arrray has not yet been created.voidsetOriginalEndianess(boolean originalEndness)voidsetPhotometric(short value)Sets photometric interpretation.voidsetPixelPadValue(java.lang.Short value)Sets pixel pad value: used in some Dicom images.voidsetRescaleIntercept(double intercept)Sets the rescale intercept.voidsetRescaleSlope(double slope)Sets the rescale slope.voidsetResolutions(float[] resolutions)Sets the resolutions of the image.voidsetResolutions(float resolution, int dim)Sets the resolutions of the image, on a per dimension basis.voidsetSliceThickness(float thickness)Sets the thickness of the image slices.voidsetTagDescription(java.util.Vector<java.lang.String> tagDescription)voidsetTagName(java.util.Vector<java.lang.String> tagName)voidsetUnitsOfMeasure(int[] unitMeasure)Sets (copies) units of measure for image.voidsetUnitsOfMeasure(int unitMeasure, int dim)Sets units of measure for image, on a per dimension basis.voidsetUnitsOfMeasure(FileInfoBase.Unit[] unitMeasure)Sets (copies) units of measure for image.voidsetUnitsOfMeasure(FileInfoBase.Unit unitMeasure, int dim)Sets units of measure for image, on a per dimension basis.java.lang.StringtoString()Gives the information contained in FileInfo in a string.- 
Methods inherited from class gov.nih.mipav.model.structures.ModelSerialCloneableclone, nativeClone
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDprivate static final long serialVersionUID Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
 
 - 
sUnitspublic static final java.lang.String[] sUnits Deprecated.Array of space units: inches, mm, etc.
 - 
tUnitspublic static final java.lang.String[] tUnits Deprecated.Array of time units: seconds, minutes, etc.
 - 
UNKNOWN_MEASUREpublic static final int UNKNOWN_MEASURE Unit of measurement unknown.- See Also:
- Constant Field Values
 
 - 
INCHESpublic static final int INCHES Unit of measurement inches.- See Also:
- Constant Field Values
 
 - 
MILSpublic static final int MILS Units of measurement mil (thousandth of an inch)- See Also:
- Constant Field Values
 
 - 
CENTIMETERSpublic static final int CENTIMETERS Unit of measurement centimeters.- See Also:
- Constant Field Values
 
 - 
ANGSTROMSpublic static final int ANGSTROMS Unit of measurement angstroms.- See Also:
- Constant Field Values
 
 - 
NANOMETERSpublic static final int NANOMETERS Unit of measurement nanometers.- See Also:
- Constant Field Values
 
 - 
MICROMETERSpublic static final int MICROMETERS Unit of measurement micrometers.- See Also:
- Constant Field Values
 
 - 
MILLIMETERSpublic static final int MILLIMETERS Unit of measurement millimeters.- See Also:
- Constant Field Values
 
 - 
METERSpublic static final int METERS Unit of measurement meters.- See Also:
- Constant Field Values
 
 - 
KILOMETERSpublic static final int KILOMETERS Unit of measurement kilometers.- See Also:
- Constant Field Values
 
 - 
MILESpublic static final int MILES Unit of measurement miles.- See Also:
- Constant Field Values
 
 - 
NANOSECpublic static final int NANOSEC Unit of measurement nanoseconds.- See Also:
- Constant Field Values
 
 - 
MICROSECpublic static final int MICROSEC Unit of measurement microseconds.- See Also:
- Constant Field Values
 
 - 
MILLISECpublic static final int MILLISEC Unit of measurement milliseconds.- See Also:
- Constant Field Values
 
 - 
SECONDSpublic static final int SECONDS Unit of measurement seconds.- See Also:
- Constant Field Values
 
 - 
MINUTESpublic static final int MINUTES Unit of measurement minutes.- See Also:
- Constant Field Values
 
 - 
HOURSpublic static final int HOURS Unit of measurement hours.- See Also:
- Constant Field Values
 
 - 
HZpublic static final int HZ Unit of measurement hertz.- See Also:
- Constant Field Values
 
 - 
PPMpublic static final int PPM Unit of measurement part-per-million.- See Also:
- Constant Field Values
 
 - 
RADSpublic static final int RADS Radians per second.- See Also:
- Constant Field Values
 
 - 
DEGREESpublic static final int DEGREES - See Also:
- Constant Field Values
 
 - 
UNKNOWN_STRINGpublic static final java.lang.String UNKNOWN_STRING String version of units of measurement - unknown.- See Also:
- Constant Field Values
 
 - 
INCHES_STRINGpublic static final java.lang.String INCHES_STRING String version of units of measurement - inches.- See Also:
- Constant Field Values
 
 - 
MILS_STRINGpublic static final java.lang.String MILS_STRING String version of units of measurement - mils.- See Also:
- Constant Field Values
 
 - 
CENTIMETERS_STRINGpublic static final java.lang.String CENTIMETERS_STRING String version of units of measurement - centimeters.- See Also:
- Constant Field Values
 
 - 
ANGSTROMS_STRINGpublic static final java.lang.String ANGSTROMS_STRING String version of units of measurement - angstroms.- See Also:
- Constant Field Values
 
 - 
NANOMETERS_STRINGpublic static final java.lang.String NANOMETERS_STRING String version of units of measurement - nanometers.- See Also:
- Constant Field Values
 
 - 
MICROMETERS_STRINGpublic static final java.lang.String MICROMETERS_STRING String version of units of measurement - micrometers.- See Also:
- Constant Field Values
 
 - 
MILLIMETERS_STRINGpublic static final java.lang.String MILLIMETERS_STRING String version of units of measurement - millimeters.- See Also:
- Constant Field Values
 
 - 
METERS_STRINGpublic static final java.lang.String METERS_STRING String version of units of measurement - meters.- See Also:
- Constant Field Values
 
 - 
KILOMETERS_STRINGpublic static final java.lang.String KILOMETERS_STRING String version of units of measurement - kilometers.- See Also:
- Constant Field Values
 
 - 
MILES_STRINGpublic static final java.lang.String MILES_STRING String version of units of measurement - miles.- See Also:
- Constant Field Values
 
 - 
NANOSEC_STRINGpublic static final java.lang.String NANOSEC_STRING String version of units of measurement - nanoseconds.- See Also:
- Constant Field Values
 
 - 
MICROSEC_STRINGpublic static final java.lang.String MICROSEC_STRING String version of units of measurement - microseconds.- See Also:
- Constant Field Values
 
 - 
MILLISEC_STRINGpublic static final java.lang.String MILLISEC_STRING String version of units of measurement - milliseconds.- See Also:
- Constant Field Values
 
 - 
SECONDS_STRINGpublic static final java.lang.String SECONDS_STRING String version of units of measurement - seconds.- See Also:
- Constant Field Values
 
 - 
MINUTES_STRINGpublic static final java.lang.String MINUTES_STRING String version of units of measurement - minutes.- See Also:
- Constant Field Values
 
 - 
HOURS_STRINGpublic static final java.lang.String HOURS_STRING String version of units of measurement - hours.- See Also:
- Constant Field Values
 
 - 
HZ_STRINGpublic static final java.lang.String HZ_STRING String version of units of measurement - hertz.- See Also:
- Constant Field Values
 
 - 
PPM_STRINGpublic static final java.lang.String PPM_STRING String version of units of measurement - part-per-million.- See Also:
- Constant Field Values
 
 - 
RADS_STRINGpublic static final java.lang.String RADS_STRING String version of units of measurement - radians per second.- See Also:
- Constant Field Values
 
 - 
DEGREES_STRINGpublic static final java.lang.String DEGREES_STRING String version of units of measurement - degrees.- See Also:
- Constant Field Values
 
 - 
conversionSpaceTimeUnitspublic static final double[] conversionSpaceTimeUnits Deprecated.should use enum conversionsConverting between space units. Conversion is to millimeters (the default). Table converts to mm by multiplication. Converts from mm by division. Example: inches * 25.4f = mm mm / 25.4f = inches. Converting between time units. Conversion is to seconds(the default). Table converts to seconds by multiplication. Converts from seconds by division. Example: minutes * 0.01667 = seconds seconds / 0.01667 = minutes. Hertz and radians per second convert to/from hz. parts-per-million does not convert.
 - 
UNKNOWN_MODALITYpublic static final int UNKNOWN_MODALITY Image modality unknown.- See Also:
- Constant Field Values
 
 - 
BIOMAGNETIC_IMAGINGpublic static final int BIOMAGNETIC_IMAGING Image modality biomagnetic imaging.- See Also:
- Constant Field Values
 
 - 
COLOR_FLOW_DOPPLERpublic static final int COLOR_FLOW_DOPPLER Image modality color flow doppler.- See Also:
- Constant Field Values
 
 - 
COMPUTED_RADIOGRAPHYpublic static final int COMPUTED_RADIOGRAPHY Image modality CR.- See Also:
- Constant Field Values
 
 - 
COMPUTED_TOMOGRAPHYpublic static final int COMPUTED_TOMOGRAPHY Image modality CT.- See Also:
- Constant Field Values
 
 - 
DUPLEX_DOPPLERpublic static final int DUPLEX_DOPPLER Image modality duplex doppler.- See Also:
- Constant Field Values
 
 - 
DIAPHANOGRAPHYpublic static final int DIAPHANOGRAPHY Image modality diaphanography.- See Also:
- Constant Field Values
 
 - 
DIGITAL_RADIOGRAPHYpublic static final int DIGITAL_RADIOGRAPHY Image modality digital radiography.- See Also:
- Constant Field Values
 
 - 
ENDOSCOPYpublic static final int ENDOSCOPY Image modality endoscopy.- See Also:
- Constant Field Values
 
 - 
GENERAL_MICROSCOPYpublic static final int GENERAL_MICROSCOPY Image modality general microscopy.- See Also:
- Constant Field Values
 
 - 
HARDCOPYpublic static final int HARDCOPY Image modality hard copy.- See Also:
- Constant Field Values
 
 - 
INTRAORAL_RADIOGRAPHYpublic static final int INTRAORAL_RADIOGRAPHY Image modality intraoral radiography.- See Also:
- Constant Field Values
 
 - 
LASER_SURFACE_SCANpublic static final int LASER_SURFACE_SCAN Image modality laser surface scan.- See Also:
- Constant Field Values
 
 - 
MAGNETIC_RESONANCE_ANGIOGRAPHYpublic static final int MAGNETIC_RESONANCE_ANGIOGRAPHY Image modality MR angiography.- See Also:
- Constant Field Values
 
 - 
MAMMOGRAPHYpublic static final int MAMMOGRAPHY Image modality mammography.- See Also:
- Constant Field Values
 
 - 
MAGNETIC_RESONANCEpublic static final int MAGNETIC_RESONANCE Image modality MR.- See Also:
- Constant Field Values
 
 - 
MAGNETIC_RESONANCE_SPECTROSCOPYpublic static final int MAGNETIC_RESONANCE_SPECTROSCOPY Image modality MR SPECT.- See Also:
- Constant Field Values
 
 - 
NUCLEAR_MEDICINEpublic static final int NUCLEAR_MEDICINE Image modality nuclear medicine.- See Also:
- Constant Field Values
 
 - 
OTHERpublic static final int OTHER Image modality other.- See Also:
- Constant Field Values
 
 - 
POSITRON_EMISSION_TOMOGRAPHYpublic static final int POSITRON_EMISSION_TOMOGRAPHY Image modality PET.- See Also:
- Constant Field Values
 
 - 
PANORAMIC_XRAYpublic static final int PANORAMIC_XRAY Image modality panoramtic X ray.- See Also:
- Constant Field Values
 
 - 
RADIO_FLUOROSCOPYpublic static final int RADIO_FLUOROSCOPY Image modality radio fluoroscopy.- See Also:
- Constant Field Values
 
 - 
RADIOGRAPHIC_IMAGINGpublic static final int RADIOGRAPHIC_IMAGING Image modality radiographic imaging.- See Also:
- Constant Field Values
 
 - 
RADIOTHERAPY_DOSEpublic static final int RADIOTHERAPY_DOSE Image modality radiotherapy dose.- See Also:
- Constant Field Values
 
 - 
RADIOTHERAPY_IMAGEpublic static final int RADIOTHERAPY_IMAGE Image modality radiotherapy image.- See Also:
- Constant Field Values
 
 - 
RADIOTHERAPY_PLANpublic static final int RADIOTHERAPY_PLAN Image modality radiotherapy plan.- See Also:
- Constant Field Values
 
 - 
RADIOTHERAPY_RECORDpublic static final int RADIOTHERAPY_RECORD Image modality radiotherapy record.- See Also:
- Constant Field Values
 
 - 
RADIOTHERAPY_STRUCTURE_SETpublic static final int RADIOTHERAPY_STRUCTURE_SET Image modality radiotherapy structure set.- See Also:
- Constant Field Values
 
 - 
SLIDE_MICROSCOPYpublic static final int SLIDE_MICROSCOPY Image modality slide microscopy.- See Also:
- Constant Field Values
 
 - 
SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHYpublic static final int SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY Image modality SPECT.- See Also:
- Constant Field Values
 
 - 
THERMOGRAPHYpublic static final int THERMOGRAPHY Image modality thermography.- See Also:
- Constant Field Values
 
 - 
ULTRASOUNDpublic static final int ULTRASOUND Image modality ultrasound.- See Also:
- Constant Field Values
 
 - 
XRAY_ANGIOGRAPHYpublic static final int XRAY_ANGIOGRAPHY Image modality X ray angiography.- See Also:
- Constant Field Values
 
 - 
EXTERNAL_CAMERA_PHOTOGRAPHYpublic static final int EXTERNAL_CAMERA_PHOTOGRAPHY Image modality external camera photography.- See Also:
- Constant Field Values
 
 - 
RED_FREEpublic static final int RED_FREE Image modality Red Free.- See Also:
- Constant Field Values
 
 - 
FApublic static final int FA Image modality Fluorescein Angiography.- See Also:
- Constant Field Values
 
 - 
ICGpublic static final int ICG Image modality IndoCyanine Green.- See Also:
- Constant Field Values
 
 - 
modalityStrprivate static final java.lang.String[] modalityStr Deprecated.No longer needed since enum works nowArray of modality strings -- again, numbering starts at 1, not 0.
 - 
ORI_UNKNOWN_TYPEpublic static final int ORI_UNKNOWN_TYPE Axis orientation unknown.- See Also:
- Constant Field Values
 
 - 
ORI_R2L_TYPEpublic static final int ORI_R2L_TYPE Axis orientation Right to Left.- See Also:
- Constant Field Values
 
 - 
ORI_L2R_TYPEpublic static final int ORI_L2R_TYPE Axis orientation Left to Right.- See Also:
- Constant Field Values
 
 - 
ORI_P2A_TYPEpublic static final int ORI_P2A_TYPE Axis orientation Posterior to Anterior.- See Also:
- Constant Field Values
 
 - 
ORI_A2P_TYPEpublic static final int ORI_A2P_TYPE Axis orientation Anterior to Posterior.- See Also:
- Constant Field Values
 
 - 
ORI_I2S_TYPEpublic static final int ORI_I2S_TYPE Axis orientation Inferior to Superior.- See Also:
- Constant Field Values
 
 - 
ORI_S2I_TYPEpublic static final int ORI_S2I_TYPE Axis orientation Superior to Inferior.- See Also:
- Constant Field Values
 
 - 
axisOrientationStrpublic static final java.lang.String[] axisOrientationStr Array of axis orientation strings.
 - 
AXIALpublic static final int AXIAL Axial orientation.- See Also:
- Constant Field Values
 
 - 
CORONALpublic static final int CORONAL Coronal orientation.- See Also:
- Constant Field Values
 
 - 
SAGITTALpublic static final int SAGITTAL Sagittal orientation.- See Also:
- Constant Field Values
 
 - 
UNKNOWN_ORIENTpublic static final int UNKNOWN_ORIENT Unknown orientation.- See Also:
- Constant Field Values
 
 - 
imageOrientationStrprivate static final java.lang.String[] imageOrientationStr Array of image orientation strings.
 - 
TRANSFORM_UNKNOWNpublic static final int TRANSFORM_UNKNOWN Unknown transform ID.- See Also:
- Constant Field Values
 
 - 
TRANSFORM_SCANNER_ANATOMICALpublic static final int TRANSFORM_SCANNER_ANATOMICAL Scanner Anatomical transform ID.- See Also:
- Constant Field Values
 
 - 
TRANSFORM_ANOTHER_DATASETpublic static final int TRANSFORM_ANOTHER_DATASET Another Dataset transform ID.- See Also:
- Constant Field Values
 
 - 
TRANSFORM_TALAIRACH_TOURNOUXpublic static final int TRANSFORM_TALAIRACH_TOURNOUX Talairach Tournoux transform ID.- See Also:
- Constant Field Values
 
 - 
TRANSFORM_MNI_152public static final int TRANSFORM_MNI_152 MNI 152 transform ID.- See Also:
- Constant Field Values
 
 - 
COMPRESSION_NONEpublic static final int COMPRESSION_NONE Indicates no compression.- See Also:
- Constant Field Values
 
 - 
COMPRESSION_ZIPpublic static final int COMPRESSION_ZIP Indicates zip compression of an image.- See Also:
- Constant Field Values
 
 - 
COMPRESSION_GZIPpublic static final int COMPRESSION_GZIP Indicates gzip compression of an image.- See Also:
- Constant Field Values
 
 - 
COMPRESSION_BZIP2public static final int COMPRESSION_BZIP2 Indicates bzip2 compression of an image.- See Also:
- Constant Field Values
 
 - 
axisOrientationprotected int[] axisOrientation axis orientation used to support image ordering and display for medical images. We support the right hand rule where the origin is the upper left hand of the image with the positive axis.x - left to right y - top to botton z - into the screen 
 - 
fileNameprotected java.lang.String fileName The file name which includes the path information.
 - 
fileSuffixprotected java.lang.String fileSuffix File suffix (ex. "jpg")
 - 
imageOrientationprotected int imageOrientation Indicates the image orientation (i.e. Axial, Coronal, ...)
 - 
modalityprotected int modality Indicates the modality (medical image type) of the dataset.
 - 
originprotected float[] origin The origin to support image locations (ie. DICOM, MINC ...) it is relative to the image origin. the positive axis are right hand rule.x - left to right y - top to botton z - into the screen 
 - 
compressionTypeprivate int compressionType Used to indicate if the raw data was also compression (0 = no, 1 = zip).
 - 
dataTypeprivate int dataType The data type of the data (i.e. byte, short, float ...
 - 
dimResolutionsprivate float[] dimResolutions Pixel or voxel resolutions for each dimension - default = 1.0. The z-dim resolution should be the spacing between the centers of adjacent slices; sometimes this will match the slice thickness, but not always.
 - 
endianessprivate boolean endianess The Endianess of the data. Intel, DEC Alpha ***** LSB first byte LITTLE_ENDIAN (false) Motorola (MAC), SPARC (SUN), SGI IRIX MSB first byte BIG_ENDIAN (true)
 - 
originalEndianessprivate boolean originalEndianess Used for checking for endianess changes in the ModelImage.reallocate(final int type) function.
 - 
extentsprivate int[] extents Image extents as decribed by the image file format.
 - 
fileFormatprivate int fileFormat File format as defined in the Filebase.
 - 
maxprivate double max Image maximum intensity for single channel image.
 - 
maxBprivate double maxB Image maximum intensity for the blue channel of an RGB image.
 - 
maxGprivate double maxG Image maximum intensity for the green channel of an RGB image.
 - 
maxRprivate double maxR Image maximum intensity for the red channel of an RGB image.
 - 
minprivate double min Image minimum intensity for single channel image.
 - 
minBprivate double minB Image minimum intensity for the blue channel of an RGB image.
 - 
minGprivate double minG Image minimum intensity for the green channel of an RGB image.
 - 
minRprivate double minR Image minimum intensity for the red channel of an RGB image.
 - 
lutprivate ModelLUT lut ModelLUT associated with fileinfo
 - 
multiFileprivate boolean multiFile Flag that indicates whether or not the image is in multiple files (tiff).
 - 
offsetprivate int offset Number of bytes to the start the image data - ie. the header length
 - 
photometricprivate short photometric Image minimum intensity for single channel image.
 - 
pixelPadValueprivate java.lang.Short pixelPadValue Some file formats have a pad value for pixels outside the acquisition domain.
 - 
rescaleInterceptprivate double rescaleIntercept DICOM images have a rescale y-intercept value that we have also kept in the base.
 - 
rescaleSlopeprivate double rescaleSlope DICOM images have a rescale slope value that we have also kept in the base.
 - 
sliceThicknessprivate float sliceThickness The thickness of individual slices in the image volume. Stored in dicom tag 0018,0050 and various other places in other file formats.
 - 
unitsOfMeasureprotected FileInfoBase.Unit[] unitsOfMeasure Describes the units of measure for the dataset.
 - 
tagNameprotected java.util.Vector<java.lang.String> tagName 
 - 
tagDescriptionprotected java.util.Vector<java.lang.String> tagDescription 
 - 
focalLengthprotected double focalLength 
 - 
focalLength35protected double focalLength35 
 - 
cameraMakeprotected java.lang.String cameraMake 
 - 
cameraModelprotected java.lang.String cameraModel 
 - 
exposureTimeprotected double exposureTime 
 - 
FNumberprotected double FNumber 
 - 
ISOSpeedRatingprotected double ISOSpeedRating 
 
- 
 - 
Constructor Detail- 
FileInfoBasepublic FileInfoBase(java.lang.String name, java.lang.String directory, int format)fileInfo constructor.- Parameters:
- name- name of file
- directory- file directory
- format- file storage format -- see FileBase.java
 
 - 
FileInfoBaseprotected FileInfoBase(FileInfoBase copy) Internal constructor for clone usage.
 
- 
 - 
Method Detail- 
displayAboutInfopublic abstract void displayAboutInfo(JDialogBase dialog, TransMatrix matrix) Abstract method which is used by the extending class to display information about the window.- Parameters:
- dialog- Area where image information is to be displayed.
- matrix- Transformation matrix
 
 - 
getAboutInfopublic java.lang.String getAboutInfo(TransMatrix matrix) Abstract method which is used by the extending class to return information about the file header.- Parameters:
- matrix- Transformation matrix
- Returns:
- A string containing information from the image header.
 
 - 
copyCoreInfopublic static void copyCoreInfo(FileInfoBase[] originalInfo, FileInfoBase[] newInfo) Helper method to copy important file info type to another file info type.- Parameters:
- originalInfo- source file info.
- newInfo- destination file info.
 
 - 
copyCoreInfopublic static void copyCoreInfo(FileInfoBase[] originalInfo, FileInfoBase[] newInfo, boolean[] listNoCopy) Helper method to copy core information from one fileinfo into another, this method also has a list of fileinfos NOT to copy (used by JDialogRemoveSlices).- Parameters:
- originalInfo- FileInfoBase[] original file infos (longer list)
- newInfo- FileInfoBase[] new file infos (shorter list)
- listNoCopy- boolean[] boolean array of indices into the original fileinfos that should not be copied
 
 - 
getAxisOrientationFromStrpublic static int getAxisOrientationFromStr(java.lang.String s) Returns the axis orientation associated with a string.- Parameters:
- s- String to test
- Returns:
- axis orientation
 
 - 
getAxisOrientationStrpublic static java.lang.String getAxisOrientationStr(int m) Return the string associated with an axis orientation.- Parameters:
- m- int representing the axis orientation (see the static definitions)
- Returns:
- String representing the string associated with the axis orientation.
 
 - 
getDataTypeFromStrpublic static int getDataTypeFromStr(java.lang.String s) Returns the image data type associated with a string.- Parameters:
- s- String to test
- Returns:
- data type
 
 - 
getEndianessFromStrpublic static boolean getEndianessFromStr(java.lang.String s) Returns the endianess associated with a string.- Parameters:
- s- String to test
- Returns:
- Big endian or little endian
 
 - 
getImageOrientationFromStrpublic static int getImageOrientationFromStr(java.lang.String s) Returns the image orientation associated with a string.- Parameters:
- s- String to test
- Returns:
- image orientation
 
 - 
getImageOrientationStrpublic static java.lang.String getImageOrientationStr(int m) Return the string associated with an image orientation.- Parameters:
- m- the orientation (see the static definitions)
- Returns:
- the string associated with the orientation.
 
 - 
getModalityFromStrpublic static int getModalityFromStr(java.lang.String s) Returns the modality associated with a string.- Parameters:
- s- String to test
- Returns:
- modality
 
 - 
getModalityStrpublic static java.lang.String[] getModalityStr() Return all the modality strings as an array.- Returns:
- String[] - array containing the strings associated with modalities.
 
 - 
getModalityStrpublic static java.lang.String getModalityStr(int m) Return the string associated with a modality.- Parameters:
- m- the modality (see the static definitions)
- Returns:
- the string associated with the modality.
 
 - 
getNumOfBytesPerPixelpublic static int getNumOfBytesPerPixel(int dataType) Returns the number of bytes per pixel based on the data type.- Parameters:
- dataType- the data type.
- Returns:
- the number of bytes per pixel.
- Throws:
- java.lang.IllegalArgumentException- DOCUMENT ME!
 
 - 
oppositeOrientpublic static int oppositeOrient(int orient) Helper method that returns the opposite axis orientation of the one sent in; that is, R2L for L2R, A2P for P2A, etc.- Parameters:
- orient- DOCUMENT ME!
- Returns:
- int Opposite image orientation
 
 - 
sameAxispublic static boolean sameAxis(int axisA, int axisB)Helper method to determine if axis A and axis B are the same axis: that is, if both are the patient x-axis, they will be either R2L or L2R.- Parameters:
- axisA- Axis A: one of the defined ORI_ types.
- axisB- Axis B: one of the defined ORI_ types.
- Returns:
- boolean trueif axis A and axis B are the same axis
 
 - 
displayAboutInfopublic void displayAboutInfo(JDialogBase dialog) Displays the file information.- Parameters:
- dialog- dialog box that is written to
 
 - 
displayPrimaryInfopublic void displayPrimaryInfo(JDialogText dialog, TransMatrix matrix) Method called by many extending classes to display basic information in the dialog common to all images.- Parameters:
- dialog- Area where image information is to be displayed.
- matrix- Transformation matrix
 
 - 
getPrimaryInfopublic java.lang.String getPrimaryInfo(TransMatrix matrix) Method called by many extending classes to return basic information in the dialog common to all images.- Parameters:
- matrix- Transformation matrix
- Returns:
- The basic image header infomation.
 
 - 
finalizepublic void finalize() Prepares this class for cleanup.- Overrides:
- finalizein class- java.lang.Object
 
 - 
getAxisDirectionpublic int[] getAxisDirection() Get the direction for accessing each axis of data. This is based on the values in the axisOrientation array.- Returns:
- int[] Array of +/-1 values with one entry for each axis. A -1 indicates that the direction is reversed.
 
 - 
getAxisOrientationpublic int[] getAxisOrientation() Returns orientation of each axis.- Returns:
- int[] orientation of each axis
- See Also:
- setAxisOrientation(int[])
 
 - 
getAxisOrientationpublic int getAxisOrientation(int axis) Returns orientation of entered axis.- Parameters:
- axis- Axis to get orientation for
- Returns:
- int orientation of specified axis
- See Also:
- setAxisOrientation(int, int)
 
 - 
getCompressionTypepublic int getCompressionType() Gets the compression type.- Returns:
- the compression type
 
 - 
getDataTypepublic final int getDataType() Returns data type.- Returns:
- int type of data in file
 
 - 
getEndianesspublic final boolean getEndianess() Descibes file endianess.- Returns:
- boolean false= litteEndian formattrue= bigEndian format
 
 - 
getOriginalEndianesspublic final boolean getOriginalEndianess() 
 - 
getExtentspublic final int[] getExtents() Returns the dimensionality of the image.- Returns:
- int[] units (Inches or millimeters);
 
 - 
getFileDirectorypublic final java.lang.String getFileDirectory() Returns counter to start of image data.- Returns:
- String that indicates location of the file
 
 - 
getFileFormatpublic final int getFileFormat() Returns file format.- Returns:
- int file format (TIFF, raw, Analyze...)
 
 - 
getFileNamepublic final java.lang.String getFileName() Returns the file name.- Returns:
- String indicating file name
 
 - 
getFileSuffixpublic final java.lang.String getFileSuffix() Returns the file suffix.- Returns:
- String representing the filename suffix
 
 - 
getImageOrientationpublic final int getImageOrientation() Returns the image orientation.- Returns:
- int representing orientation
 
 - 
getIs2_5Dpublic final boolean getIs2_5D() Return whether or not the image's slices are time based.- Returns:
- boolean is 2.5 D
 
 - 
getLPSOriginpublic float[] getLPSOrigin() DOCUMENT ME!- Returns:
- float[] LPSOrigin
 
 - 
getLUTpublic ModelLUT getLUT() Returns the LUT.
 - 
getMaxpublic final double getMax() Returns max pixel value of the image.- Returns:
- double Returns double max pixel value of the image
 
 - 
getMaxBpublic final double getMaxB() Returns max blue pixel value of the image.- Returns:
- double Returns double blue max pixel value of the image
 
 - 
getMaxGpublic final double getMaxG() Returns max green pixel value of the image.- Returns:
- double Returns double green max pixel value of the image
 
 - 
getMaxRpublic final double getMaxR() Returns max red pixel value of the image.- Returns:
- double Returns double red max pixel value of the image
 
 - 
getMinpublic final double getMin() Returns min pixel value of the image.- Returns:
- double Returns double min pixel value of the image
 
 - 
getMinBpublic final double getMinB() Returns min blue pixel value of the image.- Returns:
- double Returns double blue min pixel value of the image
 
 - 
getMinGpublic final double getMinG() Returns min green pixel value of the image.- Returns:
- couble Returns double green min pixel value of the image
 
 - 
getMinRpublic final double getMinR() Returns min red pixel value of the image.- Returns:
- couble Returns double red min pixel value of the image
 
 - 
getModalitypublic final int getModality() Returns the modality.- Returns:
- int indicating modality
 
 - 
getMultiFilepublic final boolean getMultiFile() Returns whether or not the image is in multiple files (tiff).- Returns:
- boolean true indicates multiple files, false o.w.
 
 - 
getOffsetpublic final int getOffset() Returns the header offset.- Returns:
- int header offset
 
 - 
getOriginpublic float[] getOrigin() Returns the origin.- Returns:
- float[] the origin
 
 - 
getOriginpublic float getOrigin(int axis) Returns the origin value of the requested axis.- Parameters:
- axis- requested axis; x is 0, y is 1, z is 2
- Returns:
- float orientation of axis
 
 - 
getOriginAtSlicepublic float[] getOriginAtSlice(int slice) Gets the origin of a particular slice; resets for the z dimension.- Parameters:
- slice- Z-dimension slice.
- Returns:
- float[] New start locations
 
 - 
getPhotometricpublic final short getPhotometric() Photometric interpretion.1 indicates 0 is black 0 indicates 0 is white 2 RGB 3 indexed color LUT is saved with image 4 Transparency Mask - Returns:
- short Returns interpretation
 
 - 
getPixelPadValuepublic final java.lang.Short getPixelPadValue() Returns pixel pad value.- Returns:
- Short Returns pixel pad value
 
 - 
getRescaleInterceptpublic final double getRescaleIntercept() Returns the intercept.- Returns:
- double rescale intercept
 
 - 
getRescaleSlopepublic final double getRescaleSlope() Returns the slope.- Returns:
- double rescale slope
 
 - 
getResolutionpublic final float getResolution(int dim) Returns the resolution of the requested dimension.- Parameters:
- dim- The dimension to return the resolution of.
- Returns:
- The resolution of one of the image dimensions.
 
 - 
getResolutionspublic final float[] getResolutions() Returns each dimension's resolution.- Returns:
- float[] dimension resolutions
 
 - 
getSizepublic int getSize() Returns the size of the slice image in byte which represented by this object.- Returns:
- the size of the slice image in byte which represented by this object.
 
 - 
getSliceThicknesspublic final float getSliceThickness() Returns the thickness of the image slices.- Returns:
- slice thickness
 
 - 
getUnitsOfMeasurepublic final int[] getUnitsOfMeasure() Returns the units of measure.- Returns:
- int[] units (Inches or millimeters);
 
 - 
getUnitsOfMeasurepublic int getUnitsOfMeasure(int dim) Returns the units of measure for the given dimension.- Parameters:
- dim- dimension index
- Returns:
- int units (Inches or millimeters);
 
 - 
getVolumeUnitsOfMeasureStrpublic java.lang.String getVolumeUnitsOfMeasureStr() Returns the volume unit for the data. Assumes all three dimensions are the same units.- Returns:
- String associated volume unit of measure.
 
 - 
getAreaUnitsOfMeasureStrpublic java.lang.String getAreaUnitsOfMeasureStr() Returns the area unit for the data. Assumes both dimensions are the same units.- Returns:
- String associated volume unit of measure.
 
 - 
isDicomOrderedpublic boolean isDicomOrdered() isDicomOrdered() returns true if the file is in dicom order, false otherwise.- Returns:
- true if the file is in dicom order, false otherwise
 
 - 
setAxisOrientationpublic void setAxisOrientation(int[] axOrient) Sets (copies) orientation of each axis.- Parameters:
- axOrient- axis orientation array
- See Also:
- getAxisOrientation()
 
 - 
setAxisOrientationpublic void setAxisOrientation(int axOrient, int axis)Sets the image orientation in the specified axis. Creates the axisOrientation if the array has not yet been created.- Parameters:
- axOrient- orientation
- axis- axis of orientation; x is 0, y is 1, z is 2.
 
 - 
setCompressionTypepublic void setCompressionType(int type) Sets the compression type.- Parameters:
- type- compression type
 
 - 
setDataTypepublic final void setDataType(int type) Sets format of image data.- Parameters:
- type- data type defined in ModelStorageBase
 
 - 
setEndianesspublic void setEndianess(boolean endness) Describes file endianess.- Parameters:
- endness- endianess of the file format
 
 - 
setOriginalEndianesspublic void setOriginalEndianess(boolean originalEndness) 
 - 
setExtentspublic final void setExtents(int[] dims) Sets dimensionality of the images.- Parameters:
- dims- dimensionality for x,y, and z ... dimensions
 
 - 
setExtentspublic void setExtents(int extent, int dim)Sets dimensionality for image, on a per dimension basis.- Parameters:
- extent- Extent of this dimension
- dim- Dimension to set extent in
 
 - 
setFileDirectorypublic final void setFileDirectory(java.lang.String directory) DOCUMENT ME!- Parameters:
- directory- DOCUMENT ME!
 
 - 
setFileFormatpublic final void setFileFormat(int format) Sets the file format.- Parameters:
- format- File format
 
 - 
setFileNamepublic void setFileName(java.lang.String fname) Sets the file name.- Parameters:
- fname- image file name
 
 - 
setFileSuffixpublic final void setFileSuffix(java.lang.String suffix) Sets the file suffix.- Parameters:
- suffix- file suffix
 
 - 
setImageOrientationpublic void setImageOrientation(int orient) Sets the image orientation.- Parameters:
- orient- Orientation.
 
 - 
setLUTpublic void setLUT(ModelLUT lut) Sets the model lut- Parameters:
- reference- to the model lut for this file info (often shared between file infos to conserve space
 
 - 
setMaxpublic void setMax(double Max) Sets max pixel value of image.- Parameters:
- Max- max pixel value
 
 - 
setMaxBpublic final void setMaxB(double Max) Sets max blue pixel value of image.- Parameters:
- Max- max blue pixel value
 
 - 
setMaxGpublic void setMaxG(double Max) Sets max green pixel value of image.- Parameters:
- Max- max green pixel value
 
 - 
setMaxRpublic void setMaxR(double Max) Sets max red pixel value of image.- Parameters:
- Max- max red pixel value
 
 - 
setMinpublic final void setMin(double Min) Sets min pixel value of image.- Parameters:
- Min- Min pixel value
 
 - 
setMinBpublic final void setMinB(double Min) Sets min blue pixel value of image.- Parameters:
- Min- min blue pixel value
 
 - 
setMinGpublic final void setMinG(double Min) Sets min green pixel value of image.- Parameters:
- Min- min green pixel value
 
 - 
setMinRpublic final void setMinR(double Min) Sets min red pixel value of image.- Parameters:
- Min- min red pixel value
 
 - 
setModalitypublic final void setModality(int mod) Sets the modality.- Parameters:
- mod- modality
 
 - 
setMultiFilepublic final void setMultiFile(boolean flag) Sets the flag for multiple files.- Parameters:
- flag-- trueindicates multiple files for image,- falseo.w.
 
 - 
setOffsetpublic final void setOffset(int off) Sets the header offset.- Parameters:
- off- the header offset
 
 - 
setOriginpublic void setOrigin(float[] originlocat) Sets the origin.- Parameters:
- originlocat- origin location array
- See Also:
- #getStartLocations()
 
 - 
setOriginpublic void setOrigin(float originCoord, int axis)Sets the start location in the specified axis. creates the startLocations if the arrray has not yet been created.- Parameters:
- originCoord- start location
- axis- axis of orientation; x is 0, y is 1, z is 2
- See Also:
- #getStartLocations(int)
 
 - 
setPhotometricpublic void setPhotometric(short value) Sets photometric interpretation.1 indicates 0 is black 0 indicates 0 is white 2 RGB 3 indexed color LUT is saved with image - Parameters:
- value- photometric value
 
 - 
setPixelPadValuepublic final void setPixelPadValue(java.lang.Short value) Sets pixel pad value: used in some Dicom images.- Parameters:
- value- pixel pad value
 
 - 
setRescaleInterceptpublic final void setRescaleIntercept(double intercept) Sets the rescale intercept.- Parameters:
- intercept- the intercept
 
 - 
setRescaleSlopepublic final void setRescaleSlope(double slope) Sets the rescale slope.- Parameters:
- slope- the slope
 
 - 
setResolutionspublic final void setResolutions(float[] resolutions) Sets the resolutions of the image.- Parameters:
- resolutions- resolution object
 
 - 
setResolutionspublic final void setResolutions(float resolution, int dim)Sets the resolutions of the image, on a per dimension basis.- Parameters:
- resolution- Resolution for the dimension
- dim- Dimension to set resolution in
 
 - 
setSliceThicknesspublic void setSliceThickness(float thickness) Sets the thickness of the image slices.- Parameters:
- thickness- The slice thickness.
 
 - 
setUnitsOfMeasurepublic final void setUnitsOfMeasure(FileInfoBase.Unit[] unitMeasure) Sets (copies) units of measure for image.- Parameters:
- unitMeasure- unit of measure for a specified dimension
 
 - 
setUnitsOfMeasurepublic final void setUnitsOfMeasure(int[] unitMeasure) Sets (copies) units of measure for image.- Parameters:
- unitMeasure- unit of measure for a specified dimension
 
 - 
setUnitsOfMeasurepublic final void setUnitsOfMeasure(FileInfoBase.Unit unitMeasure, int dim) Sets units of measure for image, on a per dimension basis.- Parameters:
- unitMeasure- Unit of measure for the dimension
- dim- Dimension to set unit of measure in
 
 - 
setUnitsOfMeasurepublic final void setUnitsOfMeasure(int unitMeasure, int dim)Sets units of measure for image, on a per dimension basis.- Parameters:
- unitMeasure- Unit of measure for the dimension
- dim- Dimension to set unit of measure in
 
 - 
setTagNamepublic void setTagName(java.util.Vector<java.lang.String> tagName) 
 - 
setTagDescriptionpublic void setTagDescription(java.util.Vector<java.lang.String> tagDescription) 
 - 
setFocalLengthpublic void setFocalLength(double focalLength) 
 - 
getFocalLengthpublic double getFocalLength() 
 - 
setFocalLength35public void setFocalLength35(double focalLength35) 
 - 
getFocalLength35public double getFocalLength35() 
 - 
setCameraMakepublic void setCameraMake(java.lang.String cameraMake) 
 - 
getCameraMakepublic java.lang.String getCameraMake() 
 - 
setCameraModelpublic void setCameraModel(java.lang.String cameraModel) 
 - 
getCameraModelpublic java.lang.String getCameraModel() 
 - 
setExposureTimepublic void setExposureTime(double exposureTime) 
 - 
getExposureTimepublic double getExposureTime() 
 - 
setFNumberpublic void setFNumber(double FNumber) 
 - 
getFNumberpublic double getFNumber() 
 - 
setISOSpeedRatingpublic void setISOSpeedRating(double ISOSpeedRating) 
 - 
getISOSpeedRatingpublic double getISOSpeedRating() 
 - 
toStringpublic java.lang.String toString() Gives the information contained in FileInfo in a string.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- String information contained in the FileInfo object
 
 - 
getUnitsOfMeasureAbbrevStrpublic static java.lang.String getUnitsOfMeasureAbbrevStr(int i) Deprecated.should now use enum- Parameters:
- i-
- Returns:
 
 - 
getUnitsOfMeasureStrpublic static java.lang.String getUnitsOfMeasureStr(int xUnits) Deprecated.should now use enum- Parameters:
- xUnits-
- Returns:
 
 - 
getUnitsOfMeasureFromStrpublic static int getUnitsOfMeasureFromStr(java.lang.String selectedOutput) Deprecated.should now use enum- Parameters:
- selectedOutput-
- Returns:
 
 - 
getAllSameDimUnitspublic static int[] getAllSameDimUnits(int measure) Deprecated.should now use enum- Parameters:
- selectedOutput-
- Returns:
 
 - 
getUnitsOfMeasureAbbrevStrpublic static java.lang.String[] getUnitsOfMeasureAbbrevStr() Deprecated.should now use enumReturn all the abbreviated units of measure strings as an array.- Returns:
- String[] - array containing the abbreviated strings associated with units of measure.
 
 - 
getUnitsOfMeasureStrpublic static java.lang.String[] getUnitsOfMeasureStr() Deprecated.should use enumReturn all the units of measure strings as an array.- Returns:
- String[] - array containing the strings associated with units of measure.
 
 
- 
 
-