|
lsst.afw
15.0-17-g0b88e3da8+6
|
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< geom::SkyWcs const > | getWcs () const |
| Return the WCS of the exposure. More... | |
| void | setWcs (std::shared_ptr< geom::SkyWcs const > wcs) |
| Set the WCS 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... | |
| bool | hasTransmissionCurve () const |
| Does this exposure have a transmission curve? More... | |
| std::shared_ptr< TransmissionCurve const > | getTransmissionCurve () const |
| Return the exposure's transmission curve. More... | |
| void | setTransmissionCurve (std::shared_ptr< TransmissionCurve const > tc) |
| Set the exposure's transmission curve. More... | |
| ExposureInfo (std::shared_ptr< geom::SkyWcs const > const &wcs=std::shared_ptr< geom::SkyWcs 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 >(), std::shared_ptr< TransmissionCurve const > const &transmissionCurve=std::shared_ptr< TransmissionCurve >()) | |
| Construct an ExposureInfo from its various components. More... | |
| ExposureInfo (ExposureInfo const &other) | |
| Copy constructor; deep-copies all components except the metadata. More... | |
| ExposureInfo (ExposureInfo &&other) | |
| 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 & | operator= (ExposureInfo &&other) |
| ~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 87 of file ExposureInfo.h.
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 72 of file ExposureInfo.cc.
| lsst::afw::image::ExposureInfo::ExposureInfo | ( | ExposureInfo const & | other | ) |
Copy constructor; deep-copies all components except the metadata.
Definition at line 96 of file ExposureInfo.cc.
| lsst::afw::image::ExposureInfo::ExposureInfo | ( | ExposureInfo && | other | ) |
Definition at line 110 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 112 of file ExposureInfo.cc.
|
default |
|
inline |
Return the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 157 of file ExposureInfo.h.
|
inline |
Return the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 160 of file ExposureInfo.h.
|
inline |
Return the exposure's photometric calibration.
Definition at line 117 of file ExposureInfo.h.
|
inline |
Return the exposure's photometric calibration.
Definition at line 120 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 180 of file ExposureInfo.h.
|
inline |
Return the exposure's Detector information.
Definition at line 102 of file ExposureInfo.h.
|
inline |
Return the exposure's filter.
Definition at line 108 of file ExposureInfo.h.
|
inline |
Return flexible metadata.
Definition at line 126 of file ExposureInfo.h.
|
inline |
Return the exposure's point-spread function.
Definition at line 135 of file ExposureInfo.h.
|
inline |
Return the exposure's transmission curve.
Definition at line 195 of file ExposureInfo.h.
|
inline |
Return the valid Polygon.
Definition at line 148 of file ExposureInfo.h.
|
inline |
Return the exposure's visit info.
Definition at line 183 of file ExposureInfo.h.
|
inline |
Return the WCS of the exposure.
Definition at line 93 of file ExposureInfo.h.
|
inline |
Return true if the exposure has an aperture correction map.
Definition at line 154 of file ExposureInfo.h.
|
inline |
Does this exposure have a Calib?
Definition at line 114 of file ExposureInfo.h.
|
inline |
Does this exposure have coadd provenance catalogs?
Definition at line 174 of file ExposureInfo.h.
|
inline |
Does this exposure have Detector information?
Definition at line 99 of file ExposureInfo.h.
|
inline |
Does this exposure have a Psf?
Definition at line 132 of file ExposureInfo.h.
|
inline |
Does this exposure have a transmission curve?
Definition at line 192 of file ExposureInfo.h.
|
inline |
Does this exposure have a valid Polygon.
Definition at line 145 of file ExposureInfo.h.
|
inline |
Does this exposure have visit info?
Definition at line 186 of file ExposureInfo.h.
|
inline |
Does this exposure have a Wcs?
Definition at line 90 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 146 of file ExposureInfo.cc.
| ExposureInfo & lsst::afw::image::ExposureInfo::operator= | ( | ExposureInfo const & | other | ) |
Assignment; deep-copies all components except the metadata.
Definition at line 127 of file ExposureInfo.cc.
| ExposureInfo & lsst::afw::image::ExposureInfo::operator= | ( | ExposureInfo && | other | ) |
Definition at line 144 of file ExposureInfo.cc.
|
inline |
Set the exposure's aperture correction map (null pointer if !hasApCorrMap())
Definition at line 163 of file ExposureInfo.h.
|
inline |
Set the Exposure's Calib object.
Definition at line 123 of file ExposureInfo.h.
|
inline |
Set the exposure's coadd provenance catalogs.
Definition at line 177 of file ExposureInfo.h.
|
inline |
Set the exposure's Detector information.
Definition at line 105 of file ExposureInfo.h.
|
inline |
Set the exposure's filter.
Definition at line 111 of file ExposureInfo.h.
|
inline |
Set the flexible metadata.
Definition at line 129 of file ExposureInfo.h.
|
inline |
Set the exposure's point-spread function.
Definition at line 138 of file ExposureInfo.h.
|
inline |
Set the exposure's transmission curve.
Definition at line 198 of file ExposureInfo.h.
|
inline |
Set the exposure's valid Polygon.
Definition at line 151 of file ExposureInfo.h.
|
inline |
Set the exposure's visit info.
Definition at line 189 of file ExposureInfo.h.
|
inline |
Set the WCS of the exposure.
Definition at line 96 of file ExposureInfo.h.
|
friend |
Definition at line 242 of file ExposureInfo.h.
1.8.13