File Interp.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace meas
namespace algorithms

Functions

template<typename MaskedImageT>
void interpolateOverDefects(MaskedImageT &image, afw::detection::Psf const &psf, std::vector<Defect::Ptr> &badList, double fallbackValue = 0.0, bool useFallbackValueAtEdge = false)
class Defect : public lsst::afw::image::DefectBase
#include <Interp.h>

Encapsulate information about a bad portion of a detector.

Public Types

enum DefectPosition

Values:

LEFT = 1

defect is at left boundary

NEAR_LEFT

defect is near left boundary

WIDE_LEFT

defect is wide at left boundary

MIDDLE

defect is in middle of frame

WIDE_NEAR_LEFT

defect is near left, and wide

WIDE

defect is in middle, and wide

WIDE_NEAR_RIGHT

defect is near right, and wide

NEAR_RIGHT

defect is near right boundary

WIDE_RIGHT

defect is wide at right boundary

RIGHT

defect is at right boundary

enum [anonymous]

Values:

WIDE_DEFECT = 11
typedef std::shared_ptr<Defect> Ptr

shared pointer to Defect

Public Functions

Defect(const geom::BoxI &bbox = geom::BoxI())

Parameters
  • bbox: Region’s bounding box

virtual ~Defect()
void classify(DefectPosition pos, unsigned int type)

Parameters
  • pos: Position of defect in chip

  • type: Type of defect

unsigned int getType() const

Return the defect’s interpolation type.

DefectPosition getPos() const

Return the position of the defect.

Private Members

DefectPosition _pos

Position of defect.

unsigned int _type

Type of defect.

namespace interp

Functions

template<typename MaskedImageT>
std::pair<bool, typename MaskedImageT::Image::Pixel> singlePixel(int x, int y, MaskedImageT const &image, bool horizontal, double minval)

Variables

double const lpc_1_c1 = 0.7737

LPC coefficients for sigma = 1, S/N = infty

double const lpc_1_c2 = -0.2737
double const lpc_1s2_c1 = 0.7358

LPC coefficients for sigma = 1/sqrt(2), S/N = infty. These are the coeffs to use when interpolating at 45degrees to the row/column

double const lpc_1s2_c2 = -0.2358
double const min2GaussianBias = -0.5641895835

Mean value of the minimum of two N(0,1) variates.