LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
23 #ifndef LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED
24 #define LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED
36 namespace lsst {
namespace meas {
namespace extensions {
namespace simpleShape {
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
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
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.
Record class that contains measurements made on a single exposure.
double nSigmaRegion
"Maximum radius for pixels to include, in units of sigma" ;
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
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
Exception to be thrown when a measurement algorithm experiences a known failure mode.
std::bitset< SimpleShape::N_FLAGS > flags
Defines the fields and offsets for a table.
Eigen::Matrix< double, 5, 5 > covariance
Matrix of uncertainties; ordered Ixx, Iyy, Ixy, Ix, Iy.
vector-type utility class to build a collection of FlagDefinitions
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
A class to manipulate images, masks, and variance as a single object.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys.
Utility class for handling flag fields that indicate the failure modes of an algorithm.
ItemVariant const * other
Base class for all records.
geom::Point2D center
Measured first moments, or the input center if !recentroid.
SimpleShape(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
virtual void set(afw::table::BaseRecord &record, SimpleShapeResult const &value) const
afw::table::Key< double > weight
A base class for image defects.
An ellipse defined by an arbitrary BaseCore and a center point.
bool operator!=(SimpleShapeResultKey const &other) const
An ellipse core with quadrupole moments as parameters.
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
A proxy type for name lookups in a Schema.
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
Called to measure a single child source in an image.
virtual void fail(afw::table::SourceRecord &measRecord, lsst::meas::base::MeasurementError *error=NULL) const
Handle an exception thrown by the current algorithm by setting flags in the given record.
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)