Package gov.nih.mipav.model.file
Class FileCZI
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileCZI
File written using Zeiss Release Version 1.1 for ZEN 2012
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intA triple of 2 x 4 byte IEE float, representing real and imaginary part of a complex number, for the color channels blue, green, and redprivate static final int8 bit triples, representing the color channels blue, green, and redprivate static final int16 bit triples, representing the color channels blue, green, and redprivate static final intTriple of 4 byte IEEE float, representing the color channels blue, green, and redprivate static final int8 bit triples followed by an alpha (transparency) channelprivate final booleanprivate FileDOCUMENT ME!private StringDOCUMENT ME!private FileInfoCZIDOCUMENT ME!private StringDOCUMENT ME!private static final int16 bit unsignedprivate static final int32 bit integer [planned]private static final int32 bit IEEE floatprivate static final intDouble precision floating point [planned]private static final int2 x 4 byte IEEE float, representing the real and imaginary part of a complex numberprivate static final int8 bit unsignedprivate ModelImageDOCUMENT ME!private int[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private static final intprivate static final intprivate static final intprivate static final intFields inherited from class gov.nih.mipav.model.file.FileBase
BIG_ENDIAN, bitsPerPixel, fileNames, LITTLE_ENDIAN, pBarVisible, raFile, READ, READ_WRITE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gov.nih.mipav.model.file.FileBase
addProgressChangeListener, bytesToDouble, bytesToFloat, bytesToInt, bytesToShort, doubleToBytes, fireProgressStateChanged, fireProgressStateChanged, fireProgressStateChanged, floatToBytes, getBufferDouble, getBufferFloat, getBufferInt, getBufferLong, getBufferShort, getBufferUShort, getDataType, getDouble, getFloat, getInt, getLong, getProgressChangeListeners, getRaFile, getSignedShort, getString, getUInt, getUnsignedByte, getUnsignedShort, intToBytes, isBigEndian, isProgressBarVisible, linkProgress, longToBytes, readDouble, readFloat, readInt, readLong, readShort, readString, readUnsignedShort, removeProgressChangeListener, setBigEndian, setBufferFloat, setBufferInt, setBufferLong, setBufferShort, setBufferString, setDataType, setEndianess, shortToBytes, writeBytes, writeDouble, writeFloat, writeInt, writeLong, writeShort
-
Field Details
-
Gray8
private static final int Gray88 bit unsigned- See Also:
-
Gray16
private static final int Gray1616 bit unsigned- See Also:
-
Gray32Float
private static final int Gray32Float32 bit IEEE float- See Also:
-
Bgr24
private static final int Bgr248 bit triples, representing the color channels blue, green, and red- See Also:
-
Bgr48
private static final int Bgr4816 bit triples, representing the color channels blue, green, and red- See Also:
-
Bgr96Float
private static final int Bgr96FloatTriple of 4 byte IEEE float, representing the color channels blue, green, and red- See Also:
-
Bgra32
private static final int Bgra328 bit triples followed by an alpha (transparency) channel- See Also:
-
Gray64ComplexFloat
private static final int Gray64ComplexFloat2 x 4 byte IEEE float, representing the real and imaginary part of a complex number- See Also:
-
Bgr192ComplexFloat
private static final int Bgr192ComplexFloatA 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 Gray3232 bit integer [planned]- See Also:
-
Gray64
private static final int Gray64Double 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
DOCUMENT ME! -
fileDir
DOCUMENT ME! -
fileInfo
DOCUMENT ME! -
fileName
DOCUMENT ME! -
image
DOCUMENT ME! -
imageExtents
private int[] imageExtentsDOCUMENT ME! -
imgBuffer
private float[] imgBufferDOCUMENT ME! -
imgResols
private float[] imgResolsDOCUMENT ME! -
endianess
private final boolean endianess
-
-
Constructor Details
-
FileCZI
LIFF reader/writer constructor.- Parameters:
fileName- file namefileDir- file directory- Throws:
IOException- if there is an error making the file
-
-
Method Details
-
finalize
public void finalize()Prepares this class for cleanup. Calls thefinalizemethod for existing elements, closes any open files and sets other elements tonull. -
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
Reads the CZI header. This method then opens a Model of an image.- Parameters:
multiFile-trueif a set of files each containing a separate 2D image is presentfalseif one file with either a 2D image or a stack of 2D imagesone-trueif 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
- Throws:
IOException
-