38 #ifndef OME_FILES_OUT_OMETIFFWRITER_H 39 #define OME_FILES_OUT_OMETIFFWRITER_H 41 #include <boost/filesystem/path.hpp> 43 #include <ome/files/detail/FormatWriter.h> 44 #include <ome/files/detail/OMETIFF.h> 48 #include <ome/xml/meta/OMEXMLMetadata.h> 84 std::shared_ptr<ome::files::tiff::TIFF>
tiff;
93 TIFFState(std::shared_ptr<ome::files::tiff::TIFF>& tiff);
100 typedef std::map<boost::filesystem::path, TIFFState>
tiff_map;
107 std::vector<detail::OMETIFFPlane>
planes;
144 std::shared_ptr<ome::xml::meta::OMEXMLMetadata>
omeMeta;
160 setId(
const boost::filesystem::path&
id);
164 close(
bool fileOnly =
false);
178 getTileSizeX()
const;
182 getTileSizeY()
const;
219 getOMEXML(
const boost::filesystem::path&
id);
228 saveComment(
const boost::filesystem::path&
id,
229 const std::string&
xml);
243 setBigTIFF(boost::optional<bool> big =
true);
248 boost::optional<bool>
256 #endif // OME_FILES_OUT_OMETIFFWRITER_H boost::filesystem::path baseDir
Base path for computing relative paths in the OME-XML.
Definition: OMETIFFWriter.h:114
std::shared_ptr< ome::xml::meta::OMEXMLMetadata > omeMeta
OME-XML metadata for embedding in the TIFF.
Definition: OMETIFFWriter.h:144
logging::sources::severity_logger_mt< logging::trivial::severity_level > Logger
dimension_size_type ifdCount
Number of IFDs written.
Definition: OMETIFFWriter.h:86
series_list seriesState
State of each series.
Definition: OMETIFFWriter.h:130
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:58
std::string getOMEXML(::ome::xml::meta::OMEXMLMetadata &omexml, bool validate)
Get OME-XML document from OME-XML metadata.
Definition: MetadataTools.cpp:379
std::map< boost::filesystem::path, TIFFState > tiff_map
Map filename to TIFF state.
Definition: OMETIFFWriter.h:100
ome::common::Logger logger
Message logger.
Definition: OMETIFFWriter.h:72
std::map< boost::filesystem::path, std::string > file_uuid_map
Map filename to UUID.
Definition: OMETIFFWriter.h:75
std::shared_ptr< ome::files::tiff::TIFF > tiff
TIFF file handle.
Definition: OMETIFFWriter.h:84
tiff_map tiffs
Open TIFF files.
Definition: OMETIFFWriter.h:121
std::string flags
TIFF flags.
Definition: OMETIFFWriter.h:127
Open Microscopy Environment C++.
file_uuid_map files
UUID to filename mapping.
Definition: OMETIFFWriter.h:117
std::shared_ptr<::ome::xml::meta::MetadataRetrieve > originalMetadataRetrieve
Original MetadataRetrieve.
Definition: OMETIFFWriter.h:141
Current state of an image series.
Definition: OMETIFFWriter.h:104
TIFF writer with support for OME-XML metadata.
Definition: OMETIFFWriter.h:68
std::string uuid
UUID of file.
Definition: OMETIFFWriter.h:82
State of TIFF file.
Definition: OMETIFFWriter.h:79
std::vector< detail::OMETIFFPlane > planes
Current state of each plane in an image series.
Definition: OMETIFFWriter.h:107
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:516
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:78
tiff_map::iterator currentTIFF
Current TIFF file.
Definition: OMETIFFWriter.h:124
std::vector< SeriesState > series_list
Vector of SeriesState objects.
Definition: OMETIFFWriter.h:111
boost::optional< bool > bigTIFF
Write a Big TIFF.
Definition: OMETIFFWriter.h:148