25 #ifndef LSST_AFW_IMAGE_EXPOSURE_H
26 #define LSST_AFW_IMAGE_EXPOSURE_H
35 namespace lsst {
namespace afw {
37 namespace formatters {
38 template<
typename ImageT,
typename MaskT,
typename VarianceT>
class ExposureFormatter;
50 typedef std::shared_ptr<Exposure>
Ptr;
51 typedef std::shared_ptr<Exposure const>
ConstPtr;
55 unsigned int width,
unsigned int height,
116 bool const deep=
false
123 bool const deep=
false
130 template<
typename OtherPixelT>
134 lsst::daf::base::
Citizen(typeid(this)),
139 throw LSST_EXCEPT(lsst::pex::exceptions::InvalidParameterError,
140 "Exposure's converting copy constructor must make a deep copy");
252 void writeFits(std::string
const & fileName)
const;
294 fits::Fits & fitsfile, geom::Box2I const & bbox,
305 template <typename ImagePixelT, typename MaskPixelT, typename VariancePixelT>
307 MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT> & mimage,
316 #endif // LSST_AFW_IMAGE_EXPOSURE_H
int getHeight() const
Return the Exposure's height.
void setFilter(Filter const &filter)
Set the Exposure's filter.
geom::Point2I getXY0() const
geom::Box2I getBBox(ImageOrigin const origin=PARENT) const
std::shared_ptr< PropertySet > Ptr
#define LSST_PERSIST_FORMATTER(formatter...)
void setPsf(boost::shared_ptr< lsst::afw::detection::Psf const > psf)
Set the Exposure's Psf.
void setCalib(boost::shared_ptr< Calib > calib)
Set the Exposure's Calib object.
A class to contain the data, WCS, and other information needed to describe an image of the sky...
int getHeight() const
Return the number of rows in the image.
bool hasWcs() const
Does this Exposure have a Wcs?
boost::shared_ptr< Calib > getCalib()
Return the Exposure's Calib object.
void setXY0(geom::Point2I const &origin)
bool hasPsf() const
Does this Exposure have a Psf?
geom::Box2I getBBox(ImageOrigin const origin=PARENT) const
void writeFits(std::string const &fileName) const
Write an Exposure to a regular multi-extension FITS file.
Implementation of the WCS standard for a any projection.
std::shared_ptr< Exposure > Ptr
std::shared_ptr< Exposure const > ConstPtr
geom::Extent2I getDimensions() const
Return the Exposure's size.
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
void _readFits(fits::Fits &fitsfile, geom::Box2I const &bbox, ImageOrigin origin, bool conformMasks)
MaskedImage< ImageT, MaskT, VarianceT > MaskedImageT
MaskedImageT getMaskedImage() const
Return the MaskedImage.
geom::Extent2I getDimensions() const
static Exposure readFits(fits::MemFileManager &manager)
Read an Exposure from a FITS RAM file.
An integer coordinate rectangle.
table::Key< table::Array< Kernel::Pixel > > image
boost::shared_ptr< lsst::afw::cameraGeom::Detector const > getDetector() const
Return the Exposure's Detector information.
afw::table::PointKey< int > dimensions
MaskedImageT getMaskedImage()
Return the MaskedImage.
void setWcs(boost::shared_ptr< Wcs > wcs)
lsst::daf::base::PropertySet::Ptr getMetadata() const
Return flexible metadata.
Lifetime-management for memory that goes into FITS memory files.
boost::shared_ptr< ExposureInfo > getInfo()
Get the ExposureInfo that aggregates all the non-image components. Never null.
void setMaskedImage(MaskedImageT &maskedImage)
Set the MaskedImage of the Exposure.
Filter getFilter() const
Return the Exposure's filter.
MaskedImageT _maskedImage
Exposure(unsigned int width, unsigned int height, boost::shared_ptr< Wcs const > wcs=boost::shared_ptr< Wcs const >())
Exposure Class Implementation for LSST: a templated framework class for creating an Exposure from a M...
Holds an integer identifier for an LSST filter.
boost::shared_ptr< Wcs const > getWcs() const
boost::shared_ptr< lsst::afw::detection::Psf > getPsf()
Return the Exposure's Psf object.
#define LSST_EXCEPT(type,...)
static Exposure readFits(std::string const &filename)
Read an Exposure from a regular FITS file.
Exposure(Exposure< OtherPixelT, MaskT, VarianceT > const &rhs, const bool deep)
Citizen(const std::type_info &)
boost::shared_ptr< ExposureInfo > _info
int getWidth() const
Return the Exposure's width.
geom::Point2I getXY0() const
int getWidth() const
Return the number of columns in the image.
Exposure< ImagePixelT, MaskPixelT, VariancePixelT >::Ptr makeExposure(MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &mimage, boost::shared_ptr< Wcs const > wcs=boost::shared_ptr< Wcs const >())
Base class for all persistable classes.
Implementation of the Class MaskedImage.
void setMetadata(lsst::daf::base::PropertySet::Ptr metadata)
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
A collection of all the things that make an Exposure different from a MaskedImage.
A polymorphic base class for representing an image's Point Spread Function.
float VariancePixel
! default type for Masks and MaskedImage Masks
void setDetector(boost::shared_ptr< lsst::afw::cameraGeom::Detector const > detector)
Set the Exposure's Detector information.