File BaselineUtils.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 deblender
template<typename ImagePixelT, typename MaskPixelT = lsst::afw::image::MaskPixel, typename VariancePixelT = lsst::afw::image::VariancePixel>
class BaselineUtils

Public Types

typedef lsst::afw::image::MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT> MaskedImageT
typedef lsst::afw::image::Image<ImagePixelT> ImageT
typedef lsst::afw::image::Mask<MaskPixelT> MaskT
typedef lsst::afw::detection::Footprint FootprintT
typedef lsst::afw::detection::HeavyFootprint<ImagePixelT, MaskPixelT, VariancePixelT> HeavyFootprintT

Public Functions

typedef lsst::meas::deblender::BaselineUtils::PTR(lsst::afw::image::MaskedImage < ImagePixelT, MaskPixelT, VariancePixelT >)
typedef lsst::meas::deblender::BaselineUtils::PTR(lsst::afw::image::Image < ImagePixelT >)
typedef lsst::meas::deblender::BaselineUtils::PTR(lsst::afw::image::Mask < MaskPixelT >)
typedef lsst::meas::deblender::BaselineUtils::PTR(lsst::afw::detection::Footprint)
typedef lsst::meas::deblender::BaselineUtils::PTR(lsst::afw::detection::HeavyFootprint < ImagePixelT, MaskPixelT, VariancePixelT >)

Public Static Functions

static void medianFilter(ImageT const &img, ImageT &outimg, int halfsize)
static void makeMonotonic(ImageT &img, lsst::afw::detection::PeakRecord const &pk)
static std::vector<typename PTR(lsst::afw::image::MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>)> apportionFlux(MaskedImageT const &img, lsst::afw::detection::Footprint const &foot, std::vector<typename PTR(lsst::afw::image::Image<ImagePixelT>)> templates, std::vector<std::shared_ptr<lsst::afw::detection::Footprint>> templ_footprints, ImagePtrT templ_sum, std::vector<bool> const &ispsf, std::vector<int> const &pkx, std::vector<int> const &pky, std::vector<std::shared_ptr<typename lsst::afw::detection::HeavyFootprint<ImagePixelT, MaskPixelT, VariancePixelT>>> &strays, int strayFluxOptions, double clipStrayFluxFraction, )
static bool hasSignificantFluxAtEdge(ImagePtrT, std::shared_ptr<lsst::afw::detection::Footprint>, ImagePixelT threshold)
static std::shared_ptr<lsst::afw::detection::Footprint> getSignificantEdgePixels(ImagePtrT, std::shared_ptr<lsst::afw::detection::Footprint>, ImagePixelT threshold)
static void _sum_templates(std::vector<ImagePtrT> timgs, ImagePtrT tsum)
static void _find_stray_flux(lsst::afw::detection::Footprint const &foot, ImagePtrT tsum, MaskedImageT const &img, int strayFluxOptions, std::vector<std::shared_ptr<lsst::afw::detection::Footprint>> tfoots, std::vector<bool> const &ispsf, std::vector<int> const &pkx, std::vector<int> const &pky, double clipStrayFluxFraction, std::vector<std::shared_ptr<typename lsst::afw::detection::HeavyFootprint<ImagePixelT, MaskPixelT, VariancePixelT>>> &strays)

Public Static Attributes

const int ASSIGN_STRAYFLUX = 0x1
const int STRAYFLUX_TO_POINT_SOURCES_WHEN_NECESSARY = 0x2
const int STRAYFLUX_TO_POINT_SOURCES_ALWAYS = 0x4
const int STRAYFLUX_R_TO_FOOTPRINT = 0x8
const int STRAYFLUX_NEAREST_FOOTPRINT = 0x10
const int STRAYFLUX_TRIM = 0x20