28 #include "boost/format.hpp"
34 namespace geom = lsst::afw::geom;
36 template<
typename PixelT>
40 setMetadata(metadata);
45 template<
typename PixelT>
49 lsst::daf::base::Citizen(typeid(this)),
59 template<
typename PixelT>
63 lsst::daf::base::Citizen(typeid(this)),
73 template<
typename PixelT>
77 lsst::daf::base::Citizen(typeid(this)),
87 template<
typename PixelT>
92 lsst::daf::base::Citizen(typeid(this)),
93 _image(new
Image<
PixelT>(*src._image, deep)), _gain(src._gain)
102 template<
typename PixelT>
110 template<
typename PixelT>
118 template<
typename PixelT>
127 #include <boost/mpl/vector.hpp>
132 #include "boost/gil/gil_all.hpp"
138 template<
typename PixelT>
144 lsst::daf::base::Citizen(typeid(this))
154 template<
typename PixelT>
156 std::string
const& fileName,
158 std::string
const& mode
163 metadata = getMetadata()->deepCopy();
164 metadata->combine(metadata_i);
166 metadata = getMetadata();
169 getImage()->writeFits(fileName, metadata, mode);
DecoratedImage & operator=(const DecoratedImage &image)
void swap(ImageBase< PixelT > &a, ImageBase< PixelT > &b)
Class for storing ordered metadata with comments.
boost::shared_ptr< PropertySet > Ptr
boost::shared_ptr< Image< PixelT > > Ptr
An integer coordinate rectangle.
table::Key< table::Array< Kernel::Pixel > > image
afw::table::PointKey< int > dimensions
DecoratedImage(const geom::Extent2I &dimensions=geom::Extent2I())
Create an image of the specified size.
boost::shared_ptr< lsst::daf::base::PropertySet > getMetadata() const
void writeFits(std::string const &fileName, boost::shared_ptr< lsst::daf::base::PropertySet const > metadata=boost::shared_ptr< lsst::daf::base::PropertySet const >(), std::string const &mode="w") const
void setMetadata(boost::shared_ptr< lsst::daf::base::PropertySet > metadata)
Class for storing generic metadata.
void swap(DecoratedImage &rhs)
boost::shared_ptr< Image< PixelT > > _image
afw::table::Key< double > b
A class to represent a 2-dimensional array of pixels.
Include files required for standard LSST Exception handling.
A container for an Image and its associated metadata.