lsst.meas.algorithms
tickets.DM-23835-ga6ed9de832
|
Go to the documentation of this file.
25 #if !defined(LSST_MEAS_ALGORITHMS_INTERP_H)
26 #define LSST_MEAS_ALGORITHMS_INTERP_H
46 namespace algorithms {
64 template <
typename MaskedImageT>
66 bool horizontal,
double minval);
103 unsigned int getType()
const {
return _type; }
110 template <
typename MaskedImageT>
113 bool useFallbackValueAtEdge =
false);
defect is at right boundary
defect is near left boundary
defect is in middle of frame
Defect(const geom::BoxI &bbox=geom::BoxI())
std::shared_ptr< Defect > Ptr
shared pointer to Defect
void classify(DefectPosition pos, unsigned int type)
std::pair< bool, typename MaskedImageT::Image::Pixel > singlePixel(int x, int y, MaskedImageT const &image, bool horizontal, double minval)
Return a boolean status (true: interpolation is OK) and the interpolated value for a pixel,...
defect is near left, and wide
defect is wide at right boundary
const double min2GaussianBias
Mean value of the minimum of two N(0,1) variates.
unsigned int getType() const
Return the defect's interpolation type.
const double lpc_1_c1
LPC coefficients for sigma = 1, S/N = infty.
const double lpc_1s2_c1
LPC coefficients for sigma = 1/sqrt(2), S/N = infty.
defect is at left boundary
defect is in middle, and wide
defect is near right, and wide
defect is wide at left boundary
DefectBase(const lsst::geom::Box2I &bbox)
void interpolateOverDefects(MaskedImageT &image, afw::detection::Psf const &psf, std::vector< Defect::Ptr > &badList, double fallbackValue=0.0, bool useFallbackValueAtEdge=false)
Process a set of known bad pixels in an image.
Encapsulate information about a bad portion of a detector.
defect is near right boundary
DefectPosition getPos() const
Return the position of the defect.