Class DefectBase

Inheritance Relationships

Derived Type

Class Documentation

class DefectBase

Encapsulate information about a bad portion of a detector

Subclassed by lsst::meas::algorithms::Defect

Public Functions

DefectBase(const lsst::geom::Box2I &bbox)

Parameters
  • bbox: Bad pixels’ bounding box

DefectBase(DefectBase const&)
DefectBase(DefectBase&&)
DefectBase &operator=(DefectBase const&)
DefectBase &operator=(DefectBase&&)
virtual ~DefectBase()
lsst::geom::Box2I const &getBBox() const

Return the Defect’s bounding box.

int getX0() const

Return the Defect’s left column.

int getX1() const

Return the Defect’s right column.

int getY0() const

Return the Defect’s bottom row.

int getY1() const

Return the Defect’s top row.

void clip(lsst::geom::Box2I const &bbox)
void shift(int dx, int dy)

Parameters
  • dx: How much to move defect in column direction

  • dy: How much to move in row direction

Offset a Defect by (dx, dy)

void shift(lsst::geom::Extent2I const &d)