Class FileCZI

java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileCZI

public class FileCZI extends FileBase
File written using Zeiss Release Version 1.1 for ZEN 2012
  • Field Details

    • Gray8

      private static final int Gray8
      8 bit unsigned
      See Also:
    • Gray16

      private static final int Gray16
      16 bit unsigned
      See Also:
    • Gray32Float

      private static final int Gray32Float
      32 bit IEEE float
      See Also:
    • Bgr24

      private static final int Bgr24
      8 bit triples, representing the color channels blue, green, and red
      See Also:
    • Bgr48

      private static final int Bgr48
      16 bit triples, representing the color channels blue, green, and red
      See Also:
    • Bgr96Float

      private static final int Bgr96Float
      Triple of 4 byte IEEE float, representing the color channels blue, green, and red
      See Also:
    • Bgra32

      private static final int Bgra32
      8 bit triples followed by an alpha (transparency) channel
      See Also:
    • Gray64ComplexFloat

      private static final int Gray64ComplexFloat
      2 x 4 byte IEEE float, representing the real and imaginary part of a complex number
      See Also:
    • Bgr192ComplexFloat

      private static final int Bgr192ComplexFloat
      A triple of 2 x 4 byte IEE float, representing real and imaginary part of a complex number, for the color channels blue, green, and red
      See Also:
    • Gray32

      private static final int Gray32
      32 bit integer [planned]
      See Also:
    • Gray64

      private static final int Gray64
      Double precision floating point [planned]
      See Also:
    • Uncompressed

      private static final int Uncompressed
      See Also:
    • LZW

      private static final int LZW
      See Also:
    • JpgFile

      private static final int JpgFile
      See Also:
    • JpegXrFile

      private static final int JpegXrFile
      See Also:
    • file

      private File file
      DOCUMENT ME!
    • fileDir

      private String fileDir
      DOCUMENT ME!
    • fileInfo

      private FileInfoCZI fileInfo
      DOCUMENT ME!
    • fileName

      private String fileName
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • imageExtents

      private int[] imageExtents
      DOCUMENT ME!
    • imgBuffer

      private float[] imgBuffer
      DOCUMENT ME!
    • imgResols

      private float[] imgResols
      DOCUMENT ME!
    • endianess

      private final boolean endianess
  • Constructor Details

    • FileCZI

      public FileCZI(String fileName, String fileDir) throws IOException
      LIFF reader/writer constructor.
      Parameters:
      fileName - file name
      fileDir - file directory
      Throws:
      IOException - if there is an error making the file
  • Method Details

    • finalize

      public void finalize()
      Prepares this class for cleanup. Calls the finalize method for existing elements, closes any open files and sets other elements to null.
      Overrides:
      finalize in class FileBase
    • getFileInfo

      public FileInfoBase getFileInfo()
      Accessor that returns the file info.
      Returns:
      FileInfoBase containing the file info
    • getImageBuffer

      public float[] getImageBuffer()
      Accessor that returns the image buffer.
      Returns:
      buffer of image.
    • readImage

      public ModelImage readImage(boolean multiFile, boolean one) throws IOException
      Reads the CZI header. This method then opens a Model of an image.
      Parameters:
      multiFile - true if a set of files each containing a separate 2D image is present false if one file with either a 2D image or a stack of 2D images
      one - true if only want to read in one image of the 3D set
      Returns:
      returns the image
      Throws:
      IOException - if there is an error reading the file
    • readCString

      private String readCString() throws IOException
      Throws:
      IOException