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);
89 enum { WIDE_DEFECT = 11 };
103 unsigned int getType()
const {
return _type; }
110 template <
typename MaskedImageT>
113 bool useFallbackValueAtEdge =
false);
defect is wide at right boundary
defect is in middle, and wide
double const min2GaussianBias
Mean value of the minimum of two N(0,1) variates.
Encapsulate information about a bad portion of a detector.
defect is in middle of frame
defect is near right boundary
A base class for image defects.
defect is near right, and wide
DefectPosition getPos() const
Return the position of the defect.
defect is wide at left boundary
defect is near left, and wide
std::shared_ptr< Defect > Ptr
shared pointer to Defect
unsigned int getType() const
Return the defect's interpolation type.
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 boundary
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
A polymorphic base class for representing an image's Point Spread Function.
An integer coordinate rectangle.
double const lpc_1s2_c1
LPC coefficients for sigma = 1/sqrt(2), S/N = infty.
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.
double const lpc_1_c1
LPC coefficients for sigma = 1, S/N = infty.
Encapsulate information about a bad portion of a detector.
Defect(const geom::BoxI &bbox=geom::BoxI())