24 #include "lsst/afw/table/Source.h" 29 namespace lsst {
namespace meas {
namespace base {
33 std::string
const & name,
34 afw::table::Schema & schema,
35 daf::base::PropertySet & metadata
38 for (std::size_t i = 0; i < ctrl.
radii.size(); ++i) {
45 afw::table::SourceRecord & measRecord,
46 afw::image::Exposure<float>
const & exposure
48 afw::geom::ellipses::Ellipse ellipse(afw::geom::ellipses::Axes(1.0, 1.0, 0.0));
49 PTR(afw::geom::ellipses::Axes) axes
50 = std::static_pointer_cast<afw::geom::ellipses::Axes>(ellipse.getCorePtr());
51 for (std::size_t i = 0; i <
_ctrl.
radii.size(); ++i) {
void copyResultToRecord(Result const &result, afw::table::SourceRecord &record, int index) const
Return the flag definitions which apply to aperture flux measurements.
Configuration object for multiple-aperture flux algorithms.
Base class for multiple-aperture photometry algorithms.
static Result computeFlux(afw::image::Image< T > const &image, afw::geom::ellipses::Ellipse const &ellipse, Control const &ctrl=Control())
Compute the flux (and optionally, uncertanties) within an aperture using the algorithm determined by ...
double maxSincRadius
"Maximum radius (in pixels) for which the sinc algorithm should be used instead of the " "faster naiv...
FlagHandler const & getFlagHandler(int index) const
static void cache(float rInner, float rOuter)
Cache the coefficients for a particular aperture.
virtual void measure(afw::table::SourceRecord &record, afw::image::Exposure< float > const &exposure) const
Measure the configured apertures on the given image.
CircularApertureFluxAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema, daf::base::PropertySet &metadata)
std::vector< double > radii
"Radius (in pixels) of apertures." ;
SafeCentroidExtractor _centroidExtractor
A Result struct for running an aperture flux algorithm with a single radius.