35 template <
typename PixelT>
36 void DecoratedImage<PixelT>::init() {
39 setMetadata(metadata);
43 template <
typename PixelT>
48 template <
typename PixelT>
52 template <
typename PixelT>
56 template <
typename PixelT>
58 : _image(new
Image<PixelT>(*
src._image, deep)), _gain(
src._gain) {
61 template <
typename PixelT>
69 template <
typename PixelT>
73 swap(_image, rhs._image);
74 swap(_gain, rhs._gain);
77 template <
typename PixelT>
85 template <
typename PixelT>
94 template <
typename PixelT>
99 writeFits(fileName, options, metadata, mode);
102 template <
typename PixelT>
109 metadata = getMetadata()->deepCopy();
110 metadata->combine(metadata_i);
112 metadata = getMetadata();
115 getImage()->writeFits(fileName, options, mode, metadata);
afw::table::PointKey< int > dimensions
std::shared_ptr< RecordT > src
A container for an Image and its associated metadata.
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.
DecoratedImage(const lsst::geom::Extent2I &dimensions=lsst::geom::Extent2I())
Create an image of the specified size.
DecoratedImage & operator=(const DecoratedImage &image)
Assignment operator.
void swap(DecoratedImage &rhs)
void setMetadata(std::shared_ptr< lsst::daf::base::PropertySet > metadata)
A class to represent a 2-dimensional array of pixels.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
void swap(Image< PixelT > &a, Image< PixelT > &b)
A base class for image defects.
Options for writing an image to FITS.