38 #ifndef OME_FILES_IN_MINIMALTIFFREADER_H
39 #define OME_FILES_IN_MINIMALTIFFREADER_H
41 #include <ome/files/detail/FormatReader.h>
43 #include <ome/files/tiff/Util.h>
73 ome::compat::shared_ptr<ome::files::tiff::TIFF>
tiff;
92 initFile(
const boost::filesystem::path&
id);
112 const ome::compat::shared_ptr<const tiff::IFD>
118 close(
bool fileOnly =
false);
143 ome::compat::shared_ptr<ome::files::tiff::TIFF>
153 const ome::compat::shared_ptr<ome::files::tiff::TIFF>
161 #endif // OME_FILES_IN_MINIMALTIFFREADER_H
Basic TIFF reader.
Definition: MinimalTIFFReader.h:69
Properties specific to a particular reader.
Definition: FormatReader.h:64
std::vector< IFDRange > SeriesIFDRange
Mapping between series index and IFD range.
Definition: Util.h:104
MinimalTIFFReader()
Constructor.
Definition: MinimalTIFFReader.cpp:94
Tagged Image File Format (TIFF).
Definition: TIFF.h:156
void close(bool fileOnly=false)
Close the currently open file.
Definition: MinimalTIFFReader.cpp:137
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
void initFile(const boost::filesystem::path &id)
Initialize the given file.
Definition: MinimalTIFFReader.cpp:146
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
Obtain a sub-image of an image plane.
Definition: MinimalTIFFReader.cpp:245
const ome::compat::shared_ptr< const tiff::IFD > ifdAtIndex(dimension_size_type plane) const
Get the IFD index for a plane in the current series.
Definition: MinimalTIFFReader.cpp:128
bool isFilenameThisTypeImpl(const boost::filesystem::path &name) const
isThisType file implementation for readers.
Definition: MinimalTIFFReader.cpp:122
virtual void readIFDs()
Read metadata from IFDs.
Definition: MinimalTIFFReader.cpp:184
virtual ~MinimalTIFFReader()
Destructor.
Definition: MinimalTIFFReader.cpp:110
tiff::SeriesIFDRange seriesIFDRange
Mapping between series index and start and end IFD as a half-open range.
Definition: MinimalTIFFReader.h:76
ome::compat::shared_ptr< ome::files::tiff::TIFF > tiff
Underlying TIFF file.
Definition: MinimalTIFFReader.h:73
ome::compat::shared_ptr< ome::files::tiff::TIFF > getTIFF()
Get open TIFF file.
Definition: MinimalTIFFReader.cpp:260
Image File Directory (IFD).
Definition: IFD.h:71
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:75
void getLookupTable(dimension_size_type plane, VariantPixelBuffer &buf) const
Get the color lookup table associated with an image plane.
Definition: MinimalTIFFReader.cpp:225