Package gov.nih.mipav.model.file
Class FileICS
java.lang.Object
gov.nih.mipav.model.file.FileBase
gov.nih.mipav.model.file.FileICS
Reference: 1. Proposed Standard for Image Cytometry Data Files by Philip Dean, Laura Mascio, David Ow, Damir Sudar,
and James Mullikin, Cytometry, 11, pp. 561- 569, 1990.
2. libics v.1.3 Online Documentation, copyright 2000-2002 by Cris Luengo. http://www.ph.tn.tudelft.nl/~cris/libics
- Author:
- William Gandler
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String[]DOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private String[]DOCUMENT ME!private intDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private longDOCUMENT ME!private StringDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private booleanDOCUMENT ME!private intDOCUMENT ME!private booleanDOCUMENT ME!private String[]DOCUMENT ME!private byteDOCUMENT ME!private FileDOCUMENT ME!private StringDOCUMENT ME!private FileInfoICSDOCUMENT ME!private FileInfoICSprivate StringDOCUMENT ME!private StringDOCUMENT ME!private String[]DOCUMENT ME!private StringDOCUMENT ME!private booleanprivate StringDOCUMENT ME!private String[]DOCUMENT ME!private intDOCUMENT ME!private ModelImageDOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private double[]DOCUMENT ME!private double[]DOCUMENT ME!private double[]DOCUMENT ME!private double[]DOCUMENT ME!private int[]DOCUMENT ME!private long[]DOCUMENT ME!private long[]DOCUMENT ME!private float[]DOCUMENT ME!private booleanDOCUMENT ME!private String[]DOCUMENT ME!private String[]DOCUMENT ME!private String[]DOCUMENT ME!private ModelLUTDOCUMENT ME!private String[]DOCUMENT ME!private intDOCUMENT ME!private String[]DOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private String[]DOCUMENT ME!private float[]DOCUMENT ME!private intDOCUMENT ME!private String[]DOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private String[]DOCUMENT ME!private String[]DOCUMENT ME!private String[]DOCUMENT ME!private static final intDOCUMENT ME!private static final intDOCUMENT ME!private static final intDOCUMENT ME!private intDOCUMENT ME!private float[]DOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private intprivate int[]DOCUMENT ME!private String[]DOCUMENT ME!private String[]DOCUMENT ME!private float[]DOCUMENT ME!private StringDOCUMENT ME!private intDOCUMENT ME!private String[]DOCUMENT ME!private int[]DOCUMENT ME!private String[]DOCUMENT ME!private booleanDOCUMENT ME!private String[]DOCUMENT ME!private StringDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!Fields 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
Modifier and TypeMethodDescriptionvoidfinalize()Prepares this class for cleanup.getFileInfo - accessor that returns the file info.float[]getImageBuffer - accessor that returns the image buffer.getModelLUT - returns LUT if defined.private voidreadBuffer(int slice, float[] buffer) Reads a slice of data at a time and stores the results in the buffer.private voidreadComplexBuffer(int slice, float[] bufferR, float[] bufferI) Reads a slice of data at a time and stores the results in the buffer.private voidreadDBuffer(int slice, double[] buffer) Reads a slice of data at a time and stores the results in the buffer.private voidreadDComplexBuffer(int slice, double[] bufferR, double[] bufferI) Reads a slice of data at a time and stores the results in the buffer.booleanReads the image header.readImage.private voidreadLBuffer(int slice, long[] buffer) Reads a slice of data at a time and stores the results in the buffer.private voidreadLine()readLine() - reads a line of the file header separate into category, subcategory, and values.voidwriteImage(ModelImage image, FileWriteOptions options) Writes an ICS format type image.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
-
RGB_FIRST
private static final int RGB_FIRSTDOCUMENT ME!- See Also:
-
RGB_BETWEEN_SPACEANDTIME
private static final int RGB_BETWEEN_SPACEANDTIMEDOCUMENT ME!- See Also:
-
RGB_LAST
private static final int RGB_LASTDOCUMENT ME!- See Also:
-
actualHistory
DOCUMENT ME! -
bufferSize
private int bufferSizeDOCUMENT ME! -
captureVersion
DOCUMENT ME! -
category
DOCUMENT ME! -
channels
DOCUMENT ME! -
colorSpacing
private int colorSpacingDOCUMENT ME! -
compression
DOCUMENT ME! -
dataFileName
DOCUMENT ME! -
dataOffset
private long dataOffsetDOCUMENT ME! -
dataSetFileName
DOCUMENT ME! -
dataType
private int dataTypeDOCUMENT ME! -
endBytes
private int endBytesDOCUMENT ME! -
endFloats
private int endFloatsDOCUMENT ME! -
endianess
private boolean endianessDOCUMENT ME! -
endShorts
private int endShortsDOCUMENT ME! -
exchangeXY
private boolean exchangeXYDOCUMENT ME! -
exPhotonCnt
DOCUMENT ME! -
fieldSeparator
private byte fieldSeparatorDOCUMENT ME! -
file
DOCUMENT ME! -
fileDir
DOCUMENT ME! -
fileInfo
DOCUMENT ME! -
fileInfoCopy
-
fileName
DOCUMENT ME! -
filterExposureTimeX
DOCUMENT ME! -
filterFluorophoreX
DOCUMENT ME! -
format
DOCUMENT ME! -
headerFileName
DOCUMENT ME! -
history
DOCUMENT ME! -
historyNumber
private int historyNumberDOCUMENT ME! -
image
DOCUMENT ME! -
imgBuffer
private float[] imgBufferDOCUMENT ME! -
imgBuffer2
private float[] imgBuffer2DOCUMENT ME! -
imgBufferI
private float[] imgBufferIDOCUMENT ME! -
imgBufferI2
private float[] imgBufferI2DOCUMENT ME! -
imgDBuffer
private double[] imgDBufferDOCUMENT ME! -
imgDBuffer2
private double[] imgDBuffer2DOCUMENT ME! -
imgDBufferI
private double[] imgDBufferIDOCUMENT ME! -
imgDBufferI2
private double[] imgDBufferI2DOCUMENT ME! -
imgExtents
private int[] imgExtentsDOCUMENT ME! -
imgLBuffer
private long[] imgLBufferDOCUMENT ME! -
imgLBuffer2
private long[] imgLBuffer2DOCUMENT ME! -
imgResols
private float[] imgResolsDOCUMENT ME! -
invertY
private boolean invertYDOCUMENT ME! -
labels
DOCUMENT ME! -
lambdaEm
DOCUMENT ME! -
lambdaEx
DOCUMENT ME! -
LUT
DOCUMENT ME! -
mapchannel
DOCUMENT ME! -
nDims
private int nDimsDOCUMENT ME! -
numAperture
DOCUMENT ME! -
numberSlices
private int numberSlicesDOCUMENT ME! -
numberSpaceSlices
private int numberSpaceSlicesDOCUMENT ME! -
numColors
private int numColorsDOCUMENT ME! -
numValues
private int numValuesDOCUMENT ME! -
order
DOCUMENT ME! -
origin
private float[] originDOCUMENT ME! -
parameters
private int parametersDOCUMENT ME! -
pinholeRadius
DOCUMENT ME! -
plateChamberID
DOCUMENT ME! -
plateVesselID
DOCUMENT ME! -
probe
DOCUMENT ME! -
refrInxLensMedium
DOCUMENT ME! -
refrInxMedium
DOCUMENT ME! -
rgbPos
private int rgbPosDOCUMENT ME! -
scale
private float[] scaleDOCUMENT ME! -
scilType
DOCUMENT ME! -
sensorModel
DOCUMENT ME! -
sensorType
DOCUMENT ME! -
sign
DOCUMENT ME! -
significant_bits
private int significant_bits -
sizes
private int[] sizesDOCUMENT ME! -
specimen
DOCUMENT ME! -
specimenSpecies
DOCUMENT ME! -
startLocations
private float[] startLocationsDOCUMENT ME! -
subcategory
DOCUMENT ME! -
tPos
private int tPosDOCUMENT ME! -
units
DOCUMENT ME! -
unitsOfMeasure
private int[] unitsOfMeasureDOCUMENT ME! -
unitsStr
DOCUMENT ME! -
useGZIP
private boolean useGZIPDOCUMENT ME! -
values
DOCUMENT ME! -
version
DOCUMENT ME! -
xPos
private int xPosDOCUMENT ME! -
yPos
private int yPosDOCUMENT ME! -
zPos
private int zPosDOCUMENT ME! -
hasRGB
private boolean hasRGB
-
-
Constructor Details
-
FileICS
ICS reader 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
getFileInfo - accessor that returns the file info.- Returns:
- FileInfoBase containing the file info
-
getImageBuffer
public float[] getImageBuffer()getImageBuffer - accessor that returns the image buffer.- Returns:
- buffer of image.
-
getModelLUT
getModelLUT - returns LUT if defined.- Returns:
- the LUT if defined else it is null
-
readImage
readImage.- Returns:
- returns the image
- Throws:
IOException- if there is an error reading the file
-
writeImage
Writes an ICS format type image.- Parameters:
image- Image model of data to write.options- options such as starting and ending slices and times- Throws:
IOException- if there is an error writing the file
-
readBuffer
Reads a slice of data at a time and stores the results in the buffer.- Parameters:
slice- offset into the file stored in the dataOffset arraybuffer- buffer where the info is stored- Throws:
IOException- if there is an error reading the file
-
readComplexBuffer
Reads a slice of data at a time and stores the results in the buffer.- Parameters:
slice- offset into the file stored in the dataOffset arraybufferR- buffer where the real info is storedbufferI- buffer where the imaginary info is stored- Throws:
IOException- if there is an error reading the file
-
readDBuffer
Reads a slice of data at a time and stores the results in the buffer.- Parameters:
slice- offset into the file stored in the dataOffset arraybuffer- buffer where the info is stored- Throws:
IOException- if there is an error reading the file
-
readDComplexBuffer
Reads a slice of data at a time and stores the results in the buffer.- Parameters:
slice- offset into the file stored in the dataOffset arraybufferR- buffer where the real info is storedbufferI- buffer where the imaginary info is stored- Throws:
IOException- if there is an error reading the file
-
readHeader
Reads the image header.- Throws:
IOException- DOCUMENT ME!
-
readLBuffer
Reads a slice of data at a time and stores the results in the buffer.- Parameters:
slice- offset into the file stored in the dataOffset arraybuffer- buffer where the info is stored- Throws:
IOException- if there is an error reading the file
-
readLine
readLine() - reads a line of the file header separate into category, subcategory, and values.- Throws:
IOException- if there is an error reading the file
-