24 #ifndef LSST_MEAS_BASE_SdssShape_h_INCLUDED
25 #define LSST_MEAS_BASE_SdssShape_h_INCLUDED
37 namespace lsst {
namespace meas {
namespace base {
39 class SdssShapeResult;
78 std::string
const &
name
160 template <
typename ImageT>
162 ImageT
const &
image,
176 template <
typename ImageT>
178 ImageT
const & image,
218 std::bitset<SdssShapeAlgorithm::N_FLAGS>
flags;
262 #endif // !LSST_MEAS_BASE_SdssShape_h_INCLUDED
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
static SdssShapeResultKey addFields(afw::table::Schema &schema, std::string const &name)
Add the appropriate fields to a Schema, and return a SdssShapeResultKey that manages them...
A proxy type for name lookups in a Schema.
afw::table::Key< ErrElement > _flux_yy_Cov
SafeCentroidExtractor _centroidExtractor
table::Key< std::string > name
static FluxResult computeFixedMomentsFlux(ImageT const &image, afw::geom::ellipses::Quadrupole const &shape, afw::geom::Point2D const &position)
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" ;
SdssShapeControl()
Default constructor.
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)
float tol1
"Convergence tolerance for e1,e2" ;
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
bool operator==(SdssShapeResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
ShapeResultKey _shapeResult
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
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.
static Result computeAdaptiveMoments(ImageT const &image, afw::geom::Point2D const &position, Control const &ctrl=Control())
SdssShapeResult()
Constructor; initializes everything to NaN.
SdssShapeAlgorithm(Control const &ctrl, std::string const &name, afw::table::Schema &schema)
CentroidResultKey _centroidResult
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 a CentroidResult 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
Base class for all records.
A FunctorKey that maps SdssShapeResult to afw::table Records.
SdssShapeResultKey ResultKey
A FunctorKey for CentroidResult.
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
FluxResultKey _fluxResult
A reusable result struct for flux measurements.
ErrElement flux_xy_Cov
flux, xy term in the uncertainty covariance matrix