- java.lang.Object
-
- ij.io.FileInfo
-
- All Implemented Interfaces:
java.lang.Cloneable
public class FileInfo extends java.lang.Object implements java.lang.CloneableThis class consists of public fields that describe an image file.
-
-
Field Summary
Fields Modifier and Type Field Description static intABGR32-bit interleaved ABGR.static intARGB32-bit interleaved ARGB.static intBARG32-bit interleaved BARG (MCID).static intBGR24-bit interleaved BGR.static intBITMAP1-bit black and white.byte[]bluesstatic intBMPintcalibrationFunctionbyte[][]channelLutsstatic intCMYK32-bit interleaved CMYK.double[]coefficientsstatic intCOLOR88-bit unsigned integer with color lookup table.intcompressionstatic intCOMPRESSION_NONEstatic intCOMPRESSION_UNKNOWNjava.lang.StringdebugInfojava.lang.Stringdescriptionstatic intDICOMjava.lang.Stringdirectorydouble[]displayRangesintfileFormatjava.lang.StringfileNameintfileTypestatic intFITSdoubleframeIntervalintgapBetweenImagesstatic intGIF_OR_JPGstatic intGRAY10_UNSIGNED10-bit unsigned integer (0-1023).static intGRAY12_UNSIGNED12-bit unsigned integer (0-4095).static intGRAY16_SIGNED16-bit signed integer (-32768-32767).static intGRAY16_UNSIGNED16-bit unsigned integer (0-65535).static intGRAY24_UNSIGNED24-bit unsigned integer.static intGRAY32_FLOAT32-bit floating-point.static intGRAY32_INT32-bit signed integer.static intGRAY32_UNSIGNED32-bit unsigned integer.static intGRAY64_FLOAT64-bit floating-point.static intGRAY88-bit unsigned integer (0-255).byte[]greensintheightstatic intIMAGEIObooleanimageSavedjava.lang.Stringinfojava.io.InputStreaminputStreambooleanintelByteOrderstatic intJPEGlonglongGaplonglongOffsetintlutSizestatic intLZWstatic intLZW_WITH_DIFFERENCINGbyte[][]metaDataint[]metaDataTypesintnImagesintoffsetjava.lang.StringopenNextDirjava.lang.StringopenNextNamebyte[][]overlaystatic intPACK_BITSstatic intPGMdoublepixelDepthdoublepixelHeightjava.lang.ObjectpixelsdoublepixelWidthbyte[]plotjava.lang.String[]propertiesstatic intRAWbyte[]redsstatic intRGB24-bit interleaved RGB.static intRGB_PLANAR24-bit planer RGB.static intRGB4848-bit interleaved RGB.static intRGB48_PLANAR48-bit planar RGB.byte[]roiintrowsPerStripintsamplesPerPixeljava.lang.String[]sliceLabelsintsliceNumberint[]stripLengthsint[]stripOffsetsstatic intTIFFjava.lang.Stringunitstatic intUNKNOWNjava.lang.Stringurljava.lang.StringvalueUnitVirtualStackvirtualStackbooleanwhiteIsZerointwidthstatic intZIPstatic intZIP_ARCHIVEstatic intZIP_WITH_DIFFERENCING
-
Constructor Summary
Constructors Constructor Description FileInfo()Creates a FileInfo object with all of its fields set to their default value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()intgetBytesPerPixel()Returns the number of bytes used per pixel.java.lang.StringgetCode()Returns JavaScript code that can be used to recreate this FileInfo.java.lang.StringgetFilePath()Returns the file path.longgetGap()Returns the gap between images as a long.longgetOffset()Returns the offset as a long.java.lang.StringtoString()
-
-
-
Field Detail
-
GRAY8
public static final int GRAY8
8-bit unsigned integer (0-255).- See Also:
- Constant Field Values
-
GRAY16_SIGNED
public static final int GRAY16_SIGNED
16-bit signed integer (-32768-32767). Imported signed images are converted to unsigned by adding 32768.- See Also:
- Constant Field Values
-
GRAY16_UNSIGNED
public static final int GRAY16_UNSIGNED
16-bit unsigned integer (0-65535).- See Also:
- Constant Field Values
-
GRAY32_INT
public static final int GRAY32_INT
32-bit signed integer. Imported 32-bit integer images are converted to floating-point.- See Also:
- Constant Field Values
-
GRAY32_FLOAT
public static final int GRAY32_FLOAT
32-bit floating-point.- See Also:
- Constant Field Values
-
COLOR8
public static final int COLOR8
8-bit unsigned integer with color lookup table.- See Also:
- Constant Field Values
-
RGB
public static final int RGB
24-bit interleaved RGB. Import/export only.- See Also:
- Constant Field Values
-
RGB_PLANAR
public static final int RGB_PLANAR
24-bit planer RGB. Import only.- See Also:
- Constant Field Values
-
BITMAP
public static final int BITMAP
1-bit black and white. Import only.- See Also:
- Constant Field Values
-
ARGB
public static final int ARGB
32-bit interleaved ARGB. Import only.- See Also:
- Constant Field Values
-
BGR
public static final int BGR
24-bit interleaved BGR. Import only.- See Also:
- Constant Field Values
-
GRAY32_UNSIGNED
public static final int GRAY32_UNSIGNED
32-bit unsigned integer. Imported 32-bit integer images are converted to floating-point.- See Also:
- Constant Field Values
-
RGB48
public static final int RGB48
48-bit interleaved RGB.- See Also:
- Constant Field Values
-
GRAY12_UNSIGNED
public static final int GRAY12_UNSIGNED
12-bit unsigned integer (0-4095). Import only.- See Also:
- Constant Field Values
-
GRAY24_UNSIGNED
public static final int GRAY24_UNSIGNED
24-bit unsigned integer. Import only.- See Also:
- Constant Field Values
-
BARG
public static final int BARG
32-bit interleaved BARG (MCID). Import only.- See Also:
- Constant Field Values
-
GRAY64_FLOAT
public static final int GRAY64_FLOAT
64-bit floating-point. Import only.- See Also:
- Constant Field Values
-
RGB48_PLANAR
public static final int RGB48_PLANAR
48-bit planar RGB. Import only.- See Also:
- Constant Field Values
-
ABGR
public static final int ABGR
32-bit interleaved ABGR. Import only.- See Also:
- Constant Field Values
-
CMYK
public static final int CMYK
32-bit interleaved CMYK. Import only.- See Also:
- Constant Field Values
-
GRAY10_UNSIGNED
public static final int GRAY10_UNSIGNED
10-bit unsigned integer (0-1023). Import only.- See Also:
- Constant Field Values
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
RAW
public static final int RAW
- See Also:
- Constant Field Values
-
TIFF
public static final int TIFF
- See Also:
- Constant Field Values
-
GIF_OR_JPG
public static final int GIF_OR_JPG
- See Also:
- Constant Field Values
-
FITS
public static final int FITS
- See Also:
- Constant Field Values
-
BMP
public static final int BMP
- See Also:
- Constant Field Values
-
DICOM
public static final int DICOM
- See Also:
- Constant Field Values
-
ZIP_ARCHIVE
public static final int ZIP_ARCHIVE
- See Also:
- Constant Field Values
-
PGM
public static final int PGM
- See Also:
- Constant Field Values
-
IMAGEIO
public static final int IMAGEIO
- See Also:
- Constant Field Values
-
COMPRESSION_UNKNOWN
public static final int COMPRESSION_UNKNOWN
- See Also:
- Constant Field Values
-
COMPRESSION_NONE
public static final int COMPRESSION_NONE
- See Also:
- Constant Field Values
-
LZW
public static final int LZW
- See Also:
- Constant Field Values
-
LZW_WITH_DIFFERENCING
public static final int LZW_WITH_DIFFERENCING
- See Also:
- Constant Field Values
-
JPEG
public static final int JPEG
- See Also:
- Constant Field Values
-
PACK_BITS
public static final int PACK_BITS
- See Also:
- Constant Field Values
-
ZIP
public static final int ZIP
- See Also:
- Constant Field Values
-
ZIP_WITH_DIFFERENCING
public static final int ZIP_WITH_DIFFERENCING
- See Also:
- Constant Field Values
-
fileFormat
public int fileFormat
-
fileType
public int fileType
-
fileName
public java.lang.String fileName
-
directory
public java.lang.String directory
-
url
public java.lang.String url
-
width
public int width
-
height
public int height
-
offset
public int offset
-
nImages
public int nImages
-
gapBetweenImages
public int gapBetweenImages
-
whiteIsZero
public boolean whiteIsZero
-
intelByteOrder
public boolean intelByteOrder
-
compression
public int compression
-
stripOffsets
public int[] stripOffsets
-
stripLengths
public int[] stripLengths
-
rowsPerStrip
public int rowsPerStrip
-
lutSize
public int lutSize
-
reds
public byte[] reds
-
greens
public byte[] greens
-
blues
public byte[] blues
-
pixels
public java.lang.Object pixels
-
debugInfo
public java.lang.String debugInfo
-
sliceLabels
public java.lang.String[] sliceLabels
-
info
public java.lang.String info
-
inputStream
public java.io.InputStream inputStream
-
virtualStack
public VirtualStack virtualStack
-
sliceNumber
public int sliceNumber
-
pixelWidth
public double pixelWidth
-
pixelHeight
public double pixelHeight
-
pixelDepth
public double pixelDepth
-
unit
public java.lang.String unit
-
calibrationFunction
public int calibrationFunction
-
coefficients
public double[] coefficients
-
valueUnit
public java.lang.String valueUnit
-
frameInterval
public double frameInterval
-
description
public java.lang.String description
-
longOffset
public long longOffset
-
longGap
public long longGap
-
metaDataTypes
public int[] metaDataTypes
-
metaData
public byte[][] metaData
-
displayRanges
public double[] displayRanges
-
channelLuts
public byte[][] channelLuts
-
plot
public byte[] plot
-
roi
public byte[] roi
-
overlay
public byte[][] overlay
-
samplesPerPixel
public int samplesPerPixel
-
openNextDir
public java.lang.String openNextDir
-
openNextName
public java.lang.String openNextName
-
properties
public java.lang.String[] properties
-
imageSaved
public boolean imageSaved
-
-
Method Detail
-
getFilePath
public java.lang.String getFilePath()
Returns the file path.
-
getOffset
public final long getOffset()
Returns the offset as a long.
-
getGap
public final long getGap()
Returns the gap between images as a long.
-
getBytesPerPixel
public int getBytesPerPixel()
Returns the number of bytes used per pixel.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getCode
public java.lang.String getCode()
Returns JavaScript code that can be used to recreate this FileInfo.
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-