38 #ifndef OME_FILES_IN_OMETIFFREADER_H 39 #define OME_FILES_IN_OMETIFFREADER_H 41 #include <ome/files/in/MinimalTIFFReader.h> 42 #include <ome/files/tiff/TIFF.h> 46 #include <ome/xml/meta/BaseMetadata.h> 69 using detail::FormatReader::isThisType;
70 using ::ome::files::FormatReader::getOptimalTileWidth;
71 using ::ome::files::FormatReader::getOptimalTileHeight;
84 typedef std::map<boost::filesystem::path, std::shared_ptr<ome::files::tiff::TIFF>>
tiff_map;
124 isSingleFile(
const boost::filesystem::path&
id)
const;
128 isThisType(
const boost::filesystem::path& name,
134 isFilenameThisTypeImpl(
const boost::filesystem::path& name)
const;
157 const std::shared_ptr<const tiff::IFD>
166 addTIFF(
const boost::filesystem::path& tiff);
179 const std::shared_ptr<const ome::files::tiff::TIFF>
180 getTIFF(
const boost::filesystem::path& tiff)
const;
189 validTIFF(
const boost::filesystem::path& tiff)
const;
199 closeTIFF(
const boost::filesystem::path& tiff);
207 std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
217 std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
218 readMetadata(
const boost::filesystem::path&
id);
232 std::shared_ptr<::ome::xml::meta::OMEXMLMetadata>
233 cacheMetadata(
const boost::filesystem::path&
id)
const;
238 close(
bool fileOnly =
false);
240 const std::vector<std::string>&
244 const std::vector<boost::filesystem::path>
245 getSeriesUsedFiles(
bool noPixels)
const;
249 fileGroupOption(
const std::string&
id);
261 initFile(
const boost::filesystem::path&
id);
276 const boost::filesystem::path& currentId,
277 const boost::filesystem::path& currentDir,
278 const boost::optional<std::string>& currentUUID);
291 std::vector<boost::optional<ome::xml::model::primitives::Timestamp>>& timestamps);
329 boost::optional<ome::xml::model::primitives::NonNegativeInteger>& zIndexStart,
330 boost::optional<ome::xml::model::primitives::NonNegativeInteger>& tIndexStart,
331 boost::optional<ome::xml::model::primitives::NonNegativeInteger>& cIndexStart);
350 boost::optional<ome::xml::model::primitives::NonNegativeInteger>& tdIFD,
400 std::shared_ptr< ome::xml::meta::MetadataStore>
401 getMetadataStoreForConversion();
420 std::shared_ptr< ome::xml::meta::MetadataStore>
421 getMetadataStoreForDisplay();
429 #endif // OME_FILES_IN_OMETIFFREADER_H boost::filesystem::path cachedMetadataFile
Cached metadata file location (for re-using parsed metadata).
Definition: OMETIFFReader.h:112
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
Tagged Image File Format (TIFF).
Definition: TIFF.h:156
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:58
bool hasSPW
Has screen-plate-well metadata.
Definition: OMETIFFReader.h:103
invalid_file_map invalidFiles
Invalid filename to valid filename mapping.
Definition: OMETIFFReader.h:90
uuid_file_map files
UUID to filename mapping.
Definition: OMETIFFReader.h:87
tiff_map tiffs
Open TIFF files.
Definition: OMETIFFReader.h:94
TIFF reader with support for OME-XML metadata.
Definition: OMETIFFReader.h:67
Open Microscopy Environment C++.
std::map< boost::filesystem::path, std::shared_ptr< ome::files::tiff::TIFF > > tiff_map
Map filename to open TIFF handle.
Definition: OMETIFFReader.h:84
std::shared_ptr<::ome::xml::meta::OMEXMLMetadata > cachedMetadata
Cached metadata (for re-using parsed metadata).
Definition: OMETIFFReader.h:106
ome::common::Logger logger
Message logger.
Definition: OMETIFFReader.h:75
std::map< boost::filesystem::path, boost::filesystem::path > invalid_file_map
Map filename to another file.
Definition: OMETIFFReader.h:81
boost::filesystem::path metadataFile
Metadata file.
Definition: OMETIFFReader.h:97
std::map< std::string, boost::filesystem::path > uuid_file_map
Map UUID to filename.
Definition: OMETIFFReader.h:78
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:78
std::vector< boost::filesystem::path > usedFiles
Used files.
Definition: OMETIFFReader.h:100