24 #ifndef LSST_MEAS_BASE_SdssShape_h_INCLUDED 25 #define LSST_MEAS_BASE_SdssShape_h_INCLUDED 45 class SdssShapeResult;
159 static unsigned int const N_FLAGS = 6;
188 template <
typename ImageT>
189 static Result computeAdaptiveMoments(
190 ImageT
const & image,
193 Control
const & ctrl=Control()
205 template <
typename ImageT>
207 ImageT
const & image,
212 virtual void measure(
224 ResultKey _resultKey;
250 bool getFlag(
unsigned int index)
const {
return flags[index]; }
296 #endif // !LSST_MEAS_BASE_SdssShape_h_INCLUDED
bool doMeasurePsf
"Whether to also compute the shape of the PSF model" ;
float tol2
"Convergence tolerance for FWHM" ;
static FlagDefinition const SHIFT
afw::table::Schema schema
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...
A reusable struct for centroid measurements.
bool operator!=(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
double background
"Additional value to add to background" ;
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
int maxIter
"Maximum number of iterations" ;
ItemVariant const * other
Exception to be thrown when a measurement algorithm experiences a known failure mode.
static FlagDefinition const UNWEIGHTED
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
float tol1
"Convergence tolerance for e1,e2" ;
static FlagDefinition const UNWEIGHTED_BAD
double maxShift
"Maximum centroid shift, limited to 2-10" ;
ErrElement flux_yy_Cov
flux, yy term in the uncertainty covariance matrix
A FunctorKey for ShapeResult.
bool getFlag(std::string const &name) const
Utility class for handling flag fields that indicate the failure modes of an algorithm.
A reusable struct for moments-based shape measurements.
Result object SdssShapeAlgorithm.
static FlagDefinitionList const & getFlagDefinitions()
FlagDefinition getDefinition(std::size_t index) const
get a reference to the FlagDefinition with specified index.
A C++ control class to handle SdssShapeAlgorithm's configuration.
A FunctorKey for FluxResult.
std::bitset< SdssShapeAlgorithm::N_FLAGS > flags
Status flags (see SdssShapeAlgorithm).
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
static FlagDefinition const MAXITER
static FlagDefinition const PSF_SHAPE_BAD
A FunctorKey that maps SdssShapeResult to afw::table Records.
static FlagDefinition const FAILURE
SdssShapeResultKey ResultKey
A FunctorKey for CentroidResult.
Measure the image moments of source using adaptive Gaussian weights.
SdssShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
FlagHandler const & getFlagHandler() const
vector-type utility class to build a collection of FlagDefinitions
ErrElement flux_xx_Cov
flux, xx term in the uncertainty covariance matrix
bool getFlag(unsigned int index) const
Flag getter for Swig, which doesn't understand std::bitset.
A reusable result struct for flux measurements.
ErrElement flux_xy_Cov
flux, xy term in the uncertainty covariance matrix