|
lsst.afw
14.0-27-gbdf48f848+1
|
A collection of all the things that make an Exposure different from a MaskedImage. More...
#include <ExposureInfo.h>
Public Member Functions | |
| bool | hasWcs () const |
| Does this exposure have a Wcs? More... | |
| std::shared_ptr< Wcs > | getWcs () |
| Return the coordinate system of the exposure. More... | |
| std::shared_ptr< Wcs const > | getWcs () const |
| Return the coordinate system of the exposure. More... | |
| void | setWcs (std::shared_ptr< Wcs const > wcs) |
| Set the coordinate system of the exposure. More... | |
| bool | hasDetector () const |
| Does this exposure have Detector information? More... | |
| std::shared_ptr< cameraGeom::Detector const > | getDetector () const |
| Return the exposure's Detector information. More... | |
| void | setDetector (std::shared_ptr< cameraGeom::Detector const > detector) |
| Set the exposure's Detector information. More... | |
| Filter | getFilter () const |
| Return the exposure's filter. More... | |
| void | setFilter (Filter const &filter) |
| Set the exposure's filter. More... | |
| bool | hasCalib () const |
| Does this exposure have a Calib? More... | |
| std::shared_ptr< Calib > | getCalib () |
| Return the exposure's photometric calibration. More... | |
| std::shared_ptr< Calib const > | getCalib () const |
| Return the exposure's photometric calibration. More... | |
| void | setCalib (std::shared_ptr< Calib const > calib) |
| Set the Exposure's Calib object. More... | |
| std::shared_ptr< daf::base::PropertySet > | getMetadata () const |
| Return flexible metadata. More... | |
| void | setMetadata (std::shared_ptr< daf::base::PropertySet > metadata) |
| Set the flexible metadata. More... | |
| bool | hasPsf () const |
| Does this exposure have a Psf? More... | |
| std::shared_ptr< detection::Psf > | getPsf () const |
| Return the exposure's point-spread function. More... | |
| void | setPsf (std::shared_ptr< detection::Psf const > psf) |
| Set the exposure's point-spread function. More... | |
| bool | hasValidPolygon () const |
| Does this exposure have a valid Polygon. More... | |
| std::shared_ptr< geom::polygon::Polygon const > | getValidPolygon () const |
| Return the valid Polygon. More... | |
| void | setValidPolygon (std::shared_ptr< geom::polygon::Polygon const > polygon) |
| Set the exposure's valid Polygon. More... | |
| bool | hasApCorrMap () const |
| Return true if the exposure has an aperture correction map. More... | |
| std::shared_ptr< ApCorrMap > | getApCorrMap () |
| Return the exposure's aperture correction map (null pointer if !hasApCorrMap()) More... | |
| std::shared_ptr< ApCorrMap const > | getApCorrMap () const |
| Return the exposure's aperture correction map (null pointer if !hasApCorrMap()) More... | |
| void | setApCorrMap (std::shared_ptr< ApCorrMap > apCorrMap) |
| Set the exposure's aperture correction map (null pointer if !hasApCorrMap()) More... | |
| void | initApCorrMap () |
| Set the exposure's aperture correction map to a new, empty map. More... | |
| bool | hasCoaddInputs () const |
| Does this exposure have coadd provenance catalogs? More... | |
| void | setCoaddInputs (std::shared_ptr< CoaddInputs > coaddInputs) |
| Set the exposure's coadd provenance catalogs. More... | |
| std::shared_ptr< CoaddInputs > | getCoaddInputs () const |
| Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null). More... | |
| std::shared_ptr< image::VisitInfo const > | getVisitInfo () const |
| Return the exposure's visit info. More... | |
| bool | hasVisitInfo () const |
| Does this exposure have visit info? More... | |
| void | setVisitInfo (std::shared_ptr< image::VisitInfo const > const visitInfo) |
| Set the exposure's visit info. More... | |
| ExposureInfo (std::shared_ptr< Wcs const > const &wcs=std::shared_ptr< Wcs const >(), std::shared_ptr< detection::Psf const > const &psf=std::shared_ptr< detection::Psf const >(), std::shared_ptr< Calib const > const &calib=std::shared_ptr< Calib const >(), std::shared_ptr< cameraGeom::Detector const > const &detector=std::shared_ptr< cameraGeom::Detector const >(), std::shared_ptr< geom::polygon::Polygon const > const &polygon=std::shared_ptr< geom::polygon::Polygon const >(), Filter const &filter=Filter(), std::shared_ptr< daf::base::PropertySet > const &metadata=std::shared_ptr< daf::base::PropertySet >(), std::shared_ptr< CoaddInputs > const &coaddInputs=std::shared_ptr< CoaddInputs >(), std::shared_ptr< ApCorrMap > const &apCorrMap=std::shared_ptr< ApCorrMap >(), std::shared_ptr< image::VisitInfo const > const &visitInfo=std::shared_ptr< image::VisitInfo const >()) | |
| Construct an ExposureInfo from its various components. More... | |
| ExposureInfo (ExposureInfo const &other) | |
| Copy constructor; deep-copies all components except the metadata. More... | |
| ExposureInfo (ExposureInfo const &other, bool copyMetadata) | |
| Copy constructor; deep-copies everything, possibly including the metadata. More... | |
| ExposureInfo & | operator= (ExposureInfo const &other) |
| Assignment; deep-copies all components except the metadata. More... | |
| ~ExposureInfo () | |
Friends | |
| template<typename ImageT , typename MaskT , typename VarianceT > | |
| class | Exposure |
A collection of all the things that make an Exposure different from a MaskedImage.
The constness semantics of the things held by ExposureInfo are admittedly a bit of a mess, but they're that way to preserve backwards compatibility for now. Eventually I'd like to make a lot of these things immutable, but in the meantime, here's the summary:
The setters for Wcs and Calib clone their input arguments (this is a departure from the previous behavior for Calib and Wcs but it's safer w.r.t. aliasing and it matches the old (and current) behavior of the Exposure and ExposureInfo constructors, which clone their arguments. The setter for Psf and constructors do not clone the Psf, as Psfs are immutable and hence we don't need to ensure strict ownership. The setter for Detector does not clone its input argument, because while it technically isn't, we can safely consider a Detector to be immutable once it's attached to an ExposureInfo.
Definition at line 86 of file ExposureInfo.h.
|
explicit |
Construct an ExposureInfo from its various components.
If a null Calib and/or PropertySet pointer is passed (the default), a new Calib and/or PropertyList will be created. To set these pointers to null, you must explicitly call setCalib or setMetadata after construction.
Definition at line 76 of file ExposureInfo.cc.
| lsst::afw::image::ExposureInfo::ExposureInfo | ( | ExposureInfo const & | other | ) |
Copy constructor; deep-copies all components except the metadata.
Definition at line 97 of file ExposureInfo.cc.
| lsst::afw::image::ExposureInfo::ExposureInfo | ( | ExposureInfo const & | other, |
| bool | copyMetadata | ||
| ) |
Copy constructor; deep-copies everything, possibly including the metadata.
Definition at line 109 of file ExposureInfo.cc.
| lsst::afw::image::ExposureInfo::~ExposureInfo | ( | ) |
Definition at line 141 of file ExposureInfo.cc.
|
inline |
Return the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 159 of file ExposureInfo.h.
|
inline |
Return the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 162 of file ExposureInfo.h.
|
inline |
Return the exposure's photometric calibration.
Definition at line 119 of file ExposureInfo.h.
|
inline |
Return the exposure's photometric calibration.
Definition at line 122 of file ExposureInfo.h.
|
inline |
Return a pair of catalogs that record the inputs, if this Exposure is a coadd (otherwise null).
Definition at line 182 of file ExposureInfo.h.
|
inline |
Return the exposure's Detector information.
Definition at line 104 of file ExposureInfo.h.
|
inline |
Return the exposure's filter.
Definition at line 110 of file ExposureInfo.h.
|
inline |
Return flexible metadata.
Definition at line 128 of file ExposureInfo.h.
|
inline |
Return the exposure's point-spread function.
Definition at line 137 of file ExposureInfo.h.
|
inline |
Return the valid Polygon.
Definition at line 150 of file ExposureInfo.h.
|
inline |
Return the exposure's visit info.
Definition at line 185 of file ExposureInfo.h.
|
inline |
Return the coordinate system of the exposure.
Definition at line 92 of file ExposureInfo.h.
|
inline |
Return the coordinate system of the exposure.
Definition at line 95 of file ExposureInfo.h.
|
inline |
Return true if the exposure has an aperture correction map.
Definition at line 156 of file ExposureInfo.h.
|
inline |
Does this exposure have a Calib?
Definition at line 116 of file ExposureInfo.h.
|
inline |
Does this exposure have coadd provenance catalogs?
Definition at line 176 of file ExposureInfo.h.
|
inline |
Does this exposure have Detector information?
Definition at line 101 of file ExposureInfo.h.
|
inline |
Does this exposure have a Psf?
Definition at line 134 of file ExposureInfo.h.
|
inline |
Does this exposure have a valid Polygon.
Definition at line 147 of file ExposureInfo.h.
|
inline |
Does this exposure have visit info?
Definition at line 188 of file ExposureInfo.h.
|
inline |
Does this exposure have a Wcs?
Definition at line 89 of file ExposureInfo.h.
| void lsst::afw::image::ExposureInfo::initApCorrMap | ( | ) |
Set the exposure's aperture correction map to a new, empty map.
Note that the ExposureInfo constructors do not create an empty aperture correction map, so this method provide a convenient way to initialize one before filling it.
Definition at line 139 of file ExposureInfo.cc.
| ExposureInfo & lsst::afw::image::ExposureInfo::operator= | ( | ExposureInfo const & | other | ) |
Assignment; deep-copies all components except the metadata.
Definition at line 123 of file ExposureInfo.cc.
|
inline |
Set the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 165 of file ExposureInfo.h.
|
inline |
Set the Exposure's Calib object.
Definition at line 125 of file ExposureInfo.h.
|
inline |
Set the exposure's coadd provenance catalogs.
Definition at line 179 of file ExposureInfo.h.
|
inline |
Set the exposure's Detector information.
Definition at line 107 of file ExposureInfo.h.
|
inline |
Set the exposure's filter.
Definition at line 113 of file ExposureInfo.h.
|
inline |
Set the flexible metadata.
Definition at line 131 of file ExposureInfo.h.
|
inline |
Set the exposure's point-spread function.
Definition at line 140 of file ExposureInfo.h.
|
inline |
Set the exposure's valid Polygon.
Definition at line 153 of file ExposureInfo.h.
|
inline |
Set the exposure's visit info.
Definition at line 191 of file ExposureInfo.h.
|
inline |
Set the coordinate system of the exposure.
Definition at line 98 of file ExposureInfo.h.
|
friend |
Definition at line 229 of file ExposureInfo.h.
1.8.13