25 #if !defined(LSST_MEAS_ALGORITHMS_INTERP_H)
26 #define LSST_MEAS_ALGORITHMS_INTERP_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);
72 typedef boost::shared_ptr<Defect>
Ptr;
109 template <
typename MaskedImageT>
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.
Encapsulate information about a bad portion of a detector.
boost::shared_ptr< Defect > Ptr
shared pointer to Defect
DefectBase(const geom::Box2I &bbox)
defect is in middle of frame
defect is near right boundary
unsigned int getType() const
Return the defect's interpolation type.
An integer coordinate rectangle.
defect is at left boundary
table::Key< table::Array< Kernel::Pixel > > image
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.
defect is near right, and wide
defect is wide at left boundary
DefectPosition _pos
Position of defect.
defect is near left, and wide
unsigned int _type
Type of defect.
DefectPosition getPos() const
Return the position of the 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)
defect is near left boundary
Implementation of the Class MaskedImage.
Defect(const lsst::afw::geom::BoxI &bbox=lsst::afw::geom::BoxI())
A polymorphic base class for representing an image's Point Spread Function.
defect is at right boundary
Encapsulate information about a bad portion of a detector.