LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
LSSTDataManagementBasePackage
|
Class stored in SpatialCells for spatial Psf fitting. More...
#include <PsfCandidate.h>
Public Types | |
typedef std::shared_ptr< PsfCandidate< PixelT > > | Ptr |
typedef std::shared_ptr< const PsfCandidate< PixelT > > | ConstPtr |
typedef std::vector< Ptr > | PtrList |
typedef afw::image::MaskedImage< PixelT > | MaskedImageT |
enum | Status { BAD = 0, GOOD = 1, UNKNOWN = 2 } |
Public Member Functions | |
PsfCandidate (boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure) | |
Construct a PsfCandidate from a specified source and image. More... | |
PsfCandidate (boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure, double xCenter, double yCenter) | |
Construct a PsfCandidate from a specified source, image and xyCenter. More... | |
virtual | ~PsfCandidate () |
Destructor. More... | |
double | getCandidateRating () const |
Return Cell rating. More... | |
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 |
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()) More... | |
boost::shared_ptr< afw::image::MaskedImage< PixelT > const > | 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()) More... | |
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. More... | |
double | getChi2 () const |
Return the candidate's chi^2. More... | |
void | setChi2 (double chi2) |
Set the candidate's chi^2. More... | |
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) |
Set threshold for rejecting pixels unconnected with the central footprint. More... | |
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 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... | |
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 std::shared_ptr<const PsfCandidate<PixelT> > lsst::meas::algorithms::PsfCandidate< PixelT >::ConstPtr |
Definition at line 60 of file PsfCandidate.h.
typedef afw::image::MaskedImage<PixelT> lsst::meas::algorithms::PsfCandidate< PixelT >::MaskedImageT |
Definition at line 63 of file PsfCandidate.h.
typedef std::shared_ptr<PsfCandidate<PixelT> > lsst::meas::algorithms::PsfCandidate< PixelT >::Ptr |
Definition at line 59 of file PsfCandidate.h.
typedef std::vector<Ptr> lsst::meas::algorithms::PsfCandidate< PixelT >::PtrList |
Definition at line 61 of file PsfCandidate.h.
|
inherited |
|
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 70 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 85 of file PsfCandidate.h.
|
inlinevirtual |
|
inline |
Return the best-fit amplitude.
Definition at line 113 of file PsfCandidate.h.
|
static |
Return the number of pixels being ignored around the candidate image's edge.
Definition at line 298 of file PsfCandidate.cc.
|
inlinevirtual |
Return Cell rating.
Implements lsst::afw::math::SpatialCellCandidate.
Definition at line 107 of file PsfCandidate.h.
|
inlineinherited |
|
inlinestaticinherited |
Return the height of the image that getImage should return.
Definition at line 147 of file SpatialCell.h.
|
inlineinherited |
|
static |
Get whether blends are masked.
Definition at line 323 of file PsfCandidate.cc.
boost::shared_ptr< afw::image::MaskedImage< PixelT > const > lsst::meas::algorithms::PsfCandidate< PixelT >::getMaskedImage | ( | ) | 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 291 of file PsfCandidate.cc.
boost::shared_ptr< afw::image::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 277 of file PsfCandidate.cc.
boost::shared_ptr< afw::image::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 334 of file PsfCandidate.cc.
|
static |
Get threshold for rejecting pixels unconnected with the central footprint.
Definition at line 313 of file PsfCandidate.cc.
|
inline |
|
inlineinherited |
Return the candidate's status.
Definition at line 106 of file SpatialCell.h.
|
inline |
Return the variance in use when fitting this object.
Definition at line 119 of file PsfCandidate.h.
|
inlinestaticinherited |
Return the width of the image that getImage should return.
Definition at line 142 of file SpatialCell.h.
|
inlineinherited |
Return the object's column-centre.
Definition at line 90 of file SpatialCell.h.
|
inlineinherited |
Return the object's row-centre.
Definition at line 93 of file SpatialCell.h.
|
inlinevirtualinherited |
Do anything needed to make this candidate usable.
Definition at line 96 of file SpatialCell.h.
|
inlinevirtualinherited |
|
inline |
Set the best-fit amplitude.
Definition at line 116 of file PsfCandidate.h.
|
static |
Set the number of pixels to ignore around the candidate image's edge.
Definition at line 303 of file PsfCandidate.cc.
|
inlinevirtualinherited |
|
inlineinherited |
|
inlinestaticinherited |
Set the height of the image that getImage should return.
Definition at line 145 of file SpatialCell.h.
|
static |
Set whether blends are masked.
Definition at line 318 of file PsfCandidate.cc.
|
static |
Set threshold for rejecting pixels unconnected with the central footprint.
A non-positive threshold means that no threshold will be applied.
Definition at line 308 of file PsfCandidate.cc.
|
inherited |
Set the candidate's status.
Definition at line 54 of file SpatialCell.cc.
|
inline |
Set the variance to use when fitting this object.
Definition at line 122 of file PsfCandidate.h.
|
inlinestaticinherited |
Set the width of the image that getImage should return.
Definition at line 140 of file SpatialCell.h.