LSST Applications 24.1.6,g063fba187b+56b85ce14a,g0f08755f38+df8a265115,g12f32b3c4e+891a09f10d,g1524ad2192+7a5d7b3fbd,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g28da252d5a+07cb1400be,g2bbee38e9b+ae03bbfc84,g2bc492864f+ae03bbfc84,g3156d2b45e+6e55a43351,g347aa1857d+ae03bbfc84,g35bb328faa+a8ce1bb630,g3a166c0a6a+ae03bbfc84,g3e281a1b8c+c5dd892a6c,g414038480c+6b9177ef31,g41af890bb2+8f257c4c0b,g781aacb6e4+a8ce1bb630,g7af13505b9+7137b3b17d,g80478fca09+6df6903293,g82479be7b0+091ce1d07f,g858d7b2824+df8a265115,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,g9726552aa6+414189b318,ga5288a1d22+4a2bca08d7,gacef1a1666+c9a8ff65f4,gb58c049af0+d64f4d3760,gbcfae0f0a0+de1d42d831,gc28159a63d+ae03bbfc84,gcf0d15dbbd+72117bf34e,gda6a2b7d83+72117bf34e,gdaeeff99f8+1711a396fd,ge500cccec5+c8c9c9af63,ge79ae78c31+ae03bbfc84,gf0baf85859+c1f95f4921,gfa517265be+df8a265115,gfa999e8aa5+17cd334064,gfb92a5be7c+df8a265115
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
lsst::meas::algorithms::Defect Class Reference

Encapsulate information about a bad portion of a detector. More...

#include <Interp.h>

Inheritance diagram for lsst::meas::algorithms::Defect:
lsst::afw::image::DefectBase

Public Types

enum  DefectPosition {
  LEFT = 1 , NEAR_LEFT , WIDE_LEFT , MIDDLE ,
  WIDE_NEAR_LEFT , WIDE , WIDE_NEAR_RIGHT , NEAR_RIGHT ,
  WIDE_RIGHT , RIGHT
}
 
enum  { WIDE_DEFECT = 11 }
 
typedef std::shared_ptr< DefectPtr
 shared pointer to Defect
 

Public Member Functions

 Defect (const geom::BoxI &bbox=geom::BoxI())
 
virtual ~Defect ()
 
void classify (DefectPosition pos, unsigned int type)
 
unsigned int getType () const
 Return the defect's interpolation type.
 
DefectPosition getPos () const
 Return the position of the defect.
 
lsst::geom::Box2I const & getBBox () const noexcept
 Return the Defect's bounding box.
 
int getX0 () const noexcept
 Return the Defect's left column.
 
int getX1 () const noexcept
 Return the Defect's right column.
 
int getY0 () const noexcept
 Return the Defect's bottom row.
 
int getY1 () const noexcept
 Return the Defect's top row.
 
void clip (lsst::geom::Box2I const &bbox) noexcept
 
void shift (int dx, int dy)
 Offset a Defect by (dx, dy)
 
void shift (lsst::geom::Extent2I const &d)
 

Detailed Description

Encapsulate information about a bad portion of a detector.

Definition at line 72 of file Interp.h.

Member Typedef Documentation

◆ Ptr

shared pointer to Defect

Definition at line 74 of file Interp.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
WIDE_DEFECT 

Definition at line 89 of file Interp.h.

◆ DefectPosition

Enumerator
LEFT 

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

Definition at line 76 of file Interp.h.

76 {
77 LEFT = 1,
78 NEAR_LEFT,
79 WIDE_LEFT,
80 MIDDLE,
82 WIDE,
86 RIGHT
87 };
@ WIDE
defect is in middle, and wide
Definition Interp.h:82
@ NEAR_RIGHT
defect is near right boundary
Definition Interp.h:84
@ NEAR_LEFT
defect is near left boundary
Definition Interp.h:78
@ WIDE_LEFT
defect is wide at left boundary
Definition Interp.h:79
@ WIDE_RIGHT
defect is wide at right boundary
Definition Interp.h:85
@ MIDDLE
defect is in middle of frame
Definition Interp.h:80
@ WIDE_NEAR_LEFT
defect is near left, and wide
Definition Interp.h:81
@ RIGHT
defect is at right boundary
Definition Interp.h:86
@ LEFT
defect is at left boundary
Definition Interp.h:77
@ WIDE_NEAR_RIGHT
defect is near right, and wide
Definition Interp.h:83

Constructor & Destructor Documentation

◆ Defect()

lsst::meas::algorithms::Defect::Defect ( const geom::BoxI & bbox = geom::BoxI())
inlineexplicit
Parameters
bboxRegion's bounding box

Definition at line 91 of file Interp.h.

93 : afw::image::DefectBase(bbox), _pos(static_cast<DefectPosition>(0)), _type(0) {}
AmpInfoBoxKey bbox
Definition Amplifier.cc:117

◆ ~Defect()

virtual lsst::meas::algorithms::Defect::~Defect ( )
inlinevirtual

Definition at line 94 of file Interp.h.

94{}

Member Function Documentation

◆ classify()

void lsst::meas::algorithms::Defect::classify ( DefectPosition pos,
unsigned int type )
inline
Parameters
posPosition of defect in chip
typeType of defect

Definition at line 96 of file Interp.h.

98 {
99 _pos = pos;
100 _type = type;
101 }
table::Key< int > type
Definition Detector.cc:163

◆ clip()

void lsst::afw::image::DefectBase::clip ( lsst::geom::Box2I const & bbox)
inlinenoexceptinherited

Definition at line 56 of file Defect.h.

56{ _bbox.clip(bbox); }
void clip(Box2I const &other) noexcept
Shrink this to ensure that other.contains(*this).
Definition Box.cc:189

◆ getBBox()

lsst::geom::Box2I const & lsst::afw::image::DefectBase::getBBox ( ) const
inlinenoexceptinherited

Return the Defect's bounding box.

Definition at line 50 of file Defect.h.

◆ getPos()

DefectPosition lsst::meas::algorithms::Defect::getPos ( ) const
inline

Return the position of the defect.

Definition at line 104 of file Interp.h.

◆ getType()

unsigned int lsst::meas::algorithms::Defect::getType ( ) const
inline

Return the defect's interpolation type.

Definition at line 103 of file Interp.h.

◆ getX0()

int lsst::afw::image::DefectBase::getX0 ( ) const
inlinenoexceptinherited

Return the Defect's left column.

Definition at line 51 of file Defect.h.

◆ getX1()

int lsst::afw::image::DefectBase::getX1 ( ) const
inlinenoexceptinherited

Return the Defect's right column.

Definition at line 52 of file Defect.h.

◆ getY0()

int lsst::afw::image::DefectBase::getY0 ( ) const
inlinenoexceptinherited

Return the Defect's bottom row.

Definition at line 53 of file Defect.h.

◆ getY1()

int lsst::afw::image::DefectBase::getY1 ( ) const
inlinenoexceptinherited

Return the Defect's top row.

Definition at line 54 of file Defect.h.

◆ shift() [1/2]

void lsst::afw::image::DefectBase::shift ( int dx,
int dy )
inlineinherited

Offset a Defect by (dx, dy)

Parameters
dxHow much to move defect in column direction
dyHow much to move in row direction

Definition at line 61 of file Defect.h.

63 {
64 _bbox.shift(lsst::geom::Extent2I(dx, dy));
65 }
void shift(Extent2I const &offset)
Shift the position of the box by the given offset.
Definition Box.cc:134

◆ shift() [2/2]

void lsst::afw::image::DefectBase::shift ( lsst::geom::Extent2I const & d)
inlineinherited

Definition at line 66 of file Defect.h.

66{ _bbox.shift(d); }

The documentation for this class was generated from the following file: