25#ifndef LSST_MEAS_BASE_Blendedness_h_INCLUDED
26#define LSST_MEAS_BASE_Blendedness_h_INCLUDED
28#include "lsst/pex/config.h"
44 "Whether to compute HeavyFootprint dot products (the old deblend.blendedness parameter)");
46 LSST_CONTROL_FIELD(
doFlux,
bool,
"Whether to compute quantities related to the Gaussian-weighted flux");
48 LSST_CONTROL_FIELD(
doShape,
bool,
"Whether to compute quantities related to the Gaussian-weighted shape");
51 "Radius factor that sets the maximum extent of the weight function (and hence the "
52 "flux measurements)");
Compute metrics that measure how blended objects are.
static float computeAbsExpectation(float data, float variance)
Compute the posterior expectation value of the true instrumental flux in a pixel from its (Gaussian) ...
void measureChildPixels(afw::image::MaskedImage< float > const &image, afw::table::SourceRecord &child) const
BlendednessControl Control
static FlagDefinitionList const & getFlagDefinitions()
static float computeAbsBias(float mu, float variance)
Compute the bias induced by using the absolute value of a pixel instead of its value.
static FlagDefinition const NO_SHAPE
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.
static FlagDefinition const NO_CENTROID
virtual void measure(afw::table::SourceRecord &measRecord, afw::image::Exposure< float > const &exposure) const
Called to measure a single child source in an image.
static FlagDefinition const FAILURE
void measureParentPixels(afw::image::MaskedImage< float > const &image, afw::table::SourceRecord &child) const
double nSigmaWeightMax
"Radius factor that sets the maximum extent of the weight function (and hence the " "flux measurement...
bool doOld
"Whether to compute HeavyFootprint dot products (the old deblend.blendedness parameter)" ;
bool doShape
"Whether to compute quantities related to the Gaussian-weighted shape" ;
bool doFlux
"Whether to compute quantities related to the Gaussian-weighted flux" ;
vector-type utility class to build a collection of FlagDefinitions
Utility class for handling flag fields that indicate the failure modes of an algorithm.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
A FunctorKey for ShapeResult.
An abstract base classes for which the same implementation can be used for both SingleFrameAlgorithm ...
Simple class used to define and document flags The name and doc constitute the identity of the FlagDe...