38 #ifndef OME_FILES_DETAIL_FORMATWRITER_H 39 #define OME_FILES_DETAIL_FORMATWRITER_H 41 #include <ome/files/FormatWriter.h> 42 #include <ome/files/FormatHandler.h> 84 const std::string& description):
86 description(description),
88 compression_suffixes(),
90 pixel_compression_types(),
93 compression_suffixes.push_back(boost::filesystem::path(
""));
119 std::shared_ptr<std::ostream>
out;
168 isThisType(
const boost::filesystem::path&
name,
169 bool open =
true)
const;
181 getSeriesCount()
const;
217 setMetadataRetrieve(std::shared_ptr<::ome::xml::meta::MetadataRetrieve>& retrieve);
220 const std::shared_ptr<::ome::xml::meta::MetadataRetrieve>&
221 getMetadataRetrieve()
const;
224 std::shared_ptr<::ome::xml::meta::MetadataRetrieve>&
225 getMetadataRetrieve();
234 getImageCount()
const;
302 getPixelType()
const;
315 getBitsPerPixel()
const;
330 getEffectiveSizeC()
const;
352 getDimensionOrder()
const;
367 std::array<dimension_size_type, 3>
376 getFramesPerSecond()
const;
379 const std::set<ome::xml::model::enums::PixelType>
380 getPixelTypes()
const;
383 const std::set<ome::xml::model::enums::PixelType>
384 getPixelTypes(
const std::string& codec)
const;
393 const std::string& codec)
const;
396 const std::set<std::string>&
397 getCompressionTypes()
const;
399 const std::set<std::string>&
404 setCompression(
const std::string& compression);
407 const boost::optional<std::string>&
408 getCompression()
const;
412 setInterleaved(
bool interleaved);
415 const boost::optional<bool>&
416 getInterleaved()
const;
420 changeOutputFile(
const boost::filesystem::path&
id);
424 setWriteSequentially(
bool sequential =
true);
428 getWriteSequentially()
const;
432 setId(
const boost::filesystem::path&
id);
436 close(
bool fileOnly =
false);
444 getFormatDescription()
const;
447 const std::vector<boost::filesystem::path>&
451 const std::vector<boost::filesystem::path>&
452 getCompressionSuffixes()
const;
456 setTileSizeX(boost::optional<dimension_size_type> size);
460 getTileSizeX()
const;
464 setTileSizeY(boost::optional<dimension_size_type> size);
468 getTileSizeY()
const;
475 #endif // OME_FILES_DETAIL_FORMATWRITER_H
pixel_compression_type_map pixel_compression_types
Supported compression codecs types for each pixel type.
Definition: FormatWriter.h:73
uint32_t pixel_size_type
Size type for pixel bit depths.
Definition: Types.h:61
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:58
std::map< ome::xml::model::enums::PixelType, std::set< std::string > > pixel_compression_type_map
Map of codec to pixel types.
Definition: FormatWriter.h:60
WriterProperties(const std::string &name, const std::string &description)
Constructor.
Definition: FormatWriter.h:83
dimension_size_type getIndex(const std::string &order, dimension_size_type zSize, dimension_size_type cSize, dimension_size_type tSize, dimension_size_type num, dimension_size_type z, dimension_size_type c, dimension_size_type t)
Get the rasterized index corresponding to the given Z, C and T coordinates (real sizes).
Definition: FormatTools.cpp:365
std::set< std::string > compression_types
Supported compression types.
Definition: FormatWriter.h:71
Properties specific to a particular writer.
Definition: FormatWriter.h:56
Open Microscopy Environment C++.
std::string name
Format name.
Definition: FormatWriter.h:63
std::vector< boost::filesystem::path > suffixes
Filename suffixes this format can handle.
Definition: FormatWriter.h:67
std::array< dimension_size_type, 3 > getZCTCoords(const std::string &order, dimension_size_type zSize, dimension_size_type cSize, dimension_size_type tSize, dimension_size_type num, dimension_size_type index)
Get the Z, C and T coordinates (real sizes) corresponding to the given rasterized index value...
Definition: FormatTools.cpp:422
bool stacks
Stacks are supported.
Definition: FormatWriter.h:75
std::vector< boost::filesystem::path > compression_suffixes
Filename compression suffixes this format can handle.
Definition: FormatWriter.h:69
std::string description
Format description.
Definition: FormatWriter.h:65
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:78