File PixelFitRegion.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace meas
namespace modelfit
class PixelFitRegion

Public Functions

PixelFitRegion(PixelFitRegionControl const &ctrl, afw::geom::ellipses::Quadrupole const &moments, afw::geom::ellipses::Quadrupole const &psfMoments, Scalar kronRadius, int footprintArea)
PixelFitRegion(PixelFitRegionControl const &ctrl, afw::geom::ellipses::Quadrupole const &ellipse)
bool applyEllipse(afw::geom::ellipses::Quadrupole const &deconvolved, afw::geom::ellipses::Quadrupole const &psfMoments)
void applyMask(afw::image::Mask<> const &mask, geom::Point2D const &center)
PTR(afw::detection::Footprint)

Public Members

afw::geom::ellipses::Quadrupole ellipse
bool usedFootprintArea
bool usedPsfArea
bool maxArea
bool maxBadPixelFraction
bool usedMinEllipse
bool usedMaxEllipse

Private Members

PixelFitRegionControl _ctrl
afw::image::MaskPixel _badPixelMask
struct PixelFitRegionControl

Public Functions

PixelFitRegionControl()
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(nKronRadii, double, "Use this multiple of the Kron ellipse to set the fit region (for the final fit region, " "subject to the nFitRadiiMin and nFitRadiiMax constraints).")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(nPsfSigmaMin, double, "If the Kron radius is less than this multiple of the PSF width, ignore it and fall back " "to a PSF-oriented ellipse scaled to match the area of the footprint or this radius " "(whichever is larger).")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(nPsfSigmaGrow, double, "Grow the initial fit ellipses by this factor before comparing with the Kron/Footprint region")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(nFitRadiiMin, double, "Use this multiple of the initial fit ellipse then grow by the PSF width " "to determine the minimum final fit region size.")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(nFitRadiiMax, double, "Use this multiple of the initial fit ellipse then grow by the PSF width " "to determine the maximum final fit region size.")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(maxArea, int, "Abort if the fit region grows beyond this many pixels.")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(badMaskPlanes, std::vector< std::string >, "Mask planes that indicate pixels that should be ignored in the fit.")
lsst::meas::modelfit::PixelFitRegionControl::LSST_CONTROL_FIELD(maxBadPixelFraction, double, "Maximum fraction of pixels that may be ignored due to masks; " "more than this and we don't even try.")