24 #ifndef LSST_MEAS_BASE_SdssShape_h_INCLUDED
25 #define LSST_MEAS_BASE_SdssShape_h_INCLUDED
43 class SdssShapeResult;
87 std::string
const &
name,
185 template <
typename ImageT>
187 ImageT
const &
image,
202 template <
typename ImageT>
204 ImageT
const & image,
244 std::bitset<SdssShapeAlgorithm::N_FLAGS>
flags;
290 #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 proxy type for name lookups in a Schema.
static Result computeAdaptiveMoments(ImageT const &image, afw::geom::Point2D const &position, bool negative=false, Control const &ctrl=Control())
Compute the adaptive Gaussian-weighted moments of an image.
afw::table::Key< ErrElement > _flux_yy_Cov
SafeCentroidExtractor _centroidExtractor
virtual void setPsfShape(afw::table::BaseRecord &record, afw::geom::ellipses::Quadrupole const &value) const
Set a Quadrupole for the Psf at the position of the given record.
table::Key< std::string > name
static FluxResult computeFixedMomentsFlux(ImageT const &image, afw::geom::ellipses::Quadrupole const &shape, afw::geom::Point2D const &position)
Compute the flux within a fixed Gaussian aperture.
float tol2
"Convergence tolerance for FWHM" ;
FlagHandler const & getFlagHandler() const
A custom container class for records, based on std::vector.
afw::table::Schema schema
A mapping between the keys of two Schemas, used to copy data between them.
bool operator!=(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
A reusable struct for centroid measurements.
double background
"Additional value to add to background" ;
int maxIter
"Maximum number of iterations" ;
Implementation of the WCS standard for a any projection.
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.
float tol1
"Convergence tolerance for e1,e2" ;
Describe an exposure's calibration.
double maxShift
"Maximum centroid shift, limited to 2-10" ;
bool isValid() const
Return True if the key is valid.
ErrElement flux_yy_Cov
flux, yy term in the uncertainty covariance matrix
A coordinate class intended to represent absolute positions.
bool operator==(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
ShapeResultKey _shapeResult
Definitions and inlines for Quadrupole.
A FunctorKey for ShapeResult.
table::Key< table::Array< Kernel::Pixel > > image
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
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.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
SdssShapeResult()
Constructor; initializes everything to NaN.
SdssShapeAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
CentroidResultKey _centroidResult
virtual afw::geom::ellipses::Quadrupole getPsfShape(afw::table::BaseRecord const &record) const
Get a Quadrupole for the Psf from the given record.
A C++ control class to handle SdssShapeAlgorithm's configuration.
A FunctorKey for FluxResult.
virtual void set(afw::table::BaseRecord &record, SdssShapeResult const &value) const
Set an SdssShapeResult in the given record.
std::bitset< SdssShapeAlgorithm::N_FLAGS > flags
Status flags (see SdssShapeAlgorithm).
virtual void fail(afw::table::SourceRecord &measRecord, MeasurementError *error=NULL) const
Handle an exception thrown by the current algorithm by setting flags in the given record...
Base class for all records.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
A FunctorKey that maps SdssShapeResult to afw::table Records.
SdssShapeResultKey ResultKey
A FunctorKey for CentroidResult.
afw::table::QuadrupoleKey _psfShapeResult
Record class that contains measurements made on a single exposure.
Measure the image moments of source using adaptive Gaussian weights.
afw::table::Key< ErrElement > _flux_xy_Cov
bool getFlag(int index) const
Flag getter for Swig, which doesn't understand std::bitset.
SdssShapeResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
afw::table::Key< ErrElement > _flux_xx_Cov
ErrElement flux_xx_Cov
flux, xx term in the uncertainty covariance matrix
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
static SdssShapeResultKey addFields(afw::table::Schema &schema, std::string const &name, bool doMeasurePsf)
Add the appropriate fields to a Schema, and return a SdssShapeResultKey that manages them...
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
FluxResultKey _fluxResult
A reusable result struct for flux measurements.
ErrElement flux_xy_Cov
flux, xy term in the uncertainty covariance matrix