ome-files
0.5.0
|
Interface for all biological file format readers. More...
#include <ome/files/FormatReader.h>
Classes | |
class | SaveSeries |
Sentry for saving and restoring reader series state. More... | |
Public Types | |
enum | FileGroupOption { MUST_GROUP, CAN_GROUP, CANNOT_GROUP } |
File grouping options. More... | |
Public Member Functions | |
virtual | ~FormatReader () |
Destructor. | |
virtual bool | isThisType (const boost::filesystem::path &name, bool open=true) const =0 |
Check if the given file is a valid instance of this file format. More... | |
virtual bool | isThisType (const uint8_t *begin, const uint8_t *end) const =0 |
Check if the given buffer is a valid header for this file format. More... | |
virtual bool | isThisType (const uint8_t *begin, std::size_t length) const =0 |
Check if the given buffer is a valid header for this file format. More... | |
virtual bool | isThisType (std::istream &stream) const =0 |
Check if the given input stream is a valid stream for this file format. More... | |
virtual dimension_size_type | getImageCount () const =0 |
Determine the number of image planes in the current series. More... | |
virtual bool | isRGB (dimension_size_type channel) const =0 |
Check if the image planes for a channel have more than one sub-channel per openBytes() call. More... | |
virtual dimension_size_type | getSizeX () const =0 |
Get the size of the X dimension. More... | |
virtual dimension_size_type | getSizeY () const =0 |
Get the size of the Y dimension. More... | |
virtual dimension_size_type | getSizeZ () const =0 |
Get the size of the Z dimension. More... | |
virtual dimension_size_type | getSizeT () const =0 |
Get the size of the T dimension. More... | |
virtual dimension_size_type | getSizeC () const =0 |
Get the size of the C dimension. More... | |
virtual ome::xml::model::enums::PixelType | getPixelType () const =0 |
Get the pixel type. More... | |
virtual pixel_size_type | getBitsPerPixel () const =0 |
Get the number of valid bits per pixel. More... | |
virtual dimension_size_type | getEffectiveSizeC () const =0 |
Get the effective size of the C dimension. More... | |
virtual dimension_size_type | getRGBChannelCount (dimension_size_type channel) const =0 |
Get the number of channels returned for a call to openBytes(). More... | |
virtual bool | isIndexed () const =0 |
Get whether the image planes are indexed color. More... | |
virtual bool | isFalseColor () const =0 |
Get whether the image planes are false color. More... | |
virtual void | getLookupTable (dimension_size_type plane, VariantPixelBuffer &buf) const =0 |
Get the color lookup table associated with an image plane. More... | |
virtual Modulo & | getModuloZ ()=0 |
Get the Modulo subdivision of the Z dimension. More... | |
virtual const Modulo & | getModuloZ () const =0 |
Get the Modulo subdivision of the Z dimension. More... | |
virtual Modulo & | getModuloT ()=0 |
Get the Modulo subdivision of the T dimension. More... | |
virtual const Modulo & | getModuloT () const =0 |
Get the Modulo subdivision of the T dimension. More... | |
virtual Modulo & | getModuloC ()=0 |
Get the Modulo subdivision of the C dimension. More... | |
virtual const Modulo & | getModuloC () const =0 |
Get the Modulo subdivision of the C dimension. More... | |
virtual dimension_size_type | getThumbSizeX () const =0 |
Get the thumbnail size of the X dimension. More... | |
virtual dimension_size_type | getThumbSizeY () const =0 |
Get the thumbnail size of the Y dimension. More... | |
virtual bool | isLittleEndian () const =0 |
Get whether the data is in little-endian format. More... | |
virtual const std::string & | getDimensionOrder () const =0 |
Get the dimension order. More... | |
virtual bool | isOrderCertain () const =0 |
Get whether the dimension order and sizes are known, or merely guesses. More... | |
virtual bool | isThumbnailSeries () const =0 |
Get whether the current series is a lower resolution copy of a different series. More... | |
virtual bool | isInterleaved () const =0 |
Get whether or not the channels are interleaved. More... | |
virtual bool | isInterleaved (dimension_size_type channel) const =0 |
Get whether or not the given channel is interleaved. More... | |
virtual void | openBytes (dimension_size_type plane, VariantPixelBuffer &buf) const =0 |
Obtain an image plane. More... | |
virtual 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 =0 |
Obtain a sub-image of an image plane. More... | |
virtual void | openThumbBytes (dimension_size_type plane, VariantPixelBuffer &buf) const =0 |
Obtain a thumbnail of an image plane. More... | |
virtual dimension_size_type | getSeriesCount () const =0 |
Get the number of image series in this file. More... | |
virtual void | setSeries (dimension_size_type series) const =0 |
Set the active series. More... | |
virtual dimension_size_type | getSeries () const =0 |
Get the active series. More... | |
virtual void | setPlane (dimension_size_type plane) const =0 |
Set the active plane. More... | |
virtual dimension_size_type | getPlane () const =0 |
Get the active plane. More... | |
virtual void | setNormalized (bool normalize)=0 |
Set float normalization. More... | |
virtual bool | isNormalized () const =0 |
Get float normalization. More... | |
virtual void | setOriginalMetadataPopulated (bool populate)=0 |
Specifies whether or not to save proprietary metadata in the MetadataStore. More... | |
virtual bool | isOriginalMetadataPopulated () const =0 |
Get proprietary metadata storage. More... | |
virtual void | setGroupFiles (bool group)=0 |
Set file grouping. More... | |
virtual bool | isGroupFiles () const =0 |
Get file grouping. More... | |
virtual bool | isMetadataComplete () const =0 |
Get status of metadata parsing. More... | |
virtual FileGroupOption | fileGroupOption (const std::string &id)=0 |
Returns an enum indicating that we cannot, must, or might group the files in this dataset. More... | |
virtual const std::vector< boost::filesystem::path > | getUsedFiles (bool noPixels=false) const =0 |
Get the files used by this dataset. More... | |
virtual const std::vector< boost::filesystem::path > | getSeriesUsedFiles (bool noPixels=false) const =0 |
Get the files used by the active series. More... | |
virtual std::vector< FileInfo > | getAdvancedUsedFiles (bool noPixels=false) const =0 |
Get the files used by this dataset. More... | |
virtual std::vector< FileInfo > | getAdvancedSeriesUsedFiles (bool noPixels=false) const =0 |
Get the files used by the active series. More... | |
virtual const boost::optional< boost::filesystem::path > & | getCurrentFile () const =0 |
Get the currently open file. More... | |
virtual const std::vector< std::string > & | getDomains () const =0 |
Get the domains represented by the current file. More... | |
virtual dimension_size_type | getIndex (dimension_size_type z, dimension_size_type c, dimension_size_type t) const =0 |
Get the linear index of a Z , C and T coordinate. More... | |
virtual 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 =0 |
Get the linear index of a Z , C , T , ModuloZ , ModuloC and ModuloT coordinate. More... | |
virtual std::array< dimension_size_type, 3 > | getZCTCoords (dimension_size_type index) const =0 |
Get the Z , C and T coordinate of a linear index. More... | |
virtual std::array< dimension_size_type, 6 > | getZCTModuloCoords (dimension_size_type index) const =0 |
Get the Z , C , T , ModuloZ , ModuloC and ModuloT coordinate of a linear index. More... | |
virtual const MetadataMap::value_type & | getMetadataValue (const std::string &field) const =0 |
Get a global metadata value. More... | |
virtual const MetadataMap::value_type & | getSeriesMetadataValue (const MetadataMap::key_type &field) const =0 |
Get a series metadata value. More... | |
virtual const MetadataMap & | getGlobalMetadata () const =0 |
Get global metadata map. More... | |
virtual const MetadataMap & | getSeriesMetadata () const =0 |
Get series metadata map. More... | |
virtual const std::vector< std::shared_ptr< CoreMetadata > > & | getCoreMetadataList () const =0 |
Get the core metadata. More... | |
virtual void | setMetadataFiltered (bool filter)=0 |
Set metadata filtering. More... | |
virtual bool | isMetadataFiltered () const =0 |
Get metadata filtering. More... | |
virtual void | setMetadataStore (std::shared_ptr<::ome::xml::meta::MetadataStore > &store)=0 |
Set the default metadata store for this reader. More... | |
virtual const std::shared_ptr<::ome::xml::meta::MetadataStore > & | getMetadataStore () const =0 |
Get the current metadata store for this reader. More... | |
virtual std::shared_ptr<::ome::xml::meta::MetadataStore > & | getMetadataStore ()=0 |
Get the current metadata store for this reader. More... | |
virtual std::vector< std::shared_ptr< FormatReader > > | getUnderlyingReaders () const =0 |
Get all underlying readers. More... | |
virtual bool | isSingleFile (const boost::filesystem::path &id) const =0 |
Is this a single-file format? More... | |
virtual uint32_t | getRequiredDirectories (const std::vector< std::string > &files) const =0 |
Get required parent directories. More... | |
virtual const std::string & | getDatasetStructureDescription () const =0 |
Get a short description of the dataset structure. More... | |
virtual const std::vector< std::string > & | getPossibleDomains (const std::string &id) const =0 |
Get the possible domains represented in which this format is used. More... | |
virtual bool | hasCompanionFiles () const =0 |
Does this format support multi-file datasets? More... | |
virtual dimension_size_type | getOptimalTileWidth (dimension_size_type channel) const =0 |
Get the optimal sub-image width. More... | |
virtual dimension_size_type | getOptimalTileHeight (dimension_size_type channel) const =0 |
Get the optimal sub-image height. More... | |
virtual dimension_size_type | getOptimalTileWidth () const =0 |
Get the optimal sub-image width. More... | |
virtual dimension_size_type | getOptimalTileHeight () const =0 |
Get the optimal sub-image height. More... | |
virtual dimension_size_type | seriesToCoreIndex (dimension_size_type series) const =0 |
Get the first core index corresponding to the specified series. More... | |
virtual dimension_size_type | coreIndexToSeries (dimension_size_type index) const =0 |
Get the series corresponding to the specified core index. More... | |
virtual dimension_size_type | getCoreIndex () const =0 |
Get the CoreMetadata index of the current resolution/series. More... | |
virtual void | setCoreIndex (dimension_size_type index) const =0 |
Set the current resolution/series (ignoring sub-resolutions). More... | |
virtual dimension_size_type | getResolutionCount () const =0 |
Get the number of resolutions for the current series. More... | |
virtual void | setResolution (dimension_size_type resolution) const =0 |
Set the active resolution level. More... | |
virtual dimension_size_type | getResolution () const =0 |
Get the active resolution level. More... | |
virtual bool | hasFlattenedResolutions () const =0 |
Get resolution flattening. More... | |
virtual void | setFlattenedResolutions (bool flatten)=0 |
Set resolution flattening. More... | |
Public Member Functions inherited from ome::files::FormatHandler | |
virtual | ~FormatHandler () |
Destructor. | |
virtual const std::string & | getFormat () const =0 |
Get the name of this file format. More... | |
virtual const std::string & | getFormatDescription () const =0 |
Get the description of this file format. More... | |
virtual const std::vector< boost::filesystem::path > & | getSuffixes () const =0 |
Get the default file suffixes for this file format. More... | |
virtual const std::vector< boost::filesystem::path > & | getCompressionSuffixes () const =0 |
Get the default compression suffixes for this file format. More... | |
virtual void | setId (const boost::filesystem::path &id)=0 |
Set the current file name. More... | |
virtual void | close (bool fileOnly=false)=0 |
Close the currently open file. More... | |
Public Member Functions inherited from ome::files::MetadataConfigurable | |
virtual | ~MetadataConfigurable () |
Destructor. | |
virtual const std::set< MetadataOptions::MetadataLevel > & | getSupportedMetadataLevels ()=0 |
Get the supported metadata levels. More... | |
virtual void | setMetadataOptions (const MetadataOptions &options)=0 |
Set metadata options. More... | |
virtual const MetadataOptions & | getMetadataOptions () const =0 |
Get metadata options. More... | |
virtual MetadataOptions & | getMetadataOptions ()=0 |
Get metadata options. More... | |
Protected Member Functions | |
FormatReader () | |
Constructor. | |
Protected Member Functions inherited from ome::files::FormatHandler | |
FormatHandler () | |
Constructor. | |
Protected Member Functions inherited from ome::files::MetadataConfigurable | |
MetadataConfigurable () | |
Constructor. | |
Additional Inherited Members | |
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.
|
pure virtual |
Get the series corresponding to the specified core index.
index | the core index to use. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Returns an enum indicating that we cannot, must, or might group the files in this dataset.
id | filename to check. |
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the files used by the active series.
noPixels | exclude pixel data files if true , or include them if false . |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the files used by this dataset.
noPixels | exclude pixel data files if true , or include them if false . |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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().
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the CoreMetadata index of the current resolution/series.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader(), and ome::files::FormatReader::SaveSeries::~SaveSeries().
|
pure virtual |
Get the core metadata.
A CoreMetadata object exists to describe the each series in the dataset.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the currently open file.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillMetadata(), and ~FormatReader().
|
pure virtual |
Get a short description of the dataset structure.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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
.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the domains represented by the current file.
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the effective size of the C dimension.
This guarantees that
regardless of the result of isRGB().
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get global metadata map.
Obtain the map containing the global metadata field/value pairs the current dataset.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Determine the number of image planes in the current series.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillMetadata(), and ~FormatReader().
|
pure 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.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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.
Implemented in ome::files::detail::FormatReader.
|
pure 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. |
Implemented in ome::files::detail::FormatReader, ome::files::in::OMETIFFReader, and ome::files::in::MinimalTIFFReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the current metadata store for this reader.
null
. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the current metadata store for this reader.
null
. Implemented in ome::files::detail::FormatReader.
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the Modulo subdivision of the C dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the Modulo subdivision of the C dimension.
Implemented in ome::files::detail::FormatReader.
|
pure virtual |
Get the Modulo subdivision of the T dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the Modulo subdivision of the T dimension.
Implemented in ome::files::detail::FormatReader.
|
pure virtual |
Get the Modulo subdivision of the Z dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the Modulo subdivision of the Z dimension.
Implemented in ome::files::detail::FormatReader.
|
pure virtual |
Get the optimal sub-image height.
This is intended for use with openBytes().
channel | the channel to use, range [0, EffectiveSizeC). |
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
|
pure 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.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the optimal sub-image width.
This is intended for use with openBytes().
channel | the channel to use, range [0, EffectiveSizeC). |
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
|
pure 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.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the pixel type.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillMetadata(), ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the active plane.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader(), and ome::files::FormatReader::SaveSeries::~SaveSeries().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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? Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the active resolution level.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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). |
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the active series.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillAllPixels(), ome::files::fillMetadata(), ome::files::fillPixels(), and ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillAllPixels(), ome::files::fillMetadata(), and ~FormatReader().
|
pure virtual |
Get series metadata map.
Obtain the map containing the series metadata field/value pairs the active series in the current dataset.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the files used by the active series.
noPixels | exclude pixel data files if true , or include them if false . |
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the size of the C dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the size of the T dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the size of the X dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the size of the Y dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the size of the Z dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get the thumbnail size of the X dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the thumbnail size of the Y dimension.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get all underlying readers.
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the files used by this dataset.
noPixels | exclude pixel data files if true , or include them if false . |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the Z
, C
and T
coordinate of a linear index.
index | the linear index. |
Z
, C
and T
values (real sizes).Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillMetadata(), and ~FormatReader().
|
pure 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).Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Does this format support multi-file datasets?
true
if multiple files are supported, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get resolution flattening.
true
if flattening is enabled, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get file grouping.
true
if grouping is enabled, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get whether the image planes are indexed color.
This value does not affect getSizeC(), getEffectiveSizeC() or getRGBChannelCount().
true
if indexed, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure 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. Implemented in ome::files::detail::FormatReader.
|
pure virtual |
Get whether the data is in little-endian format.
false
if big endian, true
if little endian. Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillPixels(), and ~FormatReader().
|
pure virtual |
Get status of metadata parsing.
true
if this format's metadata is completely parsed, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get metadata filtering.
true
if metadata filtering is enabled, false
if disabled. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get float normalization.
true
if float normalization is enabled, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get whether the dimension order and sizes are known, or merely guesses.
true
if the order is known, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get proprietary metadata storage.
true
if proprietary metadata is saved in the MetadataStore, false
otherwise.Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
Referenced by ome::files::in::OMETIFFReader::isSingleFile(), and ~FormatReader().
|
pure 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.
Implemented in ome::files::detail::FormatReader, and ome::files::in::OMETIFFReader.
Referenced by ~FormatReader().
|
pure 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.Implemented in ome::files::detail::FormatReader.
|
pure 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.Implemented in ome::files::detail::FormatReader.
|
pure 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.Implemented in ome::files::detail::FormatReader.
|
pure virtual |
Get whether the current series is a lower resolution copy of a different series.
true
if a low resolution copy, false
otherwise. Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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::detail::FormatReader.
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Get the first core index corresponding to the specified series.
series | the series to use. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader(), and ome::files::FormatReader::SaveSeries::~SaveSeries().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Set file grouping.
This specifies whether or not to force grouping in multi-file formats.
group | true to enable grouping, false to disable. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure 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. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Set the default metadata store for this reader.
store | a metadata store implementation. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Set float normalization.
normalize | true to enable normalization, or false to disable. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Specifies whether or not to save proprietary metadata in the MetadataStore.
populate | true to save or false to discard. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Set the active plane.
plane | the plane to activate. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader(), and ome::files::FormatReader::SaveSeries::~SaveSeries().
|
pure virtual |
Set the active resolution level.
resolution | the resolution to set. |
std::logic_error | if the resolution is invalid. |
Implemented in ome::files::detail::FormatReader.
Referenced by ~FormatReader().
|
pure virtual |
Set the active series.
series | the series to activate. |
std::logic_error | if the series is invalid. |
Implemented in ome::files::detail::FormatReader.
Referenced by ome::files::fillAllPixels(), ome::files::fillMetadata(), and ~FormatReader().