38 #ifndef OME_FILES_TIFF_UTIL_H 39 #define OME_FILES_TIFF_UTIL_H 48 #include <ome/files/CoreMetadata.h> 49 #include <ome/files/TileCoverage.h> 50 #include <ome/files/tiff/TileInfo.h> 51 #include <ome/files/tiff/Types.h> 52 #include <ome/files/VariantPixelBuffer.h> 56 #include <ome/xml/model/enums/PixelType.h> 74 ome::compat::shared_ptr<CoreMetadata>
115 ifdIndex(
const SeriesIFDRange& seriesIFDRange,
144 const boost::filesystem::path&
filename,
151 #endif // OME_FILES_TIFF_UTIL_H logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
std::vector< IFDRange > SeriesIFDRange
Mapping between series index and IFD range.
Definition: Util.h:104
dimension_size_type ifdIndex(const SeriesIFDRange &seriesIFDRange, dimension_size_type series, dimension_size_type plane)
Compute IFD index from IFD map and plane index.
Definition: Util.cpp:364
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
uint64_t storage_size_type
Size type for storage size.
Definition: Types.h:65
Range of IFDs for an image series.
Definition: Util.h:93
dimension_size_type end
End index.
Definition: Util.h:100
boost::filesystem::path filename
Filename of TIFF containing the IFDs.
Definition: Util.h:96
bool enableBigTIFF(const boost::optional< bool > &wantBig, storage_size_type pixelSize, const boost::filesystem::path &filename, ome::common::Logger &logger)
Check if BigTIFF should be enabled.
Definition: Util.cpp:391
void getCoreMetadata(const IFD &ifd, CoreMetadata &core)
Get CoreMetadata from an IFD.
Definition: Util.cpp:144
ome::compat::shared_ptr< CoreMetadata > makeCoreMetadata(const IFD &ifd)
Create CoreMetadata from an IFD.
Definition: Util.cpp:136
dimension_size_type begin
Start index.
Definition: Util.h:98
storage_size_type pixelSize(const ::ome::xml::meta::MetadataRetrieve &meta, dimension_size_type series)
Get the total size of pixel data in a series.
Definition: MetadataTools.cpp:1215