LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
lsst::afw::math::SpatialCellImageCandidate< PixelT > Class Template Referenceabstract

#include <SpatialCell.h>

Inheritance diagram for lsst::afw::math::SpatialCellImageCandidate< PixelT >:
lsst::afw::math::SpatialCellCandidate

Public Types

typedef boost::shared_ptr
< SpatialCellImageCandidate
Ptr
 
typedef boost::shared_ptr
< const
SpatialCellImageCandidate
ConstPtr
 
- Public Types inherited from lsst::afw::math::SpatialCellCandidate
enum  Status { BAD = 0, GOOD = 1, UNKNOWN = 2 }
 
typedef boost::shared_ptr
< SpatialCellCandidate
Ptr
 
typedef boost::shared_ptr
< const SpatialCellCandidate
ConstPtr
 

Public Member Functions

 SpatialCellImageCandidate (float const xCenter, float const yCenter)
 ctor More...
 
virtual ~SpatialCellImageCandidate ()
 
virtual boost::shared_ptr
< lsst::afw::image::Image
< PixelT > const > 
getImage () const =0
 Return the Candidate's Image. More...
 
double getChi2 () const
 Return the candidate's chi^2. More...
 
void setChi2 (double chi2)
 Set the candidate's chi^2. More...
 
- Public Member Functions inherited from lsst::afw::math::SpatialCellCandidate
 SpatialCellCandidate (float const xCenter, float const yCenter)
 
virtual ~SpatialCellCandidate ()
 
float getXCenter () const
 Return the object's column-centre. More...
 
float getYCenter () const
 Return the object's row-centre. More...
 
virtual bool instantiate ()
 Do anything needed to make this candidate usable. More...
 
virtual double getCandidateRating () const =0
 Return candidate's rating. More...
 
virtual void setCandidateRating (double)
 Set the candidate's rating. More...
 
int getId () const
 Return the candidate's unique ID. More...
 
Status getStatus () const
 Return the candidate's status. More...
 
void setStatus (Status status)
 Set the candidate's status. More...
 
virtual bool isBad () const
 Is this candidate unacceptable? More...
 

Static Public Member Functions

static void setWidth (int width)
 Set the width of the image that getImage should return. More...
 
static int getWidth ()
 Return the width of the image that getImage should return. More...
 
static void setHeight (int height)
 Set the height of the image that getImage should return. More...
 
static int getHeight ()
 Return the height of the image that getImage should return. More...
 

Protected Attributes

boost::shared_ptr
< lsst::afw::image::Image
< PixelT > > 
_image
 a pointer to the Image, for the use of the base class More...
 

Private Attributes

double _chi2
 

Static Private Attributes

static int _width = 0
 The width of images that SpatialCellImageCandidate should return; may be ignored by subclasses. More...
 
static int _height = 0
 The height of images that SpatialCellImageCandidate should return; may be ignored by subclasses. More...
 

Detailed Description

template<typename PixelT>
class lsst::afw::math::SpatialCellImageCandidate< PixelT >

Base class for candidate objects in a SpatialCell that are able to return an Image of some sort (e.g. a PSF or a DIA kernel)

Definition at line 133 of file SpatialCell.h.

Member Typedef Documentation

template<typename PixelT>
typedef boost::shared_ptr<const SpatialCellImageCandidate> lsst::afw::math::SpatialCellImageCandidate< PixelT >::ConstPtr

Definition at line 136 of file SpatialCell.h.

template<typename PixelT>
typedef boost::shared_ptr<SpatialCellImageCandidate> lsst::afw::math::SpatialCellImageCandidate< PixelT >::Ptr

Definition at line 135 of file SpatialCell.h.

Constructor & Destructor Documentation

template<typename PixelT>
lsst::afw::math::SpatialCellImageCandidate< PixelT >::SpatialCellImageCandidate ( float const  xCenter,
float const  yCenter 
)
inline

ctor

Parameters
xCenterThe object's column-centre
yCenterThe object's row-centre

Definition at line 139 of file SpatialCell.h.

141  : SpatialCellCandidate(xCenter, yCenter),
143  _chi2(std::numeric_limits<double>::max()) {
144  }
#define PTR(...)
Definition: base.h:41
boost::shared_ptr< lsst::afw::image::Image< PixelT > > _image
a pointer to the Image, for the use of the base class
Definition: SpatialCell.h:168
A class to represent a 2-dimensional array of pixels.
Definition: Image.h:415
SpatialCellCandidate(float const xCenter, float const yCenter)
Definition: SpatialCell.h:81
template<typename PixelT>
virtual lsst::afw::math::SpatialCellImageCandidate< PixelT >::~SpatialCellImageCandidate ( )
inlinevirtual

Definition at line 145 of file SpatialCell.h.

145 {}

Member Function Documentation

template<typename PixelT>
double lsst::afw::math::SpatialCellImageCandidate< PixelT >::getChi2 ( ) const
inline

Return the candidate's chi^2.

Definition at line 163 of file SpatialCell.h.

template<typename PixelT>
static int lsst::afw::math::SpatialCellImageCandidate< PixelT >::getHeight ( )
inlinestatic

Return the height of the image that getImage should return.

Definition at line 160 of file SpatialCell.h.

160 { return _height; }
static int _height
The height of images that SpatialCellImageCandidate should return; may be ignored by subclasses...
Definition: SpatialCell.h:171
template<typename PixelT>
virtual boost::shared_ptr< lsst::afw::image::Image<PixelT> const> lsst::afw::math::SpatialCellImageCandidate< PixelT >::getImage ( ) const
pure virtual

Return the Candidate's Image.

Implemented in lsst::ip::diffim::KernelCandidate< _PixelT >.

template<typename PixelT>
static int lsst::afw::math::SpatialCellImageCandidate< PixelT >::getWidth ( )
inlinestatic

Return the width of the image that getImage should return.

Definition at line 155 of file SpatialCell.h.

155 { return _width; }
static int _width
The width of images that SpatialCellImageCandidate should return; may be ignored by subclasses...
Definition: SpatialCell.h:170
template<typename PixelT>
void lsst::afw::math::SpatialCellImageCandidate< PixelT >::setChi2 ( double  chi2)
inline

Set the candidate's chi^2.

Definition at line 165 of file SpatialCell.h.

template<typename PixelT>
static void lsst::afw::math::SpatialCellImageCandidate< PixelT >::setHeight ( int  height)
inlinestatic

Set the height of the image that getImage should return.

Definition at line 158 of file SpatialCell.h.

158 { _height = height; }
static int _height
The height of images that SpatialCellImageCandidate should return; may be ignored by subclasses...
Definition: SpatialCell.h:171
void ImageT ImageT int float saturatedPixelValue int const height
Definition: saturated.cc:44
template<typename PixelT>
static void lsst::afw::math::SpatialCellImageCandidate< PixelT >::setWidth ( int  width)
inlinestatic

Set the width of the image that getImage should return.

Definition at line 151 of file SpatialCell.h.

151  {
152  _width = width;
153  }
static int _width
The width of images that SpatialCellImageCandidate should return; may be ignored by subclasses...
Definition: SpatialCell.h:170
void ImageT ImageT int float saturatedPixelValue int const width
Definition: saturated.cc:44

Member Data Documentation

template<typename PixelT>
double lsst::afw::math::SpatialCellImageCandidate< PixelT >::_chi2
private

Definition at line 172 of file SpatialCell.h.

template<typename PixelT>
int lsst::afw::math::SpatialCellImageCandidate< PixelT >::_height = 0
staticprivate

The height of images that SpatialCellImageCandidate should return; may be ignored by subclasses.

Definition at line 171 of file SpatialCell.h.

template<typename PixelT>
boost::shared_ptr< lsst::afw::image::Image<PixelT> > lsst::afw::math::SpatialCellImageCandidate< PixelT >::_image
mutableprotected

a pointer to the Image, for the use of the base class

Definition at line 168 of file SpatialCell.h.

template<typename PixelT>
int lsst::afw::math::SpatialCellImageCandidate< PixelT >::_width = 0
staticprivate

The width of images that SpatialCellImageCandidate should return; may be ignored by subclasses.

Definition at line 170 of file SpatialCell.h.


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