Class FileCZI


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

      • Bgr24

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

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

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

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

        private static final int Gray64ComplexFloat
        2 x 4 byte IEEE float, representing the real and imaginary part of a complex number
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • Gray64

        private static final int Gray64
        Double precision floating point [planned]
        See Also:
        Constant Field Values
      • file

        private java.io.File file
        DOCUMENT ME!
      • fileDir

        private java.lang.String fileDir
        DOCUMENT ME!
      • fileName

        private java.lang.String fileName
        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 Detail

      • FileCZI

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

      • 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 java.io.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:
        java.io.IOException - if there is an error reading the file
      • readCString

        private java.lang.String readCString()
                                      throws java.io.IOException
        Throws:
        java.io.IOException