LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
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: