29 #include "boost/format.hpp" 30 #include "boost/mpl/vector.hpp" 31 #include "boost/gil/gil_all.hpp" 41 template <
typename PixelT>
42 void DecoratedImage<PixelT>::init() {
45 setMetadata(metadata);
49 template <
typename PixelT>
51 : daf::base::Citizen(typeid(this)), _image(new
Image<PixelT>(dimensions)) {
54 template <
typename PixelT>
56 : daf::base::
Citizen(typeid(this)), _image(new
Image<PixelT>(bbox)) {
59 template <
typename PixelT>
61 : daf::base::
Citizen(typeid(this)), _image(rhs) {
64 template <
typename PixelT>
66 : daf::base::
Citizen(typeid(this)), _image(new
Image<PixelT>(*src._image, deep)), _gain(src._gain) {
69 template <
typename PixelT>
77 template <
typename PixelT>
81 swap(_image, rhs._image);
82 swap(_gain, rhs._gain);
85 template <
typename PixelT>
93 template <
typename PixelT>
97 : daf::base::
Citizen(typeid(this)) {
103 template <
typename PixelT>
108 writeFits(fileName, options, metadata, mode);
111 template <
typename PixelT>
119 metadata->combine(metadata_i);
124 getImage()->writeFits(fileName, options, mode, metadata);
std::shared_ptr< Image< PixelT > > getImage()
Return a shared_ptr to the DecoratedImage's Image.
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)
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.
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 &)
A class to represent a 2-dimensional array of pixels.
A container for an Image and its associated metadata.