29 #include "boost/format.hpp" 30 #include "boost/mpl/vector.hpp" 32 #include "boost/version.hpp" 33 #if BOOST_VERSION < 106900 34 #include "boost/gil/gil_all.hpp" 36 #include "boost/gil.hpp" 47 template <
typename PixelT>
48 void DecoratedImage<PixelT>::init() {
51 setMetadata(metadata);
55 template <
typename PixelT>
57 : daf::
base::Citizen(typeid(this)), _image(new
Image<
PixelT>(dimensions)) {
60 template <
typename PixelT>
65 template <
typename PixelT>
70 template <
typename PixelT>
75 template <
typename PixelT>
83 template <
typename PixelT>
87 swap(_image, rhs._image);
88 swap(_gain, rhs._gain);
91 template <
typename PixelT>
99 template <
typename PixelT>
109 template <
typename PixelT>
114 writeFits(fileName, options, metadata, mode);
117 template <
typename PixelT>
125 metadata->combine(metadata_i);
130 getImage()->writeFits(fileName, options, mode, metadata);
std::shared_ptr< Image< PixelT > > getImage()
Return a shared_ptr to the DecoratedImage's Image.
afw::table::PointKey< int > dimensions
std::shared_ptr< lsst::daf::base::PropertySet > getMetadata() const
Options for writing an image to FITS.
void swap(DecoratedImage &rhs)
void setMetadata(std::shared_ptr< lsst::daf::base::PropertySet > metadata)
DecoratedImage & operator=(const DecoratedImage &image)
Assignment operator.
A base class for image defects.
void writeFits(std::string const &fileName, std::shared_ptr< lsst::daf::base::PropertySet const > metadata=std::shared_ptr< lsst::daf::base::PropertySet const >(), std::string const &mode="w") const
Write a FITS file.
std::shared_ptr< RecordT > src
DecoratedImage(const lsst::geom::Extent2I &dimensions=lsst::geom::Extent2I())
Create an image of the specified size.
Citizen(const std::type_info &)
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
An integer coordinate rectangle.
A class to represent a 2-dimensional array of pixels.
A container for an Image and its associated metadata.