38 #ifndef OME_FILES_OUT_OMETIFFWRITER_H 39 #define OME_FILES_OUT_OMETIFFWRITER_H 41 #include <ome/files/detail/FormatWriter.h> 42 #include <ome/files/detail/OMETIFF.h> 47 #include <ome/xml/meta/OMEXMLMetadata.h> 83 ome::compat::shared_ptr<ome::files::tiff::TIFF>
tiff;
92 TIFFState(ome::compat::shared_ptr<ome::files::tiff::TIFF>& tiff);
99 typedef std::map<boost::filesystem::path, TIFFState>
tiff_map;
106 std::vector<detail::OMETIFFPlane>
planes;
143 ome::compat::shared_ptr<ome::xml::meta::OMEXMLMetadata>
omeMeta;
159 setId(
const boost::filesystem::path&
id);
163 close(
bool fileOnly =
false);
210 getOMEXML(
const boost::filesystem::path&
id);
219 saveComment(
const boost::filesystem::path&
id,
220 const std::string&
xml);
234 setBigTIFF(boost::optional<bool> big =
true);
239 boost::optional<bool>
247 #endif // OME_FILES_OUT_OMETIFFWRITER_H boost::filesystem::path baseDir
Base path for computing relative paths in the OME-XML.
Definition: OMETIFFWriter.h:113
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
dimension_size_type ifdCount
Number of IFDs written.
Definition: OMETIFFWriter.h:85
series_list seriesState
State of each series.
Definition: OMETIFFWriter.h:129
ome::compat::shared_ptr< ome::xml::meta::OMEXMLMetadata > omeMeta
OME-XML metadata for embedding in the TIFF.
Definition: OMETIFFWriter.h:143
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
ome::compat::shared_ptr< ome::files::tiff::TIFF > tiff
TIFF file handle.
Definition: OMETIFFWriter.h:83
std::string getOMEXML(::ome::xml::meta::OMEXMLMetadata &omexml, bool validate)
Get OME-XML document from OME-XML metadata.
Definition: MetadataTools.cpp:378
std::map< boost::filesystem::path, TIFFState > tiff_map
Map filename to TIFF state.
Definition: OMETIFFWriter.h:99
ome::common::Logger logger
Message logger.
Definition: OMETIFFWriter.h:71
std::map< boost::filesystem::path, std::string > file_uuid_map
Map filename to UUID.
Definition: OMETIFFWriter.h:74
tiff_map tiffs
Open TIFF files.
Definition: OMETIFFWriter.h:120
std::string flags
TIFF flags.
Definition: OMETIFFWriter.h:126
ome::compat::shared_ptr< ::ome::xml::meta::MetadataRetrieve > originalMetadataRetrieve
Original MetadataRetrieve.
Definition: OMETIFFWriter.h:140
file_uuid_map files
UUID to filename mapping.
Definition: OMETIFFWriter.h:116
Current state of an image series.
Definition: OMETIFFWriter.h:103
TIFF writer with support for OME-XML metadata.
Definition: OMETIFFWriter.h:67
std::string uuid
UUID of file.
Definition: OMETIFFWriter.h:81
State of TIFF file.
Definition: OMETIFFWriter.h:78
std::vector< detail::OMETIFFPlane > planes
Current state of each plane in an image series.
Definition: OMETIFFWriter.h:106
void fillMetadata(::ome::xml::meta::MetadataStore &store, const FormatReader &reader, bool doPlane, bool doImageName)
Fill OME-XML metadata store from reader core metadata.
Definition: MetadataTools.cpp:517
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:75
tiff_map::iterator currentTIFF
Current TIFF file.
Definition: OMETIFFWriter.h:123
std::vector< SeriesState > series_list
Vector of SeriesState objects.
Definition: OMETIFFWriter.h:110
boost::optional< bool > bigTIFF
Write a Big TIFF.
Definition: OMETIFFWriter.h:147