25 #if !defined(LSST_MEAS_ALGORITHMS_INTERP_H) 26 #define LSST_MEAS_ALGORITHMS_INTERP_H 32 #include "lsst/afw/image/Defect.h" 33 #include "lsst/afw/image/MaskedImage.h" 44 namespace algorithms {
62 template <
typename MaskedImageT>
63 std::pair<bool, typename MaskedImageT::Image::Pixel>
singlePixel(
int x,
int y, MaskedImageT
const &
image,
64 bool horizontal,
double minval);
70 class Defect :
public lsst::afw::image::DefectBase {
72 typedef std::shared_ptr<Defect>
Ptr;
87 enum { WIDE_DEFECT = 11 };
89 explicit Defect(
const lsst::afw::geom::BoxI& bbox = lsst::afw::geom::BoxI()
102 unsigned int getType()
const {
return _type; }
109 template <
typename MaskedImageT>
111 lsst::afw::detection::Psf
const &
psf,
112 std::vector<Defect::Ptr> &badList,
113 double fallbackValue = 0.0,
114 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.
defect is in middle of frame
defect is near right boundary
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
Defect(const lsst::afw::geom::BoxI &bbox=lsst::afw::geom::BoxI())
void interpolateOverDefects(MaskedImageT &image, lsst::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_1s2_c1
LPC coefficients for sigma = 1/sqrt(2), S/N = infty.
double const lpc_1_c1
LPC coefficients for sigma = 1, S/N = infty.
Encapsulate information about a bad portion of a detector.