ome-files
0.5.0
|
Interface for all biological file format readers (default behaviour). More...
#include <ome/files/detail/FormatReader.h>
Public Member Functions | |
virtual | ~FormatReader () |
Destructor. | |
const std::set< MetadataOptions::MetadataLevel > & | getSupportedMetadataLevels () |
Get the supported metadata levels. More... | |
void | setMetadataOptions (const MetadataOptions &options) |
Set metadata options. More... | |
const MetadataOptions & | getMetadataOptions () const |
Get metadata options. More... | |
MetadataOptions & | getMetadataOptions () |
Get metadata options. More... | |
const MetadataMap & | getGlobalMetadata () const |
Get global metadata map. More... | |
const MetadataMap::value_type & | getMetadataValue (const std::string &field) const |
Get a global metadata value. More... | |
const MetadataMap & | getSeriesMetadata () const |
Get series metadata map. More... | |
const MetadataMap::value_type & | getSeriesMetadataValue (const MetadataMap::key_type &field) const |
Get a series metadata value. More... | |
bool | isThisType (const boost::filesystem::path &name, bool open=true) const |
Check if the given file is a valid instance of this file format. More... | |
bool | isThisType (const uint8_t *begin, std::size_t length) const |
Check if the given buffer is a valid header for this file format. More... | |
bool | isThisType (const uint8_t *begin, const uint8_t *end) const |
Check if the given buffer is a valid header for this file format. More... | |
bool | isThisType (std::istream &stream) const |
Check if the given input stream is a valid stream for this file format. More... | |
dimension_size_type | getImageCount () const |
Determine the number of image planes in the current series. More... | |
bool | isRGB (dimension_size_type channel) const |
Check if the image planes for a channel have more than one sub-channel per openBytes() call. More... | |
dimension_size_type | getSizeX () const |
Get the size of the X dimension. More... | |
dimension_size_type | getSizeY () const |
Get the size of the Y dimension. More... | |
dimension_size_type | getSizeZ () const |
Get the size of the Z dimension. More... | |
dimension_size_type | getSizeT () const |
Get the size of the T dimension. More... | |
dimension_size_type | getSizeC () const |
Get the size of the C dimension. More... | |
ome::xml::model::enums::PixelType | getPixelType () const |
Get the pixel type. More... | |
pixel_size_type | getBitsPerPixel () const |
Get the number of valid bits per pixel. More... | |
dimension_size_type | getEffectiveSizeC () const |
Get the effective size of the C dimension. More... | |
dimension_size_type | getRGBChannelCount (dimension_size_type channel) const |
Get the number of channels returned for a call to openBytes(). More... | |
bool | isIndexed () const |
Get whether the image planes are indexed color. More... | |
bool | isFalseColor () const |
Get whether the image planes are false color. More... | |
void | getLookupTable (dimension_size_type plane, VariantPixelBuffer &buf) const |
Get the color lookup table associated with an image plane. More... | |
Modulo & | getModuloZ () |
Get the Modulo subdivision of the Z dimension. More... | |
const Modulo & | getModuloZ () const |
Get the Modulo subdivision of the Z dimension. More... | |
Modulo & | getModuloT () |
Get the Modulo subdivision of the T dimension. More... | |
const Modulo & | getModuloT () const |
Get the Modulo subdivision of the T dimension. More... | |
Modulo & | getModuloC () |
Get the Modulo subdivision of the C dimension. More... | |
const Modulo & | getModuloC () const |
Get the Modulo subdivision of the C dimension. More... | |
dimension_size_type | getThumbSizeX () const |
Get the thumbnail size of the X dimension. More... | |
dimension_size_type | getThumbSizeY () const |
Get the thumbnail size of the Y dimension. More... | |
bool | isLittleEndian () const |
Get whether the data is in little-endian format. More... | |
const std::string & | getDimensionOrder () const |
Get the dimension order. More... | |
bool | isOrderCertain () const |
Get whether the dimension order and sizes are known, or merely guesses. More... | |
bool | isThumbnailSeries () const |
Get whether the current series is a lower resolution copy of a different series. More... | |
bool | isInterleaved () const |
Get whether or not the channels are interleaved. More... | |
bool | isInterleaved (dimension_size_type subC) const |
Get whether or not the given channel is interleaved. More... | |
void | openBytes (dimension_size_type plane, VariantPixelBuffer &buf) const |
Obtain an image plane. More... | |
void | openBytes (dimension_size_type plane, VariantPixelBuffer &buf, dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h) const |
Obtain a sub-image of an image plane. More... | |
void | openThumbBytes (dimension_size_type plane, VariantPixelBuffer &buf) const |
Obtain a thumbnail of an image plane. More... | |
void | close (bool fileOnly=false) |
Close the currently open file. More... | |
dimension_size_type | getSeriesCount () const |
Get the number of image series in this file. More... | |
void | setSeries (dimension_size_type series) const |
Set the active series. More... | |
dimension_size_type | getSeries () const |
Get the active series. More... | |
void | setPlane (dimension_size_type plane) const |
Set the active plane. More... | |
dimension_size_type | getPlane () const |
Get the active plane. More... | |
void | setGroupFiles (bool group) |
Set file grouping. More... | |
bool | isGroupFiles () const |
Get file grouping. More... | |
FileGroupOption | fileGroupOption (const std::string &id) |
Returns an enum indicating that we cannot, must, or might group the files in this dataset. More... | |
bool | isMetadataComplete () const |
Get status of metadata parsing. More... | |
void | setNormalized (bool normalize) |
Set float normalization. More... | |
bool | isNormalized () const |
Get float normalization. More... | |
void | setOriginalMetadataPopulated (bool populate) |
Specifies whether or not to save proprietary metadata in the MetadataStore. More... | |
bool | isOriginalMetadataPopulated () const |
Get proprietary metadata storage. More... | |
const std::vector< boost::filesystem::path > | getUsedFiles (bool noPixels=false) const |
Get the files used by this dataset. More... | |
const std::vector< boost::filesystem::path > | getSeriesUsedFiles (bool noPixels=false) const |
Get the files used by the active series. More... | |
std::vector< FileInfo > | getAdvancedUsedFiles (bool noPixels=false) const |
Get the files used by this dataset. More... | |
std::vector< FileInfo > | getAdvancedSeriesUsedFiles (bool noPixels=false) const |
Get the files used by the active series. More... | |
const boost::optional< boost::filesystem::path > & | getCurrentFile () const |
Get the currently open file. More... | |
dimension_size_type | getIndex (dimension_size_type z, dimension_size_type c, dimension_size_type t) const |
Get the linear index of a Z , C and T coordinate. More... | |
dimension_size_type | getIndex (dimension_size_type z, dimension_size_type c, dimension_size_type t, dimension_size_type moduloZ, dimension_size_type moduloC, dimension_size_type moduloT) const |
Get the linear index of a Z , C , T , ModuloZ , ModuloC and ModuloT coordinate. More... | |
std::array< dimension_size_type, 3 > | getZCTCoords (dimension_size_type index) const |
Get the Z , C and T coordinate of a linear index. More... | |
std::array< dimension_size_type, 6 > | getZCTModuloCoords (dimension_size_type index) const |
Get the Z , C , T , ModuloZ , ModuloC and ModuloT coordinate of a linear index. More... | |
const std::vector< std::shared_ptr<::ome::files::CoreMetadata > > & | getCoreMetadataList () const |
Get the core metadata. More... | |
void | setMetadataFiltered (bool filter) |
Set metadata filtering. More... | |
bool | isMetadataFiltered () const |
Get metadata filtering. More... | |
void | setMetadataStore (std::shared_ptr<::ome::xml::meta::MetadataStore > &store) |
Set the default metadata store for this reader. More... | |
const std::shared_ptr<::ome::xml::meta::MetadataStore > & | getMetadataStore () const |
Get the current metadata store for this reader. More... | |
std::shared_ptr<::ome::xml::meta::MetadataStore > & | getMetadataStore () |
Get the current metadata store for this reader. More... | |
std::vector< std::shared_ptr<::ome::files::FormatReader > > | getUnderlyingReaders () const |
Get all underlying readers. More... | |
bool | isSingleFile (const boost::filesystem::path &id) const |
Is this a single-file format? More... | |
uint32_t | getRequiredDirectories (const std::vector< std::string > &files) const |
Get required parent directories. More... | |
const std::string & | getDatasetStructureDescription () const |
Get a short description of the dataset structure. More... | |
const std::vector< std::string > & | getPossibleDomains (const std::string &id) const |
Get the possible domains represented in which this format is used. More... | |
bool | hasCompanionFiles () const |
Does this format support multi-file datasets? More... | |
const std::vector< std::string > & | getDomains () const |
Get the domains represented by the current file. More... | |
dimension_size_type | getOptimalTileWidth (dimension_size_type channel) const |
Get the optimal sub-image width. More... | |
dimension_size_type | getOptimalTileHeight (dimension_size_type channel) const |
Get the optimal sub-image height. More... | |
dimension_size_type | getOptimalTileWidth () const |
Get the optimal sub-image width. More... | |
dimension_size_type | getOptimalTileHeight () const |
Get the optimal sub-image height. More... | |
dimension_size_type | seriesToCoreIndex (dimension_size_type series) const |
Get the first core index corresponding to the specified series. More... | |
dimension_size_type | coreIndexToSeries (dimension_size_type index) const |
Get the series corresponding to the specified core index. More... | |
dimension_size_type | getCoreIndex () const |
Get the CoreMetadata index of the current resolution/series. More... | |
void | setCoreIndex (dimension_size_type index) const |
Set the current resolution/series (ignoring sub-resolutions). More... | |
dimension_size_type | getResolutionCount () const |
Get the number of resolutions for the current series. More... | |
void | setResolution (dimension_size_type resolution) const |
Set the active resolution level. More... | |
dimension_size_type | getResolution () const |
Get the active resolution level. More... | |
bool | hasFlattenedResolutions () const |
Get resolution flattening. More... | |
void | setFlattenedResolutions (bool flatten) |
Set resolution flattening. More... | |
void | setId (const boost::filesystem::path &id) |
Set the current file name. More... | |
const std::string & | getFormat () const |
Get the name of this file format. More... | |
const std::string & | getFormatDescription () const |
Get the description of this file format. More... | |
const std::vector< boost::filesystem::path > & | getSuffixes () const |
Get the default file suffixes for this file format. More... | |
const std::vector< boost::filesystem::path > & | getCompressionSuffixes () const |
Get the default compression suffixes for this file format. More... | |
Public Member Functions inherited from ome::files::FormatHandler | |
virtual | ~FormatHandler () |
Destructor. | |
Public Member Functions inherited from ome::files::MetadataConfigurable | |
virtual | ~MetadataConfigurable () |
Destructor. | |
Protected Types | |
typedef std::vector< std::shared_ptr<::ome::files::CoreMetadata > > | coremetadata_list_type |
List type for storing CoreMetadata. | |
Protected Member Functions | |
FormatReader (const ReaderProperties &) | |
Constructor. | |
virtual void | initFile (const boost::filesystem::path &id) |
Initialize the given file. More... | |
virtual bool | isUsedFile (const boost::filesystem::path &file) |
Check if a file is in the used files list. More... | |
virtual void | readPlane (std::istream &source, VariantPixelBuffer &dest, dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h, dimension_size_type samples) |
Read a raw plane. More... | |
virtual void | readPlane (std::istream &source, VariantPixelBuffer &dest, dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h, dimension_size_type scanlinePad, dimension_size_type samples) |
Read a raw plane with scanline padding. More... | |
virtual std::shared_ptr<::ome::xml::meta::MetadataStore > | makeFilterMetadata () |
Create a configured FilterMetadata instance. More... | |
const CoreMetadata & | getCoreMetadata (dimension_size_type index) const |
Get CoreMetadata by core index. More... | |
CoreMetadata & | getCoreMetadata (dimension_size_type index) |
Get CoreMetadata by core index. More... | |
virtual bool | isFilenameThisTypeImpl (const boost::filesystem::path &name) const |
isThisType file implementation for readers. More... | |
virtual bool | isStreamThisTypeImpl (std::istream &stream) const |
isThisType stream implementation for readers. More... | |
std::array< dimension_size_type, 2 > | getThumbSize () const |
Get the thumbnail size of the X and Y dimensions. More... | |
virtual void | openBytesImpl (dimension_size_type plane, VariantPixelBuffer &buf, dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h) const =0 |
Obtain a sub-image of an image plane. More... | |
Protected Member Functions inherited from ome::files::FormatReader | |
FormatReader () | |
Constructor. | |
Protected Member Functions inherited from ome::files::FormatHandler | |
FormatHandler () | |
Constructor. | |
Protected Member Functions inherited from ome::files::MetadataConfigurable | |
MetadataConfigurable () | |
Constructor. | |
Protected Attributes | |
const ReaderProperties & | readerProperties |
Reader properties specific to the derived file format. | |
boost::optional< boost::filesystem::path > | currentId |
The identifier (path) of the currently open file. | |
std::shared_ptr< std::istream > | in |
Current input. | |
::ome::files::MetadataMap | metadata |
Mapping of metadata key/value pairs. | |
dimension_size_type | coreIndex |
The number of the current series (flattened). More... | |
dimension_size_type | series |
The number of the current series (non-flattened). More... | |
dimension_size_type | plane |
The number of the current plane in the current series. More... | |
coremetadata_list_type | core |
Core metadata values. | |
dimension_size_type | resolution |
The number of the current resolution. More... | |
bool | flattenedResolutions |
Whether or not resolutions are flattened. | |
bool | suffixNecessary |
Whether the file extension matching one of the reader's suffixes is necessary to identify the file as an instance of this format. | |
bool | suffixSufficient |
Whether the file extension matching one of the reader's suffixes is sufficient to identify the file as an instance of this format. | |
bool | companionFiles |
Whether this format supports multi-file datasets. | |
std::string | datasetDescription |
Short description of the structure of the dataset. | |
bool | normalizeData |
Whether or not to normalize float data. | |
bool | filterMetadata |
Whether or not to filter out invalid metadata. | |
bool | saveOriginalMetadata |
Whether or not to save proprietary metadata in the MetadataStore. | |
bool | indexedAsRGB |
Whether or not MetadataStore sets C = 3 for indexed color images. | |
bool | group |
Whether or not to group multi-file formats. | |
std::vector< std::string > | domains |
List of domains in which this format is used. | |
std::shared_ptr<::ome::xml::meta::MetadataStore > | metadataStore |
Current metadata store. More... | |
MetadataOptions | metadataOptions |
Metadata parsing options. | |
Additional Inherited Members | |
Public Types inherited from ome::files::FormatReader | |
enum | FileGroupOption { MUST_GROUP, CAN_GROUP, CANNOT_GROUP } |
File grouping options. More... | |
Static Public Member Functions inherited from ome::files::FormatHandler | |
static bool | checkSuffix (const boost::filesystem::path &name, const boost::filesystem::path &suffix) |
Perform suffix matching for the given filename. More... | |
static bool | checkSuffix (const boost::filesystem::path &name, const std::vector< boost::filesystem::path > &suffixes) |
Perform suffix matching for the given filename. More... | |
static bool | checkSuffix (const boost::filesystem::path &name, const std::vector< boost::filesystem::path > &suffixes, const std::vector< boost::filesystem::path > &compression_suffixes) |
Perform suffix matching for the given filename. More... | |
static void | assertId (const boost::optional< boost::filesystem::path > &id, bool notNull=true) |
Assert that the current file is valid. More... | |
Interface for all biological file format readers (default behaviour).
Differences from the Java implementation:
|
virtual |
Close the currently open file.
An exception may be thrown when closing the file, for example if there are problems flushing any pending writes, or if there are any inconsistencies in the metadata which prevent completing any final writes. The causes are reader- or writer-dependent, and the exception type is dependent upon the implementation details of the reader or writer in use. It is advised to always explicitly close writers, since if this is automatically called at destruction time, any errors will be lost. If an exception is thrown, the object may be left in an inconsistent state and should not be reused.
fileOnly | close the open file only if true , or else free all internal state if false ; only meaningful for readers, since writers will always free all internal state. |
On | error; exception type may vary. |
Implements ome::files::FormatHandler.
Reimplemented in ome::files::in::OMETIFFReader, ome::files::in::MinimalTIFFReader, and ome::files::in::TIFFReader.
References core, coreIndex, currentId, in, plane, resolution, and series.
Referenced by ome::files::in::MinimalTIFFReader::close(), ome::files::in::OMETIFFReader::close(), and initFile().
|
virtual |
Get the series corresponding to the specified core index.
index | the core index to use. |
Implements ome::files::FormatReader.
References core, coreIndex, hasFlattenedResolutions(), and series.
Referenced by getSeriesCount(), and setCoreIndex().
|
virtual |
Returns an enum indicating that we cannot, must, or might group the files in this dataset.
id | filename to check. |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
References ome::files::FormatReader::CANNOT_GROUP.
|
virtual |
Get the files used by the active series.
noPixels | exclude pixel data files if true , or include them if false . |
Implements ome::files::FormatReader.
References ome::common::canonical(), ome::files::FileInfo::filename, getCurrentFile(), getFormat(), getSeriesUsedFiles(), ome::files::FileInfo::reader, and ome::files::FileInfo::usedToInitialize.
|
virtual |
Get the files used by this dataset.
noPixels | exclude pixel data files if true , or include them if false . |
Implements ome::files::FormatReader.
References ome::common::canonical(), ome::files::FileInfo::filename, getCurrentFile(), getFormat(), getUsedFiles(), ome::files::FileInfo::reader, and ome::files::FileInfo::usedToInitialize.
|
virtual |
Get the number of valid bits per pixel.
The number of valid bits per pixel is always less than or equal to the number of bits per pixel that correspond to getPixelType().
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), ome::files::bitsPerPixel(), ome::files::CoreMetadata::bitsPerPixel, currentId, getCoreIndex(), getCoreMetadata(), and getPixelType().
|
virtual |
Get the default compression suffixes for this file format.
Implements ome::files::FormatHandler.
References ome::files::detail::ReaderProperties::compression_suffixes, and readerProperties.
|
virtual |
Get the CoreMetadata index of the current resolution/series.
Implements ome::files::FormatReader.
References coreIndex.
Referenced by getBitsPerPixel(), getDimensionOrder(), getEffectiveSizeC(), getImageCount(), getModuloC(), getModuloT(), getModuloZ(), ome::files::in::OMETIFFReader::getOptimalTileHeight(), ome::files::in::OMETIFFReader::getOptimalTileWidth(), getPixelType(), getRGBChannelCount(), getSeriesMetadata(), ome::files::in::OMETIFFReader::getSeriesUsedFiles(), getSizeC(), getSizeT(), getSizeX(), getSizeY(), getSizeZ(), getThumbSize(), ome::files::in::OMETIFFReader::ifdAtIndex(), isFalseColor(), isIndexed(), isInterleaved(), isLittleEndian(), isMetadataComplete(), isOrderCertain(), and isThumbnailSeries().
|
inlineprotected |
Get CoreMetadata by core index.
index | the core index. |
std::range_error | if the core index is invalid. |
std::logic_error | if the metadata is null. |
Referenced by getBitsPerPixel(), getDimensionOrder(), getEffectiveSizeC(), getImageCount(), getModuloC(), getModuloT(), getModuloZ(), ome::files::in::OMETIFFReader::getOptimalTileHeight(), ome::files::in::OMETIFFReader::getOptimalTileWidth(), getPixelType(), getRGBChannelCount(), getSeriesMetadata(), ome::files::in::OMETIFFReader::getSeriesUsedFiles(), getSizeC(), getSizeT(), getSizeX(), getSizeY(), getSizeZ(), getThumbSize(), ome::files::in::OMETIFFReader::ifdAtIndex(), isFalseColor(), isIndexed(), isInterleaved(), isLittleEndian(), isMetadataComplete(), isOrderCertain(), and isThumbnailSeries().
|
inlineprotected |
Get CoreMetadata by core index.
index | the core index. |
std::range_error | if the core index is invalid. |
std::logic_error | if the metadata is null. |
References ome::files::getIndex(), ome::files::getZCTCoords(), and ome::files::detail::ReaderProperties::name.
|
virtual |
Get the core metadata.
A CoreMetadata object exists to describe the each series in the dataset.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), core, and currentId.
|
virtual |
Get the currently open file.
Implements ome::files::FormatReader.
References currentId.
Referenced by getAdvancedSeriesUsedFiles(), and getAdvancedUsedFiles().
|
virtual |
Get a short description of the dataset structure.
Implements ome::files::FormatReader.
References datasetDescription.
|
virtual |
Get the dimension order.
The dimension order is a five-character string representing the order in which planes will be returned. Valid orders are:
XYCTZ
XYCZT
XYTCZ
XYTZC
XYZCT
XYZTC
In cases where the channels are interleaved (e.g. CXYTZ
), C
will be the first dimension after X
and Y
(e.g. XYCTZ
) and the isInterleaved() method will return true
.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, ome::files::CoreMetadata::dimensionOrder, getCoreIndex(), and getCoreMetadata().
Referenced by getIndex(), getZCTCoords(), getZCTModuloCoords(), and readPlane().
|
virtual |
Get the domains represented by the current file.
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
References ome::files::FormatHandler::assertId(), currentId, and domains.
|
virtual |
Get the effective size of the C dimension.
This guarantees that
regardless of the result of isRGB().
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeC.
Referenced by getIndex(), getOptimalTileHeight(), getOptimalTileWidth(), getZCTCoords(), and getZCTModuloCoords().
|
virtual |
Get the name of this file format.
Implements ome::files::FormatHandler.
References ome::files::detail::ReaderProperties::name, and readerProperties.
Referenced by getAdvancedSeriesUsedFiles(), and getAdvancedUsedFiles().
|
virtual |
Get the description of this file format.
Implements ome::files::FormatHandler.
References ome::files::detail::ReaderProperties::description, and readerProperties.
|
virtual |
Get global metadata map.
Obtain the map containing the global metadata field/value pairs the current dataset.
Implements ome::files::FormatReader.
References metadata.
|
virtual |
Determine the number of image planes in the current series.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::imageCount.
Referenced by getIndex(), getZCTCoords(), getZCTModuloCoords(), ome::files::in::OMETIFFReader::initFile(), and setPlane().
|
virtual |
Get the linear index of a Z
, C
and T
coordinate.
The index is computed using the DimensionOrder.
z | the Z coordinate (real size). |
c | the C coordinate (real size). |
t | the T coordinate (real size). |
unify with the pixel buffer dimension indexes.
Don't use separate values to match the return of getZCTCoords.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getDimensionOrder(), getEffectiveSizeC(), getImageCount(), ome::files::getIndex(), getSizeT(), and getSizeZ().
|
virtual |
Get the linear index of a Z
, C
, T
, ModuloZ
, ModuloC
and ModuloT
coordinate.
The index is computed using the DimensionOrder.
Z
, C
and T
coordinates take the modulo dimension sizes into account. The effective size for each of these dimensions is limited to the total size of the dimension divided by the modulo size.z | the Z coordinate (effective size). |
c | the C coordinate (effective size). |
t | the T coordinate (effective size). |
moduloZ | the ModuloZ coordinate (effective size). |
moduloC | the ModuloC coordinate (effective size). |
moduloT | the ModuloT coordinate (effective size). |
unify with the pixel buffer dimension indexes.
Don't use separate values to match the return of getZCTModuloCoords.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getDimensionOrder(), getEffectiveSizeC(), getImageCount(), ome::files::getIndex(), getModuloC(), getModuloT(), getModuloZ(), getSizeT(), and getSizeZ().
|
virtual |
Get the color lookup table associated with an image plane.
If no image planes have been opened, or if isIndexed() returns false
, then this may throw an exception.
The VariantPixelBuffer will use the X dimension for the value index and the sub-channel dimension for the color samples (order is RGB). Depending upon the image type, the size of the X dimension may vary. It will typically be 2^8 or 2^16, but other sizes are possible.
buf | the destination pixel buffer. |
plane | the plane index within the series. |
FormatException | if a lookup table could not be obtained. |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader, and ome::files::in::MinimalTIFFReader.
References ome::files::FormatHandler::assertId(), and currentId.
|
virtual |
Get metadata options.
Implements ome::files::MetadataConfigurable.
References metadataOptions.
|
virtual |
Get metadata options.
Implements ome::files::MetadataConfigurable.
References metadataOptions.
|
virtual |
Get the current metadata store for this reader.
null
. Implements ome::files::FormatReader.
References metadataStore.
Referenced by ome::files::in::OMETIFFReader::getMetadataStoreForConversion(), ome::files::in::OMETIFFReader::getMetadataStoreForDisplay(), ome::files::in::MinimalTIFFReader::initFile(), initFile(), ome::files::in::OMETIFFReader::initFile(), makeFilterMetadata(), and setId().
|
virtual |
Get the current metadata store for this reader.
null
. Implements ome::files::FormatReader.
References metadataStore.
|
virtual |
Get a global metadata value.
Obtain the specified metadata field's value for the current dataset.
field | the name associated with the metadata field. |
boost::bad_get | on failure if the key was not found. |
Implements ome::files::FormatReader.
References ome::files::MetadataMap::get(), and metadata.
|
virtual |
Get the Modulo subdivision of the C dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloC.
Referenced by getIndex(), getZCTModuloCoords(), and setId().
|
virtual |
Get the Modulo subdivision of the C dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloC.
|
virtual |
Get the Modulo subdivision of the T dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloT.
Referenced by getIndex(), getZCTModuloCoords(), and setId().
|
virtual |
Get the Modulo subdivision of the T dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloT.
|
virtual |
Get the Modulo subdivision of the Z dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloZ.
Referenced by getIndex(), getZCTModuloCoords(), and setId().
|
virtual |
Get the Modulo subdivision of the Z dimension.
Implements ome::files::FormatReader.
References getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::moduloZ.
|
virtual |
Get the optimal sub-image height.
This is intended for use with openBytes().
channel | the channel to use, range [0, EffectiveSizeC). |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
References ome::files::FormatHandler::assertId(), ome::files::bytesPerPixel(), currentId, getPixelType(), getRGBChannelCount(), getSizeX(), and getSizeY().
|
virtual |
Get the optimal sub-image height.
This is intended for use with openBytes(). Note that this overload does not have a channel argument, and so the value returned is the smallest height for all channels for convienience and compatibility with the Java implementation. If the optimal height varies widely between channels, this may result in suboptimal performance; specify the channel to get the optimal height for each channel.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and getEffectiveSizeC().
|
virtual |
Get the optimal sub-image width.
This is intended for use with openBytes().
channel | the channel to use, range [0, EffectiveSizeC). |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
References ome::files::FormatHandler::assertId(), currentId, and getSizeX().
|
virtual |
Get the optimal sub-image width.
This is intended for use with openBytes(). Note that this overload does not have a channel argument, and so the value returned is the smallest width for all channels for convienience and compatibility with the Java implementation. If the optimal width varies widely between channels, this may result in suboptimal performance; specify the channel to get the optimal width for each channel.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and getEffectiveSizeC().
|
virtual |
Get the pixel type.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::pixelType.
Referenced by getBitsPerPixel(), getOptimalTileHeight(), and readPlane().
|
virtual |
Get the active plane.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and plane.
|
virtual |
Get the possible domains represented in which this format is used.
id | filename to check. |
FormatException | if there was a problem parsing the metadata of the file. |
Implements ome::files::FormatReader.
References domains.
|
virtual |
Get required parent directories.
Get the number of parent directories that are important when processing the given list of files. The number of directories is relative to the common parent. For example, given a list with these two files:
/path/to/file/foo
/path/to/file/that/is/related
A return value of 0 indicates that /path/to/file/
is irrelevant. A return value of 1 indicates that /path/to/
is irrelevant. Return values less than 0 are invalid.
All listed files are assumed to belong to datasets of the same format.
files | the file list being processed. |
FormatException | if there was a problem parsing the metadata of the file. |
files
? Is it an index into the path components? Of which of the files? In which order? From the root or common parent? Is the order of files
important? Implements ome::files::FormatReader.
|
virtual |
Get the active resolution level.
Implements ome::files::FormatReader.
References resolution.
|
virtual |
Get the number of resolutions for the current series.
Resolutions are stored in descending order of size, so the largest resolution is first and the smallest resolution is last.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), core, currentId, getSeries(), hasFlattenedResolutions(), and seriesToCoreIndex().
Referenced by setResolution().
|
virtual |
Get the number of channels returned for a call to openBytes().
The most common case where this value is greater than 1 is for interleaved RGB data, such as a 24-bit color image plane. However, it is possible for this value to be greater than 1 for non-interleaved data, such as an RGB TIFF with Planar rather than Chunky configuration.
channel | the channel to use, range [0, EffectiveSizeC). |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeC.
Referenced by getOptimalTileHeight(), and isRGB().
|
virtual |
Get the active series.
Implements ome::files::FormatReader.
References series.
Referenced by getResolutionCount(), ome::files::in::MinimalTIFFReader::ifdAtIndex(), and setResolution().
|
virtual |
Get the number of image series in this file.
std::logic_error | if the sub-resolution metadata (if any) is invalid; this will only occur if the reader sets invalid metadata. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), core, coreIndexToSeries(), currentId, and hasFlattenedResolutions().
Referenced by getUsedFiles(), and setId().
|
virtual |
Get series metadata map.
Obtain the map containing the series metadata field/value pairs the active series in the current dataset.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::seriesMetadata.
Referenced by getSeriesMetadataValue(), and setId().
|
virtual |
Get a series metadata value.
Obtain the specified metadata field's value for the active series in the current dataset.
field | the name associated with the metadata field. |
boost::bad_get | on failure if the key was not found. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, ome::files::MetadataMap::get(), and getSeriesMetadata().
|
virtual |
Get the files used by the active series.
noPixels | exclude pixel data files if true , or include them if false . |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
References currentId.
Referenced by getAdvancedSeriesUsedFiles(), and getUsedFiles().
|
virtual |
Get the size of the C dimension.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), and getCoreMetadata().
|
virtual |
Get the size of the T dimension.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeT.
Referenced by getIndex(), getZCTCoords(), and getZCTModuloCoords().
|
virtual |
Get the size of the X dimension.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeX.
Referenced by getOptimalTileHeight(), getOptimalTileWidth(), getThumbSize(), openBytes(), and readPlane().
|
virtual |
Get the size of the Y dimension.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeY.
Referenced by getOptimalTileHeight(), getThumbSize(), openBytes(), and readPlane().
|
virtual |
Get the size of the Z dimension.
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::sizeZ.
Referenced by getIndex(), getZCTCoords(), and getZCTModuloCoords().
|
virtual |
Get the default file suffixes for this file format.
Implements ome::files::FormatHandler.
References readerProperties, and ome::files::detail::ReaderProperties::suffixes.
Referenced by ome::files::in::OMETIFFReader::isFilenameThisTypeImpl().
|
virtual |
Get the supported metadata levels.
Implements ome::files::MetadataConfigurable.
References ome::files::detail::ReaderProperties::metadata_levels, and readerProperties.
|
protected |
Get the thumbnail size of the X and Y dimensions.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), getSizeX(), getSizeY(), ome::files::CoreMetadata::thumbSizeX, and ome::files::CoreMetadata::thumbSizeY.
Referenced by getThumbSizeX(), and getThumbSizeY().
|
virtual |
Get the thumbnail size of the X dimension.
Implements ome::files::FormatReader.
References getThumbSize().
|
virtual |
Get the thumbnail size of the Y dimension.
Implements ome::files::FormatReader.
References getThumbSize().
|
virtual |
Get all underlying readers.
Implements ome::files::FormatReader.
|
virtual |
Get the files used by this dataset.
noPixels | exclude pixel data files if true , or include them if false . |
Implements ome::files::FormatReader.
References getSeriesCount(), getSeriesUsedFiles(), and setSeries().
Referenced by getAdvancedUsedFiles(), initFile(), and isUsedFile().
|
virtual |
Get the Z
, C
and T
coordinate of a linear index.
index | the linear index. |
Z
, C
and T
values (real sizes).Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getDimensionOrder(), getEffectiveSizeC(), getImageCount(), getSizeT(), getSizeZ(), and ome::files::getZCTCoords().
|
virtual |
Get the Z
, C
, T
, ModuloZ
, ModuloC
and ModuloT
coordinate of a linear index.
Z
, C
and T
coordinates are not the same as those returned by getZCTCoords(dimension_size_type) because the size of the modulo dimensions is taken into account. The effective size for each of these dimensions is limited to the total size of the dimension divided by the modulo size.index | the linear index. |
Z
, C
, T
, ModuloZ
, ModuloC
and ModuloT
values (effective sizes).Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getDimensionOrder(), getEffectiveSizeC(), getImageCount(), getModuloC(), getModuloT(), getModuloZ(), getSizeT(), getSizeZ(), and ome::files::getZCTCoords().
|
virtual |
Does this format support multi-file datasets?
true
if multiple files are supported, false
otherwise. Implements ome::files::FormatReader.
References companionFiles.
|
virtual |
Get resolution flattening.
true
if flattening is enabled, false
otherwise. Implements ome::files::FormatReader.
References flattenedResolutions.
Referenced by coreIndexToSeries(), getResolutionCount(), getSeriesCount(), and seriesToCoreIndex().
|
protectedvirtual |
Initialize the given file.
This will parse header information, etc. and is called by setId. Most subclasses should override this method to perform initialization operations such as parsing metadata.
id | the filename to open. |
FormatException | if a parsing error occurs processing the file. |
Reimplemented in ome::files::in::OMETIFFReader, and ome::files::in::MinimalTIFFReader.
References ome::files::MetadataMap::clear(), close(), core, coreIndex, currentId, getMetadataStore(), getUsedFiles(), metadata, and series.
Referenced by ome::files::in::MinimalTIFFReader::initFile(), ome::files::in::OMETIFFReader::initFile(), and setId().
|
virtual |
Get whether the image planes are false color.
This will be false
if isIndexed() is false
, or if isIndexed() is true
and the lookup table represents "real" color data. This will be true
if isIndexed() is true
and the lookup table is only present to aid in visualization.
true
if false color, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, ome::files::CoreMetadata::falseColor, getCoreIndex(), and getCoreMetadata().
|
protectedvirtual |
isThisType file implementation for readers.
Readers which require opening a file in order to determine its type should override this method with their own implementation. Reader implementations should open the specified file using their preferred method and check its validity.
name | the file to open for checking. |
true
if the file is valid, false
otherwise. Reimplemented in ome::files::in::OMETIFFReader, and ome::files::in::MinimalTIFFReader.
Referenced by isThisType().
|
virtual |
Get file grouping.
true
if grouping is enabled, false
otherwise. Implements ome::files::FormatReader.
References group.
Referenced by ome::files::in::OMETIFFReader::isFilenameThisTypeImpl().
|
virtual |
Get whether the image planes are indexed color.
This value does not affect getSizeC(), getEffectiveSizeC() or getRGBChannelCount().
true
if indexed, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::indexed.
|
virtual |
Get whether or not the channels are interleaved.
This method exists because X
and Y
must appear first in the dimension order. For interleaved data, getDimensionOrder() returns XYCTZ
or XYCZT
and this method returns true
.
Note that this flag returns whether or not the data returned by openBytes() is interleaved. In most cases, this will match the interleaving in the original file, but for some formats (e.g. TIFF) channel re-ordering is done internally and the return value of this method will not match what is in the original file.
true
if the channels are interleaved, false
otherwise. Implements ome::files::FormatReader.
Referenced by readPlane().
|
virtual |
Get whether or not the given channel is interleaved.
Some data with multiple channels within C
have the sub-channels of one sub-dimension interleaved, and the other not. For example, SDTReader
handles spectral-lifetime data with interleaved lifetime bins and non-interleaved spectral channels.
channel | the channel to use, range [0, EffectiveSizeC). |
true
if the sub-channel is interleaved, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::interleaved.
|
virtual |
Get whether the data is in little-endian format.
false
if big endian, true
if little endian. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::littleEndian.
Referenced by readPlane().
|
virtual |
Get status of metadata parsing.
true
if this format's metadata is completely parsed, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::metadataComplete.
|
virtual |
Get metadata filtering.
true
if metadata filtering is enabled, false
if disabled. Implements ome::files::FormatReader.
References filterMetadata.
Referenced by makeFilterMetadata().
|
virtual |
Get float normalization.
true
if float normalization is enabled, false
otherwise. Implements ome::files::FormatReader.
References normalizeData.
|
virtual |
Get whether the dimension order and sizes are known, or merely guesses.
true
if the order is known, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::orderCertain.
|
virtual |
Get proprietary metadata storage.
true
if proprietary metadata is saved in the MetadataStore, false
otherwise.Implements ome::files::FormatReader.
References saveOriginalMetadata.
|
virtual |
Check if the image planes for a channel have more than one sub-channel per openBytes() call.
channel | the channel to use, range [0, EffectiveSizeC). |
true
if and only if getRGBChannelCount() returns a value greater than 1, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and getRGBChannelCount().
|
virtual |
Is this a single-file format?
id | filename to check. |
true
if this is a single-file format, false
otherwise.FormatException | if there was a problem parsing the metadata of the file. |
Implements ome::files::FormatReader.
Reimplemented in ome::files::in::OMETIFFReader.
|
protectedvirtual |
isThisType stream implementation for readers.
Readers which require opening a file in order to determine its type, and which can handle istream
data, should override this method with their own implementation. Reader implementations should check the validity of the stream data.
stream | the input stream to check. |
true
if the stream is valid, false
otherwise. Referenced by isThisType().
|
virtual |
Check if the given file is a valid instance of this file format.
name | the file to open for checking. |
open | If true , and the file extension is insufficient to determine the file type, the file may be opened for further analysis, or other relatively expensive file system operations (such as file existence tests and directory listings) may be performed. If false , file system access is not allowed. |
true
if the file is valid, false
otherwise.Implements ome::files::FormatHandler.
Reimplemented in ome::files::in::OMETIFFReader.
References ome::common::canonical(), ome::files::FormatHandler::checkSuffix(), ome::files::detail::ReaderProperties::compression_suffixes, isFilenameThisTypeImpl(), readerProperties, ome::files::detail::ReaderProperties::suffixes, suffixNecessary, and suffixSufficient.
Referenced by ome::files::in::OMETIFFReader::isThisType(), and isThisType().
|
virtual |
Check if the given buffer is a valid header for this file format.
The buffer is defined as a half-open range using two iterators.
begin | the start of the buffer. |
length | the buffer length. |
true
if the file is valid, false
otherwise.Implements ome::files::FormatReader.
References isThisType().
|
virtual |
Check if the given buffer is a valid header for this file format.
The buffer is defined as a half-open range using two iterators.
begin | the start of the buffer. |
end | one past the end of the buffer. |
true
if the file is valid, false
otherwise.Implements ome::files::FormatReader.
References isThisType().
|
virtual |
Check if the given input stream is a valid stream for this file format.
stream | the input stream to check. |
true
if the file is valid, false
otherwise.Implements ome::files::FormatReader.
References isStreamThisTypeImpl().
|
virtual |
Get whether the current series is a lower resolution copy of a different series.
true
if a low resolution copy, false
otherwise. Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getCoreIndex(), getCoreMetadata(), and ome::files::CoreMetadata::thumbnail.
|
protectedvirtual |
Check if a file is in the used files list.
file | the file to check. |
true
if the file is used, false
if not used. References ome::common::canonical(), and getUsedFiles().
|
protectedvirtual |
Create a configured FilterMetadata instance.
This creates, configures and returns an instance of ome::xml::meta::FilterMetadata.
References getMetadataStore(), and isMetadataFiltered().
|
virtual |
Obtain an image plane.
Obtain and copy the image plane from the current series into a VariantPixelBuffer of size
plane | the plane index within the series. |
buf | the destination pixel buffer. |
FormatException | if there was a problem parsing the metadata of the file. |
Implements ome::files::FormatReader.
References getSizeX(), and getSizeY().
|
virtual |
Obtain a sub-image of an image plane.
Obtain and copy the sub-image of an image plane from the current series into a VariantPixelBuffer of size
plane | the plane index within the series. |
buf | the destination pixel buffer. |
x | the X coordinate of the upper-left corner of the sub-image. |
y | the Y coordinate of the upper-left corner of the sub-image. |
w | the width of the sub-image. |
h | the height of the sub-image. |
FormatException | if there was a problem parsing the metadata of the file. |
Implements ome::files::FormatReader.
References openBytesImpl(), and setPlane().
|
protectedpure virtual |
Obtain a sub-image of an image plane.
Obtain and copy the sub-image of an image plane from the current series into a VariantPixelBuffer of size
plane | the plane index within the series. |
buf | the destination pixel buffer. |
x | the X coordinate of the upper-left corner of the sub-image. |
y | the Y coordinate of the upper-left corner of the sub-image. |
w | the width of the sub-image. |
h | the height of the sub-image. |
FormatException | if there was a problem parsing the metadata of the file. |
Implemented in ome::files::in::OMETIFFReader, and ome::files::in::MinimalTIFFReader.
Referenced by openBytes().
|
virtual |
Obtain a thumbnail of an image plane.
Obtail and copy the thumbnail for the specified image plane from the current series into a VariantPixelBuffer.
plane | the plane index within the series. |
buf | the destination pixel buffer. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), and currentId.
|
protectedvirtual |
Read a raw plane.
Note that the pixel buffer must be of the correct size to store the pixel data.
source | the stream to read the plane from. |
dest | the pixel buffer in which to store the plane. |
x | the left edge of the plane. |
y | the top edge of the plane. |
w | the width of the plane. |
h | the height of the plane. |
samples | the number of samples per pixel. |
References ome::files::bytesPerPixel(), ome::files::byteswap(), ome::files::ENDIAN_BIG, ome::files::ENDIAN_LITTLE, getPixelType(), getSizeX(), getSizeY(), isInterleaved(), and isLittleEndian().
|
protectedvirtual |
Read a raw plane with scanline padding.
Note that the pixel buffer must be of the correct size to store the pixel data.
source | the stream to read the plane from. |
dest | the pixel buffer in which to store the plane. |
x | the left edge of the plane. |
y | the top edge of the plane. |
w | the width of the plane. |
h | the height of the plane. |
scanlinePad | the scanline padding. |
samples | the number of samples per pixel. |
References ome::files::DIM_CHANNEL, ome::files::DIM_MODULO_C, ome::files::DIM_MODULO_T, ome::files::DIM_MODULO_Z, ome::files::DIM_SPATIAL_X, ome::files::DIM_SPATIAL_Y, ome::files::DIM_SPATIAL_Z, ome::files::DIM_SUBCHANNEL, ome::files::DIM_TEMPORAL_T, ome::files::PixelBufferBase::dimensions, getDimensionOrder(), getPixelType(), isInterleaved(), ome::files::PixelBufferBase::make_storage_order(), ome::files::VariantPixelBuffer::pixelType(), ome::files::VariantPixelBuffer::setBuffer(), ome::files::VariantPixelBuffer::shape(), ome::files::VariantPixelBuffer::storage_order(), and ome::files::VariantPixelBuffer::vbuffer().
|
virtual |
Get the first core index corresponding to the specified series.
series | the series to use. |
Implements ome::files::FormatReader.
References core, coreIndex, hasFlattenedResolutions(), resolution, and series.
Referenced by getResolutionCount(), setCoreIndex(), setResolution(), and setSeries().
|
virtual |
Set the current resolution/series (ignoring sub-resolutions).
Equivalent to setSeries(), but with flattened resolutions always set to false
.
index | the core index to set. |
std::logic_error | if the index is invalid. |
Implements ome::files::FormatReader.
References core, coreIndex, coreIndexToSeries(), plane, resolution, series, and seriesToCoreIndex().
|
virtual |
Set resolution flattening.
This controls whether or not resolution levels are flattened into individual series. This alters the behaviour of setSeries() and getSeries() but does not affect the behaviour of setCoreIndex() and getCoreIndex(), which are resolution-independent.
flatten | true to enable flattening, false to disable. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and flattenedResolutions.
|
virtual |
Set file grouping.
This specifies whether or not to force grouping in multi-file formats.
group | true to enable grouping, false to disable. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and group.
|
virtual |
Set the current file name.
Note this will throw FormatException if there are problems opening the file.
id | the filename to open. |
Implements ome::files::FormatHandler.
References ome::files::MetadataMap::begin(), ome::common::canonical(), currentId, ome::files::MetadataMap::end(), ome::files::fillOriginalMetadata(), getMetadataStore(), getModuloC(), getModuloT(), getModuloZ(), getSeriesCount(), getSeriesMetadata(), initFile(), metadata, saveOriginalMetadata, series, ome::files::MetadataMap::set(), setSeries(), and ome::common::trim().
|
virtual |
Set metadata filtering.
If filtering is enabled, "ugly" metadata (entries with unprintable characters, and extremely large entries) should be discarded from the metadata table.
filter | true to enable filtering, false to disable. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and filterMetadata.
|
virtual |
Set metadata options.
options | the options to set. |
Implements ome::files::MetadataConfigurable.
References metadataOptions.
|
virtual |
Set the default metadata store for this reader.
store | a metadata store implementation. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and metadataStore.
|
virtual |
Set float normalization.
normalize | true to enable normalization, or false to disable. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and normalizeData.
|
virtual |
Specifies whether or not to save proprietary metadata in the MetadataStore.
populate | true to save or false to discard. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, and saveOriginalMetadata.
|
virtual |
Set the active plane.
plane | the plane to activate. |
Implements ome::files::FormatReader.
References ome::files::FormatHandler::assertId(), currentId, getImageCount(), and plane.
Referenced by ome::files::in::OMETIFFReader::getLookupTable(), and openBytes().
|
virtual |
Set the active resolution level.
resolution | the resolution to set. |
std::logic_error | if the resolution is invalid. |
Implements ome::files::FormatReader.
References coreIndex, getResolutionCount(), getSeries(), plane, resolution, and seriesToCoreIndex().
|
virtual |
Set the active series.
series | the series to activate. |
std::logic_error | if the series is invalid. |
Implements ome::files::FormatReader.
References coreIndex, plane, resolution, series, and seriesToCoreIndex().
Referenced by getUsedFiles(), and setId().
|
mutableprotected |
The number of the current series (flattened).
Referenced by close(), coreIndexToSeries(), getCoreIndex(), initFile(), seriesToCoreIndex(), setCoreIndex(), setResolution(), and setSeries().
|
protected |
Current metadata store.
Should never be accessed directly as the semantics of getMetadataStore() prevent "null" access.
Referenced by getMetadataStore(), ome::files::in::OMETIFFReader::initFile(), and setMetadataStore().
|
mutableprotected |
The number of the current plane in the current series.
Referenced by close(), getPlane(), ome::files::in::OMETIFFReader::getSeriesUsedFiles(), ome::files::in::OMETIFFReader::ifdAtIndex(), ome::files::in::OMETIFFReader::initFile(), setCoreIndex(), setPlane(), setResolution(), and setSeries().
|
mutableprotected |
The number of the current resolution.
Referenced by close(), getResolution(), seriesToCoreIndex(), setCoreIndex(), setResolution(), and setSeries().
|
mutableprotected |
The number of the current series (non-flattened).
Referenced by close(), coreIndexToSeries(), ome::files::in::OMETIFFReader::findUsedFiles(), getSeries(), initFile(), ome::files::in::OMETIFFReader::initFile(), seriesToCoreIndex(), setCoreIndex(), setId(), and setSeries().