|
| SdssShapeAlgorithm (Control const &ctrl, std::string const &name, afw::table::Schema &schema) |
|
virtual void | measure (afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const |
| Called to measure a single child source in an image. More...
|
|
virtual void | fail (afw::table::SourceRecord &measRecord, MeasurementError *error=nullptr) const |
| Handle an exception thrown by the current algorithm by setting flags in the given record. More...
|
|
template<typename ImageT > |
SdssShapeResult | computeAdaptiveMoments (ImageT const &image, afw::geom::Point2D const ¢er, bool negative, Control const &control) |
|
virtual void | measureForced (afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure, afw::table::SourceRecord const &refRecord, afw::image::Wcs const &refWcs) const |
| Called to measure a single child source in an image. More...
|
|
virtual void | measureNForced (afw::table::SourceCatalog const &measCat, afw::image::Exposure< float > const &exposure, afw::table::SourceCatalog const &refRecord, afw::image::Wcs const &refWcs) const |
| Called to simultaneously measure all children in a deblend family, in a single image. More...
|
|
virtual void | measureN (afw::table::SourceCatalog const &measCat, afw::image::Exposure< float > const &exposure) const |
| Called to simultaneously measure all children in a deblend family, in a single image. More...
|
|
virtual | ~BaseAlgorithm () |
|
std::string | getLogName () const |
|
|
static unsigned int const | N_FLAGS = 6 |
|
static FlagDefinition const | FAILURE = flagDefinitions.addFailureFlag() |
|
static FlagDefinition const | UNWEIGHTED_BAD = flagDefinitions.add("flag_unweightedBad", "Both weighted and unweighted moments were invalid") |
|
static FlagDefinition const | UNWEIGHTED = flagDefinitions.add("flag_unweighted", "Weighted moments converged to an invalid value; using unweighted moments") |
|
static FlagDefinition const | SHIFT = flagDefinitions.add("flag_shift", "centroid shifted by more than the maximum allowed amount") |
|
static FlagDefinition const | MAXITER = flagDefinitions.add("flag_maxIter", "Too many iterations in adaptive moments") |
|
static FlagDefinition const | PSF_SHAPE_BAD = flagDefinitions.add("flag_psf", "Failure in measuring PSF model shape") |
|
Measure the image moments of source using adaptive Gaussian weights.
This algorithm measures the weighted second moments of an image using a Gaussian weight function, which is iteratively updated to match the current weights. If this iteration does not converge, it can fall back to using unweighted moments, which can be significantly noisier.
See Bernstein & Jarvis, 2002, for more information on this type of algorithm. Note that the code here makes no attempt to correct for the PSF; for PSF corrected ellipticities using weighted moments please use the shapeHSM package.
Definition at line 152 of file SdssShape.h.
void lsst::meas::base::SdssShapeAlgorithm::fail |
( |
afw::table::SourceRecord & |
measRecord, |
|
|
MeasurementError * |
error = nullptr |
|
) |
| const |
|
virtual |
Handle an exception thrown by the current algorithm by setting flags in the given record.
fail() is called by the measurement framework when an exception is allowed to propagate out of one the algorithm's measure() methods. It should generally set both a general failure flag for the algorithm as well as a specific flag indicating the error condition, if possible. To aid in this, if the exception was an instance of MeasurementError, it will be passed in, carrying information about what flag to set.
An algorithm can also to chose to set flags within its own measure() methods, and then just return, rather than throw an exception. However, fail() should be implemented even when all known failure modes do not throw exceptions, to ensure that unexpected exceptions thrown in lower-level code are properly handled.
Implements lsst::meas::base::BaseAlgorithm.
Definition at line 966 of file SdssShape.cc.
void lsst::meas::base::SdssShapeAlgorithm::measure |
( |
afw::table::SourceRecord & |
measRecord, |
|
|
afw::image::Exposure< float > const & |
exposure |
|
) |
| const |
|
virtual |