Template Class BaselineUtils

Class Documentation

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