24 #ifndef LSST_MEAS_BASE_ApertureFlux_h_INCLUDED
25 #define LSST_MEAS_BASE_ApertureFlux_h_INCLUDED
37 namespace lsst {
namespace meas {
namespace base {
48 radii, std::vector<double>,
49 "Radius (in pixels) of apertures."
54 "Maximum radius (in pixels) for which the sinc algorithm should be used instead of the "
55 "faster naive algorithm. For elliptical apertures, this is the minor axis radius."
60 "Warping kernel used to shift Sinc photometry coefficients to different center positions"
111 template <
typename T>
117 template <
typename T>
135 template <
typename T>
141 template <
typename T>
161 template <
typename T>
168 template <
typename T>
181 std::string
const &
name,
260 std::bitset<ApertureFluxAlgorithm::N_FLAGS>
_flags;
294 #endif // !LSST_MEAS_BASE_ApertureFlux_h_INCLUDED
Defines the fields and offsets for a table.
void setFlag(ApertureFluxAlgorithm::FlagBits bit, bool value=true)
Set the flag value associated with the given bit.
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const
table::Key< std::string > name
A custom container class for records, based on std::vector.
A mapping between the keys of two Schemas, used to copy data between them.
std::vector< Keys > _keys
virtual void measure(afw::table::SourceRecord &record, afw::image::Exposure< float > const &exposure) const =0
ApertureFluxAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema, daf::base::PropertySet &metadata)
Implementation of the WCS standard for a any projection.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
bool getFlag(ApertureFluxAlgorithm::FlagBits bit) const
Return the flag value associated with the given bit.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
void copyResultToRecord(Result const &result, afw::table::SourceRecord &record, int index) const
table::Key< table::Array< Kernel::Pixel > > image
Keys(afw::table::Schema &schema, std::string const &prefix, std::string const &doc, bool isSinc)
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
static Result computeFlux(afw::image::Image< T > const &image, afw::geom::ellipses::Ellipse const &ellipse, Control const &ctrl=Control())
An ellipse defined by an arbitrary BaseCore and a center point.
double maxSincRadius
"Maximum radius (in pixels) for which the sinc algorithm should be used instead of the " "faster naiv...
static std::string makeFieldPrefix(std::string const &name, double radius)
A class to manipulate images, masks, and variance as a single object.
static Result computeNaiveFlux(afw::image::Image< T > const &image, afw::geom::ellipses::Ellipse const &ellipse, Control const &ctrl=Control())
FlagHandler const & getFlagHandler(int index) const
void unsetFlag(ApertureFluxAlgorithm::FlagBits bit)
Clear (i.e. set to false) the flag associated with the given bit.
A FunctorKey for FluxResult.
ApertureFluxControl Control
Typedef to the control object associated with this algorithm, defined above.
Class for storing generic metadata.
static Result computeSincFlux(afw::image::Image< T > const &image, afw::geom::ellipses::Ellipse const &ellipse, Control const &ctrl=Control())
Record class that contains measurements made on a single exposure.
std::string shiftKernel
"Warping kernel used to shift Sinc photometry coefficients to different center positions" ; ...
std::vector< double > radii
"Radius (in pixels) of apertures." ;
A class to represent a 2-dimensional array of pixels.
std::bitset< ApertureFluxAlgorithm::N_FLAGS > _flags
ApertureFluxResult Result
Result object returned by static methods.
A reusable result struct for flux measurements.
SafeCentroidExtractor _centroidExtractor
virtual ~ApertureFluxAlgorithm()