29 #include "boost/format.hpp" 30 #include "boost/mpl/vector.hpp" 31 #include "boost/gil/gil_all.hpp" 42 template <
typename PixelT>
43 void DecoratedImage<PixelT>::init() {
46 setMetadata(metadata);
50 template <
typename PixelT>
52 : daf::base::Citizen(typeid(this)), _image(new
Image<PixelT>(dimensions)) {
55 template <
typename PixelT>
57 : daf::base::
Citizen(typeid(this)), _image(new
Image<PixelT>(bbox)) {
60 template <
typename PixelT>
62 : daf::base::
Citizen(typeid(this)), _image(rhs) {
65 template <
typename PixelT>
67 : daf::base::
Citizen(typeid(this)), _image(new
Image<PixelT>(*src._image, deep)), _gain(src._gain) {
70 template <
typename PixelT>
78 template <
typename PixelT>
82 swap(_image, rhs._image);
83 swap(_gain, rhs._gain);
86 template <
typename PixelT>
94 template <
typename PixelT>
97 : daf::base::
Citizen(typeid(this)) {
102 template <
typename PixelT>
110 metadata->combine(metadata_i);
115 getImage()->writeFits(fileName, metadata, mode);
std::shared_ptr< Image< PixelT > > getImage()
Return a shared_ptr to the DecoratedImage's Image.
std::shared_ptr< lsst::daf::base::PropertySet > getMetadata() const
DecoratedImage(const geom::Extent2I &dimensions=geom::Extent2I())
Create an image of the specified size.
void swap(DecoratedImage &rhs)
lsst::daf::base::PropertyList PropertyList
void setMetadata(std::shared_ptr< lsst::daf::base::PropertySet > metadata)
An integer coordinate rectangle.
afw::table::PointKey< int > dimensions
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.
Citizen(const std::type_info &)
A class to represent a 2-dimensional array of pixels.
A container for an Image and its associated metadata.