38 #ifndef OME_FILES_OUT_MINIMALTIFFWRITER_H
39 #define OME_FILES_OUT_MINIMALTIFFWRITER_H
41 #include <ome/files/detail/FormatWriter.h>
42 #include <ome/files/tiff/Util.h>
76 mutable ome::compat::shared_ptr<ome::files::tiff::TIFF>
tiff;
79 mutable ome::compat::shared_ptr<ome::files::tiff::IFD>
ifd;
104 setId(
const boost::filesystem::path&
id);
108 close(
bool fileOnly =
false);
167 boost::optional<bool>
175 #endif // OME_FILES_OUT_MINIMALTIFFWRITER_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
tiff::SeriesIFDRange seriesIFDRange
Mapping between series index and start and end IFD as a half-open range.
Definition: MinimalTIFFWriter.h:85
void saveBytes(dimension_size_type plane, VariantPixelBuffer &buf, dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h)
Save an image plane.
Definition: MinimalTIFFWriter.cpp:268
MinimalTIFFWriter()
Constructor.
Definition: MinimalTIFFWriter.cpp:100
std::size_t dimension_size_type
Size type for image dimensions.
Definition: Types.h:59
void setId(const boost::filesystem::path &id)
Set the current file name.
Definition: MinimalTIFFWriter.cpp:134
ome::compat::shared_ptr< ome::files::tiff::IFD > ifd
Current IFD.
Definition: MinimalTIFFWriter.h:79
void setPlane(dimension_size_type plane) const
Set the active plane.
Definition: MinimalTIFFWriter.cpp:213
ome::common::Logger logger
Message logger.
Definition: MinimalTIFFWriter.h:73
boost::optional< bool > bigTIFF
Write a Big TIFF.
Definition: MinimalTIFFWriter.h:89
dimension_size_type ifdIndex
Current plane.
Definition: MinimalTIFFWriter.h:82
Properties specific to a particular writer.
Definition: FormatWriter.h:56
void nextIFD() const
Flush current IFD and create new IFD.
Definition: MinimalTIFFWriter.cpp:226
void setSeries(dimension_size_type series) const
Set the active series.
Definition: MinimalTIFFWriter.cpp:200
void setupIFD() const
Set IFD parameters for the current series.
Definition: MinimalTIFFWriter.cpp:234
Basic TIFF writer.
Definition: MinimalTIFFWriter.h:69
void close(bool fileOnly=false)
Close the currently open file.
Definition: MinimalTIFFWriter.cpp:172
void setBigTIFF(boost::optional< bool > big=true)
Set use of BigTIFF support.
Definition: MinimalTIFFWriter.cpp:293
ome::compat::shared_ptr< ome::files::tiff::TIFF > tiff
Underlying TIFF file.
Definition: MinimalTIFFWriter.h:76
Buffer for all pixel types.
Definition: VariantPixelBuffer.h:75
boost::optional< bool > getBigTIFF() const
Query use of BigTIFF support.
Definition: MinimalTIFFWriter.cpp:299
virtual ~MinimalTIFFWriter()
Destructor.
Definition: MinimalTIFFWriter.cpp:122