lsst.meas.extensions.simpleShape
19.0.0-3-g9c54d0d+15
|
Go to the documentation of this file.
23 #ifndef LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED
24 #define LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED
28 #include "lsst/pex/config.h"
36 namespace lsst {
namespace meas {
namespace extensions {
namespace simpleShape {
46 LSST_CONTROL_FIELD(
sigma,
double,
"Sigma of circular Gaussian used as weight function, in pixels");
47 LSST_CONTROL_FIELD(
nSigmaRegion,
double,
"Maximum radius for pixels to include, in units of sigma");
117 template <
typename T>
121 double nSigmaRegion=3.0
152 Eigen::Matrix<double,6,1>
const & q,
223 #endif // !LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED
static base::FlagDefinition const FAILURE
static Eigen::Matrix< double, 5, 6 > convertRawMoments(Eigen::Matrix< double, 6, 1 > const &q, afw::geom::ellipses::Quadrupole &quadrupole, geom::Point2D ¢er)
Convert linear raw moments into an ellipse and centroid, and return the derivative of the conversion.
double nSigmaRegion
"Maximum radius for pixels to include, in units of sigma" ;
virtual SimpleShapeResult get(afw::table::BaseRecord const &record) const
bool isValid() const
Return True if the key is valid.
A C++ control class to handle SdssShapeAlgorithm's configuration.
Struct to hold the results of SimpleShape when we don't run it as a plugin.
lsst::meas::base::FlagHandler const & getFlagHandler() const
std::bitset< SimpleShape::N_FLAGS > flags
Eigen::Matrix< double, 5, 5 > covariance
Matrix of uncertainties; ordered Ixx, Iyy, Ixy, Ix, Iy.
afw::geom::ellipses::Quadrupole ellipse
Measured second moments.
bool getFlag(int index) const
static Eigen::Matrix< double, 5, 5 > correctWeightedMoments(afw::geom::ellipses::Quadrupole const &weight, afw::geom::ellipses::Quadrupole &ellipse, geom::Point2D ¢er)
Correct moments measured with a Gaussian weight function by assuming the data was also an elliptical ...
static unsigned int const N_FLAGS
ItemVariant const * other
geom::Point2D center
Measured first moments, or the input center if !recentroid.
SimpleShape(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
virtual void set(afw::table::BaseRecord &record, SimpleShapeResult const &value) const
bool operator!=(SimpleShapeResultKey const &other) const
SimpleShapeControl Control
static SimpleShapeResult computeMoments(afw::geom::ellipses::Ellipse const &weight, afw::image::MaskedImage< T > const &image, double nSigmaRegion=3.0)
Compute the Gaussian-weighted moments of an image.
bool operator==(SimpleShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
virtual void fail(afw::table::SourceRecord &measRecord, lsst::meas::base::MeasurementError *error=NULL) const
SimpleShapeResult()
Constructor; initializes everything to Nan.
static base::FlagDefinitionList const & getFlagDefinitions()
double sigma
"Sigma of circular Gaussian used as weight function, in pixels" ;
static SimpleShapeResultKey addFields(afw::table::Schema &schema, std::string const &name)