File ImageStatistics.h

Image Subtraction helper functions.

Author

Andrew Becker, University of Washington

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 ip
namespace diffim
template<typename PixelT>
class ImageStatistics
#include <ImageStatistics.h>

Class to calculate difference image statistics.

Note

Find mean and unbiased variance of pixel residuals in units of sqrt(variance)

Public Types

typedef std::shared_ptr<ImageStatistics> Ptr
typedef lsst::afw::image::MaskedImage<PixelT>::x_iterator x_iterator

Public Functions

ImageStatistics(lsst::daf::base::PropertySet const &ps)
virtual ~ImageStatistics()
void reset()
void apply(lsst::afw::image::MaskedImage<PixelT> const &image)
void apply(lsst::afw::image::MaskedImage<PixelT> const &image, int core)
void setBpMask(lsst::afw::image::MaskPixel bpMask)
lsst::afw::image::MaskPixel getBpMask()
double getMean() const
double getVariance() const
double getRms() const
int getNpix() const
bool evaluateQuality(lsst::daf::base::PropertySet const &ps)

Private Members

double _xsum
double _x2sum
int _npix
lsst::afw::image::MaskPixel _bpMask