24 #ifndef LSST_MEAS_BASE_PixelFlags_h_INCLUDED
25 #define LSST_MEAS_BASE_PixelFlags_h_INCLUDED
33 #include "lsst/pex/config.h"
34 #include "lsst/afw/image/Exposure.h"
37 namespace lsst {
namespace meas {
namespace base {
45 "List of mask planes to be searched for which occur in the center of a footprint. "
46 "If any of the planes are found they will have a corresponding pixel flag set.");
48 "List of mask planes to be searched for which occur anywhere within a footprint. "
49 "If any of the planes are found they will have a corresponding pixel flag set.");
72 afw::table::SourceRecord & measRecord,
73 afw::image::Exposure<float>
const & exposure
77 afw::table::SourceRecord & measRecord,
81 typedef std::map<std::string, afw::table::Key<afw::table::Flag>>
KeyMap;
87 afw::table::Key<afw::table::Flag> _generalFailureKey;
88 afw::table::Key<afw::table::Flag> _offImageKey;
93 #endif // !LSST_MEAS_BASE_PixelFlags_h_INCLUDED
std::map< std::string, afw::table::Key< afw::table::Flag > > KeyMap
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const
Handle an exception thrown by the current algorithm by setting flags in the given record...
PixelFlagsControl()
Default constructor.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A measurement algorithm that gets mask bits from the exposure and sets flag bits to summarize which b...
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
PixelFlagsAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
A C++ control class to handle PixelFlagsAlgorithm's configuration.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
std::vector< std::string > masksFpCenter
"List of mask planes to be searched for which occur in the center of a footprint. " "If any of the pl...
std::vector< std::string > masksFpAnywhere
"List of mask planes to be searched for which occur anywhere within a footprint. " "If any of the pla...
PixelFlagsControl Control
A typedef to the Control object for this algorithm, defined above.