|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.in.DeltavisionReader
public class DeltavisionReader
DeltavisionReader is the file format reader for Deltavision files.
Field Summary | |
---|---|
protected loci.formats.in.DeltavisionReader.DVExtHdrFields[][][] |
extHdrFields
Initialize an array of Extended Header Field structures. |
protected int |
numFloatsPerSection
|
protected int |
numIntsPerSection
The number of ints in each extended header section. |
protected int |
tSize
Size of one time element in the extended header. |
protected int |
wSize
Size of one wave in the extended header. |
protected int |
zSize
Size of one z section in the extended header. |
Fields inherited from class loci.formats.FormatReader |
---|
collectMetadata, core, filterMetadata, group, in, metadata, metadataStore, normalizeData, saveOriginalMetadata, series, THUMBNAIL_DIMENSION |
Fields inherited from class loci.formats.FormatHandler |
---|
currentId, debug, debugLevel, format, statusListeners, suffixes |
Fields inherited from interface loci.formats.IFormatReader |
---|
CAN_GROUP, CANNOT_GROUP, MUST_GROUP |
Constructor Summary | |
---|---|
DeltavisionReader()
Constructs a new Deltavision reader. |
Method Summary | |
---|---|
int |
getPlaneNumber(int currentZ,
int currentW,
int currentT)
This method returns the a plane number from when given a Z, W and T offsets. |
int |
getTotalOffset(int currentZ,
int currentW,
int currentT)
Given any specific Z, W, and T of a plane, determine the totalOffset from the start of the extended header. |
protected void |
initFile(String id)
Initializes the given file (parsing header information, etc.). |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for this file format. |
byte[] |
openBytes(int no,
byte[] buf)
Obtains the specified image from the current file into a pre-allocated byte array of (sizeX * sizeY * bytesPerPixel). |
Methods inherited from class loci.formats.FormatHandler |
---|
addStatusListener, debug, getFormat, getStatusListeners, getSuffixes, isThisType, isThisType, removeStatusListener, setDebug, setDebugLevel, setId, status, status, status, trace, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface loci.formats.IFormatHandler |
---|
getFormat, getSuffixes, isThisType, isThisType, setId |
Methods inherited from interface loci.formats.StatusReporter |
---|
addStatusListener, getStatusListeners, removeStatusListener |
Field Detail |
---|
protected int wSize
protected int zSize
protected int tSize
protected int numIntsPerSection
protected int numFloatsPerSection
protected loci.formats.in.DeltavisionReader.DVExtHdrFields[][][] extHdrFields
Constructor Detail |
---|
public DeltavisionReader()
Method Detail |
---|
public boolean isThisType(byte[] block)
IFormatReader
public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException
IFormatReader
no
- the image index within the file.buf
- a pre-allocated buffer.
buf
for convenience.
FormatException
- if there was a problem parsing the metadata of the
file.
IOException
- if there was a problem reading the file.protected void initFile(String id) throws FormatException, IOException
FormatReader
initFile
in class FormatReader
FormatException
IOException
public int getTotalOffset(int currentZ, int currentW, int currentT)
currentZ
- currentW
- currentT
- public int getPlaneNumber(int currentZ, int currentW, int currentT)
currentZ
- currentW
- currentT
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |