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
|
Class stored in SpatialCells for spatial Psf fitting. More...
#include <PsfCandidate.h>
Public Types | |
typedef boost::shared_ptr < PsfCandidate< PixelT > > | Ptr |
typedef boost::shared_ptr < const PsfCandidate< PixelT > > | ConstPtr |
typedef std::vector< Ptr > | PtrList |
typedef lsst::afw::image::MaskedImage < PixelT > | MaskedImageT |
Public Types inherited from lsst::afw::math::SpatialCellMaskedImageCandidate< PixelT > | |
typedef boost::shared_ptr < SpatialCellMaskedImageCandidate > | Ptr |
typedef boost::shared_ptr < const SpatialCellMaskedImageCandidate > | 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 | |
PsfCandidate (boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure) | |
PsfCandidate (boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure, double xCenter, double yCenter) | |
virtual | ~PsfCandidate () |
Destructor. More... | |
double | getCandidateRating () const |
boost::shared_ptr < afw::table::SourceRecord > | getSource () const |
Return the original Source. More... | |
double | getAmplitude () const |
Return the best-fit amplitude. More... | |
void | setAmplitude (double amplitude) |
Set the best-fit amplitude. More... | |
double | getVar () const |
Return the variance in use when fitting this object. More... | |
void | setVar (double var) |
Set the variance to use when fitting this object. More... | |
boost::shared_ptr < afw::image::MaskedImage < PixelT > const > | getMaskedImage () const |
boost::shared_ptr < afw::image::MaskedImage < PixelT > const > | getMaskedImage (int width, int height) const |
boost::shared_ptr < afw::image::MaskedImage < PixelT > > | getOffsetImage (std::string const algorithm, unsigned int buffer) const |
Return an offset version of the image of the source. The returned image has been offset to put the centre of the object in the centre of a pixel. More... | |
Public Member Functions inherited from lsst::afw::math::SpatialCellMaskedImageCandidate< PixelT > | |
SpatialCellMaskedImageCandidate (float const xCenter, float const yCenter) | |
ctor More... | |
virtual | ~SpatialCellMaskedImageCandidate () |
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 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 int | getBorderWidth () |
Return the number of pixels being ignored around the candidate image's edge. More... | |
static void | setBorderWidth (int border) |
Set the number of pixels to ignore around the candidate image's edge. More... | |
static void | setPixelThreshold (float threshold) |
static float | getPixelThreshold () |
Get threshold for rejecting pixels unconnected with the central footprint. More... | |
static void | setMaskBlends (bool doMaskBlends) |
Set whether blends are masked. More... | |
static bool | getMaskBlends () |
Get whether blends are masked. More... | |
Static Public Member Functions inherited from lsst::afw::math::SpatialCellMaskedImageCandidate< PixelT > | |
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... | |
Private Member Functions | |
boost::shared_ptr < afw::image::MaskedImage < PixelT > > | offsetImage (boost::shared_ptr< afw::image::MaskedImage< PixelT > > img, std::string const algorithm, unsigned int buffer) |
boost::shared_ptr < afw::image::MaskedImage < PixelT > > | extractImage (unsigned int width, unsigned int height) const |
Private Attributes | |
boost::shared_ptr < lsst::afw::image::Exposure < PixelT > const > | _parentExposure |
boost::shared_ptr < afw::image::MaskedImage < PixelT > > | _offsetImage |
boost::shared_ptr < afw::table::SourceRecord > | _source |
bool | _haveImage |
double | _amplitude |
double | _var |
afw::geom::Point2D | _xyCenter |
Static Private Attributes | |
static int | _border = 0 |
static int | _defaultWidth = 21 |
static float | _pixelThreshold = 0.0 |
Threshold for masking pixels unconnected with central footprint. More... | |
static bool | _doMaskBlends = true |
Mask blends when extracting? More... | |
Additional Inherited Members | |
Protected Attributes inherited from lsst::afw::math::SpatialCellMaskedImageCandidate< PixelT > | |
boost::shared_ptr < lsst::afw::image::MaskedImage < PixelT > lsst::afw::image::MaskPixel, lsst::afw::image::VariancePixel > | _image |
a pointer to the MaskedImage, for the use of the base class More... | |
Class stored in SpatialCells for spatial Psf fitting.
PsfCandidate is a detection that may turn out to be a PSF. We'll assign them to sets of SpatialCells; these sets will then be used to fit a spatial model to the PSF.
Definition at line 57 of file PsfCandidate.h.
typedef boost::shared_ptr<const PsfCandidate<PixelT> > lsst::meas::algorithms::PsfCandidate< PixelT >::ConstPtr |
Definition at line 66 of file PsfCandidate.h.
typedef lsst::afw::image::MaskedImage<PixelT> lsst::meas::algorithms::PsfCandidate< PixelT >::MaskedImageT |
Definition at line 69 of file PsfCandidate.h.
typedef boost::shared_ptr<PsfCandidate<PixelT> > lsst::meas::algorithms::PsfCandidate< PixelT >::Ptr |
Definition at line 65 of file PsfCandidate.h.
typedef std::vector<Ptr > lsst::meas::algorithms::PsfCandidate< PixelT >::PtrList |
Definition at line 67 of file PsfCandidate.h.
|
inline |
Construct a PsfCandidate from a specified source and image.
The x/yCenter is set to source.getX/YAstrom()
source | The detected Source |
parentExposure | The image wherein lie the Sources |
Definition at line 76 of file PsfCandidate.h.
|
inline |
Construct a PsfCandidate from a specified source, image and xyCenter.
source | The detected Source |
parentExposure | The image wherein lie the Sources |
xCenter | the desired x center |
yCenter | the desired y center |
Definition at line 91 of file PsfCandidate.h.
|
inlinevirtual |
|
private |
Extract an image of the candidate.
The MaskedImage is a deep copy of a sub-image of the original image. No offsets are applied.
In the mask, the INTRP bit is set and DETECTED unset for any pixels that are not considered part of the actual candidate. You should consider that, for the output mask:
Three schemes are used for masking pixels:
Definition at line 184 of file PsfCandidate.cc.
|
inline |
|
inlinestatic |
Return the number of pixels being ignored around the candidate image's edge.
Definition at line 136 of file PsfCandidate.h.
|
inlinevirtual |
Return Cell rating
Implements lsst::afw::math::SpatialCellCandidate.
Definition at line 113 of file PsfCandidate.h.
|
inlinestatic |
Get whether blends are masked.
Definition at line 153 of file PsfCandidate.h.
|
virtual |
Return the image at the position of the Source, without any sub-pixel shifts to put the centre of the object in the centre of a pixel (for that, use getOffsetImage())
Implements lsst::afw::math::SpatialCellMaskedImageCandidate< PixelT >.
Definition at line 317 of file PsfCandidate.cc.
boost::shared_ptr< afwImage::MaskedImage< PixelT > const > lsst::meas::algorithms::PsfCandidate< PixelT >::getMaskedImage | ( | int | width, |
int | height | ||
) | const |
Return the image at the position of the Source, without any sub-pixel shifts to put the centre of the object in the centre of a pixel (for that, use getOffsetImage())
Definition at line 296 of file PsfCandidate.cc.
boost::shared_ptr< afwImage::MaskedImage< PixelT > > lsst::meas::algorithms::PsfCandidate< PixelT >::getOffsetImage | ( | std::string const | algorithm, |
unsigned int | buffer | ||
) | const |
Return an offset version of the image of the source. The returned image has been offset to put the centre of the object in the centre of a pixel.
Definition at line 333 of file PsfCandidate.cc.
|
inlinestatic |
Get threshold for rejecting pixels unconnected with the central footprint.
Definition at line 147 of file PsfCandidate.h.
|
inline |
Return the original Source.
Definition at line 116 of file PsfCandidate.h.
|
inline |
|
private |
|
inline |
|
inlinestatic |
Set the number of pixels to ignore around the candidate image's edge.
Definition at line 139 of file PsfCandidate.h.
|
inlinestatic |
Set whether blends are masked.
Definition at line 150 of file PsfCandidate.h.
|
inlinestatic |
Set threshold for rejecting pixels unconnected with the central footprint
A non-positive threshold means that no threshold will be applied.
Definition at line 144 of file PsfCandidate.h.
|
inline |
|
private |
Definition at line 172 of file PsfCandidate.h.
|
staticprivate |
Definition at line 174 of file PsfCandidate.h.
|
staticprivate |
Definition at line 176 of file PsfCandidate.h.
|
staticprivate |
Mask blends when extracting?
Definition at line 178 of file PsfCandidate.h.
|
mutableprivate |
Definition at line 171 of file PsfCandidate.h.
|
mutableprivate |
Definition at line 168 of file PsfCandidate.h.
|
private |
Definition at line 156 of file PsfCandidate.h.
|
staticprivate |
Threshold for masking pixels unconnected with central footprint.
Definition at line 177 of file PsfCandidate.h.
|
private |
Definition at line 169 of file PsfCandidate.h.
|
private |
Definition at line 173 of file PsfCandidate.h.
|
private |
Definition at line 175 of file PsfCandidate.h.