24 #ifndef LSST_MEAS_BASE_Algorithm_h_INCLUDED 25 #define LSST_MEAS_BASE_Algorithm_h_INCLUDED 27 #include "lsst/log/Log.h" 29 #include "lsst/afw/table/fwd.h" 30 #include "lsst/afw/image/Exposure.h" 34 namespace lsst {
namespace meas {
namespace base {
61 afw::table::SourceRecord & measRecord,
96 afw::table::SourceRecord & measRecord,
97 afw::image::Exposure<float>
const & exposure
110 virtual void measureN(
111 afw::table::SourceCatalog
const & measCat,
112 afw::image::Exposure<float>
const & exposure
146 virtual void measureForced(
147 afw::table::SourceRecord & measRecord,
148 afw::image::Exposure<float>
const & exposure,
149 afw::table::SourceRecord
const & refRecord,
150 afw::image::Wcs
const & refWcs
163 virtual void measureNForced(
164 afw::table::SourceCatalog
const & measCat,
165 afw::image::Exposure<float>
const & exposure,
166 afw::table::SourceCatalog
const & refRecord,
167 afw::image::Wcs
const & refWcs
188 afw::table::SourceRecord & measRecord,
189 afw::image::Exposure<float>
const & exposure,
190 afw::table::SourceRecord
const & refRecord,
191 afw::image::Wcs
const & refWcs
193 measure(measRecord, exposure);
197 afw::table::SourceCatalog
const & measCat,
198 afw::image::Exposure<float>
const & exposure,
199 afw::table::SourceCatalog
const & refRecord,
200 afw::image::Wcs
const & refWcs
202 measureN(measCat, exposure);
209 #endif // !LSST_MEAS_BASE_Algorithm_h_INCLUDED virtual void measureNForced(afw::table::SourceCatalog const &measCat, afw::image::Exposure< float > const &exposure, afw::table::SourceCatalog const &refRecord, afw::image::Wcs const &refWcs) const
Called to simultaneously measure all children in a deblend family, in a single image.
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const =0
Handle an exception thrown by the current algorithm by setting flags in the given record...
Base class for algorithms that measure the properties of sources on single image. ...
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Base class for algorithms that measure the properties of sources on one image, using previous measure...
Ultimate abstract base class for all C++ measurement algorithms.
std::string getLogName() const
virtual void measureForced(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure, afw::table::SourceRecord const &refRecord, afw::image::Wcs const &refWcs) const
Called to measure a single child source in an image.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...