24 #ifndef LSST_MEAS_BASE_SdssShape_h_INCLUDED 25 #define LSST_MEAS_BASE_SdssShape_h_INCLUDED 45 class SdssShapeResult;
154 static unsigned int const N_FLAGS = 6;
183 template <
typename ImageT>
184 static Result computeAdaptiveMoments(ImageT
const&
image,
geom::Point2D const& position,
185 bool negative =
false, Control
const& ctrl =
Control());
196 template <
typename ImageT>
197 static FluxResult computeFixedMomentsFlux(ImageT
const& image,
208 ResultKey _resultKey;
234 bool getFlag(
unsigned int index)
const {
return flags[index]; }
281 #endif // !LSST_MEAS_BASE_SdssShape_h_INCLUDED
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
bool doMeasurePsf
"Whether to also compute the shape of the PSF model" ;
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
A proxy type for name lookups in a Schema.
ErrElement instFlux_yy_Cov
instFlux, yy term in the uncertainty covariance matrix
float tol2
"Convergence tolerance for FWHM" ;
The photometric calibration of an exposure.
static FlagDefinition const SHIFT
A mapping between the keys of two Schemas, used to copy data between them.
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" ;
int maxIter
"Maximum number of iterations" ;
Exception to be thrown when a measurement algorithm experiences a known failure mode.
static FlagDefinition const UNWEIGHTED
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
A preprocessor macro used to define fields in C++ "control object" structs.
float tol1
"Convergence tolerance for e1,e2" ;
table::Key< table::Array< std::uint8_t > > wcs
static FlagDefinition const UNWEIGHTED_BAD
double maxShift
"Maximum centroid shift, limited to 2-10" ;
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.
A base class for image defects.
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).
Base class for all records.
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.
def measure(mi, x, y, size, statistic, stats)
ItemVariant const * other
Record class that contains measurements made on a single exposure.
ErrElement instFlux_xx_Cov
instFlux, xx term in the uncertainty covariance matrix
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
ErrElement instFlux_xy_Cov
instFlux, xy term in the uncertainty covariance matrix
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
vector-type utility class to build a collection of FlagDefinitions
bool getFlag(unsigned int index) const
Flag getter for Swig, which doesn't understand std::bitset.
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
Implementation of the Photometric Calibration class.
A reusable result struct for instFlux measurements.