public class SlideBook6Reader extends FormatReader
Modifier and Type | Field and Description |
---|---|
private static String |
GENERAL_3I_MSG |
private static boolean |
initialized |
private static boolean |
libraryFound |
private static String |
NO_3I_MSG |
static int |
SLD_MAGIC_BYTES_1_0 |
static int |
SLD_MAGIC_BYTES_1_1 |
static int |
SLD_MAGIC_BYTES_1_2 |
static int |
SLD_MAGIC_BYTES_2_0 |
static int |
SLD_MAGIC_BYTES_2_1 |
static long |
SLD_MAGIC_BYTES_3 |
private static String |
URL_3I_SLD |
core, coreIndex, datasetDescription, domains, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataOptions, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION
COMPRESSION_SUFFIXES, currentId, format, LOGGER, suffixes
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
Constructor and Description |
---|
SlideBook6Reader() |
Modifier and Type | Method and Description |
---|---|
void |
close(boolean fileOnly)
Closes the currently open file.
|
void |
closeFile() |
int |
getBytesPerPixel(int inCapture) |
String |
getChannelName(int inCapture,
int inChannel) |
int |
getElapsedTime(int inCapture,
int inTimepoint) |
int |
getExposureTime(int inCapture,
int inChannel) |
String |
getImageComments(int inCapture) |
String |
getImageName(int inCapture) |
String |
getLensName(int inCapture) |
double |
getMagnification(int inCapture) |
int |
getMontageColumn(int inCapture,
int inPosition) |
int |
getMontageRow(int inCapture,
int inPosition) |
int |
getNumCaptures() |
int |
getNumChannels(int inCapture) |
int |
getNumPositions(int inCapture) |
int |
getNumTimepoints(int inCapture) |
int |
getNumXColumns(int inCapture) |
int |
getNumYRows(int inCapture) |
int |
getNumZPlanes(int inCapture) |
float |
getVoxelSize(int inCapture) |
double |
getXPosition(int inCapture,
int inPosition) |
double |
getYPosition(int inCapture,
int inPosition) |
double |
getZPosition(int inCapture,
int inPosition,
int inZPlane) |
protected void |
initFile(String id)
Initializes the given file (parsing header information, etc.).
|
private static boolean |
isLibraryFound() |
boolean |
isThisType(RandomAccessInputStream stream)
Checks if the given stream is a valid stream for this file format.
|
boolean |
isThisType(String file,
boolean open)
Checks if a file matches the type of this format reader.
|
byte[] |
openBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Obtains a sub-image of the specified image plane
into a pre-allocated byte array.
|
boolean |
openFile(String path) |
boolean |
readImagePlaneBuf(byte[] outPlaneBuffer,
int inCapture,
int inPosition,
int inTimepoint,
int inZ,
int inChannel) |
addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, close, coreIndexToSeries, fileGroupOption, flattenHashtables, get16BitLookupTable, get8BitLookupTable, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getLineCap, getMarker, getMedium, getMetadataOptions, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getSupportedMetadataLevels, getThumbSizeX, getThumbSizeY, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataOptions, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries
checkSuffix, checkSuffix, getFormat, getNativeDataType, getSuffixes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes
public static final int SLD_MAGIC_BYTES_1_0
public static final int SLD_MAGIC_BYTES_1_1
public static final int SLD_MAGIC_BYTES_1_2
public static final int SLD_MAGIC_BYTES_2_0
public static final int SLD_MAGIC_BYTES_2_1
public static final long SLD_MAGIC_BYTES_3
private static final String URL_3I_SLD
private static final String NO_3I_MSG
private static final String GENERAL_3I_MSG
private static boolean initialized
private static boolean libraryFound
private static boolean isLibraryFound()
public boolean isThisType(RandomAccessInputStream stream) throws IOException
IFormatReader
isThisType
in interface IFormatReader
isThisType
in class FormatReader
IOException
public boolean isThisType(String file, boolean open)
FormatReader
FormatReader.isThisType(RandomAccessInputStream)
.isThisType
in interface IFormatReader
isThisType
in class FormatReader
open
- If true, and the file extension is insufficient to determine
the file type, the (existing) file is opened for further analysis.public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException
IFormatReader
openBytes
in interface IFormatReader
openBytes
in class FormatReader
no
- the image index within the file.buf
- a pre-allocated buffer.x
- X coordinate of the upper-left corner of the sub-imagey
- Y coordinate of the upper-left corner of the sub-imagew
- width of the sub-imageh
- height of the sub-imagebuf
for convenience.FormatException
- if there was a problem parsing the metadata of the
file.IOException
- if there was a problem reading the file.IFormatReader.openBytes(int, byte[], int, int, int, int)
public void close(boolean fileOnly) throws IOException
IFormatReader
Closeable.close()
.close
in interface IFormatReader
close
in class FormatReader
IOException
protected void initFile(String id) throws FormatException, IOException
FormatReader
initFile
in class FormatReader
FormatException
- if a parsing error occurs processing the file.IOException
- if an I/O error occurs processing the filepublic boolean openFile(String path)
public void closeFile()
public int getNumCaptures()
public int getNumPositions(int inCapture)
public int getNumTimepoints(int inCapture)
public int getNumChannels(int inCapture)
public int getNumXColumns(int inCapture)
public int getNumYRows(int inCapture)
public int getNumZPlanes(int inCapture)
public int getElapsedTime(int inCapture, int inTimepoint)
public int getExposureTime(int inCapture, int inChannel)
public float getVoxelSize(int inCapture)
public double getXPosition(int inCapture, int inPosition)
public double getYPosition(int inCapture, int inPosition)
public double getZPosition(int inCapture, int inPosition, int inZPlane)
public int getMontageRow(int inCapture, int inPosition)
public int getMontageColumn(int inCapture, int inPosition)
public String getChannelName(int inCapture, int inChannel)
public String getLensName(int inCapture)
public double getMagnification(int inCapture)
public String getImageName(int inCapture)
public String getImageComments(int inCapture)
public int getBytesPerPixel(int inCapture)
public boolean readImagePlaneBuf(byte[] outPlaneBuffer, int inCapture, int inPosition, int inTimepoint, int inZ, int inChannel)
Copyright © 2016 Open Microscopy Environment