LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
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: