23 #ifndef LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED 24 #define LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED 35 namespace lsst {
namespace meas {
namespace extensions {
namespace simpleShape {
99 static unsigned int const N_FLAGS = 1;
116 template <
typename T>
150 static Eigen::Matrix<double,5,6> convertRawMoments(
151 Eigen::Matrix<double,6,1>
const & q,
178 static Eigen::Matrix<double, 5, 5> correctWeightedMoments(
214 bool getFlag(
int index)
const {
return flags[index]; }
222 #endif // !LSST_MEAS_EXTENSIONS_simpleShape_h_INCLUDED An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
Struct to hold the results of SimpleShape when we don't run it as a plugin.
A proxy type for name lookups in a Schema.
bool operator!=(SimpleShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
Eigen::Matrix< double, 5, 5 > covariance
Matrix of uncertainties; ordered Ixx, Iyy, Ixy, Ix, Iy.
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
bool getFlag(int index) const
static base::FlagDefinition const FAILURE
Exception to be thrown when a measurement algorithm experiences a known failure mode.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
Utility class for handling flag fields that indicate the failure modes of an algorithm.
A C++ control class to handle SdssShapeAlgorithm's configuration.
A base class for image defects.
An ellipse defined by an arbitrary BaseCore and a center point.
A class to manipulate images, masks, and variance as a single object.
std::bitset< SimpleShape::N_FLAGS > flags
afw::table::Key< double > weight
double nSigmaRegion
"Maximum radius for pixels to include, in units of sigma" ;
Base class for all records.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
def measure(mi, x, y, size, statistic, stats)
ItemVariant const * other
Record class that contains measurements made on a single exposure.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
vector-type utility class to build a collection of FlagDefinitions
lsst::meas::base::FlagHandler const & getFlagHandler() const
afw::geom::Point2D center
Measured first moments, or the input center if !recentroid.
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
double sigma
"Sigma of circular Gaussian used as weight function, in pixels" ;
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
afw::geom::ellipses::Quadrupole ellipse
Measured second moments.
SimpleShapeControl Control