24#ifndef LSST_MEAS_ALGORITHMS_SpanSetMoments_h_INCLUDED
25#define LSST_MEAS_ALGORITHMS_SpanSetMoments_h_INCLUDED
103 double bad_pixel_max_fraction,
104 double bad_pixel_exclusion_radius);
125 int order,
double scale);
Point< double, 2 > Point2D
A struct that computes the unweighted moments of the pixels in an lsst.afw.geom.SpanSet.
bool any_flags_set() const
Test whether any failure flag is set.
bool center_out_of_bounds
Flag set if the center did not lie within the SpanSet.
static shapelet::ShapeletFunction fit_shapelets(afw::image::MaskedImage< float > const &masked_image, std::vector< std::shared_ptr< SpanSetMoments > > const &moments, int order, double scale)
Fit a common shapelet expansion to multiple sources whose moments have already been computed.
bool bad_pixel_in_center
Flag set if there was a bad pixel too close to the center.
ndarray::Array< float, 1, 1 > get_y_array() const
Return a flattened array of the y coordinates in spans.
static std::shared_ptr< SpanSetMoments > compute(afw::geom::SpanSet const &spans, afw::image::MaskedImage< float > const &masked_image, afw::image::MaskPixel bad_bitmask, double bad_pixel_max_fraction, double bad_pixel_exclusion_radius)
Compute the unweighted moments of an image within a SpanSet.
bool singular_second_moments
Flag set if the second moments did not resolve to an ellipse.
geom::Point2D center
Center derived from the unweighted first moment of the image.
double flux
Total flux within the SpanSet.
double variance
Total variance within the SpanSet.
std::shared_ptr< afw::geom::SpanSet > spans
The pixels actually used to compute the moments.
ndarray::Array< float, 1, 1 > get_x_array() const
Return a flattened array of the x coordinates in spans.
afw::geom::ellipses::Quadrupole shape
Shape derived from the unweighted second moment of the image.
bool too_many_bad_pixels
Flag set if there were too many bad pixels to compute the moments.