Module ij
Package ij.io

Class FileInfo

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class FileInfo
    extends java.lang.Object
    implements java.lang.Cloneable
    This class consists of public fields that describe an image file.
    • Field Detail

      • 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
      • 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
      • 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
      • 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
      • 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
    • Constructor Detail

      • FileInfo

        public FileInfo()
        Creates a FileInfo object with all of its fields set to their default value.
    • 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:
        toString in class java.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:
        clone in class java.lang.Object