|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
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 (std::shared_ptr< afw::table::SourceRecord > const &source, std::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure) | |
| Construct a PsfCandidate from a specified source and image. | |
| PsfCandidate (std::shared_ptr< afw::table::SourceRecord > const &source, std::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure, double xCenter, double yCenter) | |
| Construct a PsfCandidate from a specified source, image and xyCenter. | |
| virtual | ~PsfCandidate () |
| Destructor. | |
| double | getCandidateRating () const |
| Return Cell rating. | |
| std::shared_ptr< afw::table::SourceRecord > | getSource () const |
| Return the original Source. | |
| double | getAmplitude () const |
| Return the best-fit amplitude. | |
| void | setAmplitude (double amplitude) |
| Set the best-fit amplitude. | |
| void | setPsfColorValue (double psfColorValue) |
| Set psf color value to use for PSF fit. | |
| double | getPsfColorValue () const |
| Return psf color value to use for PSF fit. | |
| void | setPsfColorType (std::string psfColorType) |
| Set psf color type to use for PSF fit. | |
| std::string | getPsfColorType () const |
| Return psf color type to use for PSF fit. | |
| double | getVar () const |
| Return the variance in use when fitting this object. | |
| void | setVar (double var) |
| Set the variance to use when fitting this object. | |
| std::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()) | |
| std::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()) | |
| std::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. | |
| double | getChi2 () const |
| Return the candidate's chi^2. | |
| void | setChi2 (double chi2) |
| Set the candidate's chi^2. | |
| float | getXCenter () const |
| Return the object's column-centre. | |
| float | getYCenter () const |
| Return the object's row-centre. | |
| virtual bool | instantiate () |
| Do anything needed to make this candidate usable. | |
| virtual void | setCandidateRating (double) |
| Set the candidate's rating. | |
| int | getId () const |
| Return the candidate's unique ID. | |
| Status | getStatus () const |
| Return the candidate's status. | |
| void | setStatus (Status status) |
| Set the candidate's status. | |
| virtual bool | isBad () const |
| Is this candidate unacceptable? | |
Static Public Member Functions | |
| static int | getBorderWidth () |
| Return the number of pixels being ignored around the candidate image's edge. | |
| static void | setBorderWidth (int border) |
| Set the number of pixels to ignore around the candidate image's edge. | |
| static void | setPixelThreshold (float threshold) |
| Set threshold for rejecting pixels unconnected with the central footprint. | |
| static float | getPixelThreshold () |
| Get threshold for rejecting pixels unconnected with the central footprint. | |
| static void | setMaskBlends (bool doMaskBlends) |
| Set whether blends are masked. | |
| static bool | getMaskBlends () |
| Get whether blends are masked. | |
| static void | setWidth (int width) |
| Set the width of the image that getImage should return. | |
| static int | getWidth () |
| Return the width of the image that getImage should return. | |
| static void | setHeight (int height) |
| Set the height of the image that getImage should return. | |
| static int | getHeight () |
| Return the height of the image that getImage should return. | |
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 87 of file PsfCandidate.h.
|
inlinevirtual |
|
inline |
Return the best-fit amplitude.
Definition at line 117 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 111 of file PsfCandidate.h.
|
inlineinherited |
|
inlinestaticinherited |
Return the height of the image that getImage should return.
Definition at line 143 of file SpatialCell.h.
|
inlineinherited |
|
static |
Get whether blends are masked.
Definition at line 323 of file PsfCandidate.cc.
| std::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.
| std::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.
| std::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 |
Return psf color type to use for PSF fit.
Definition at line 132 of file PsfCandidate.h.
|
inline |
Return psf color value to use for PSF fit.
Definition at line 126 of file PsfCandidate.h.
|
inline |
|
inlineinherited |
|
inline |
Return the variance in use when fitting this object.
Definition at line 135 of file PsfCandidate.h.
|
inlinestaticinherited |
Return the width of the image that getImage should return.
Definition at line 138 of file SpatialCell.h.
|
inlineinherited |
Return the object's column-centre.
Definition at line 88 of file SpatialCell.h.
|
inlineinherited |
|
inlinevirtualinherited |
Do anything needed to make this candidate usable.
Definition at line 94 of file SpatialCell.h.
|
inlinevirtualinherited |
|
inline |
Set the best-fit amplitude.
Definition at line 120 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 141 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.
|
inline |
Set psf color type to use for PSF fit.
Definition at line 129 of file PsfCandidate.h.
|
inline |
Set psf color value to use for PSF fit.
Definition at line 123 of file PsfCandidate.h.
|
inherited |
Set the candidate's status.
Definition at line 52 of file SpatialCell.cc.
|
inline |
Set the variance to use when fitting this object.
Definition at line 138 of file PsfCandidate.h.
|
inlinestaticinherited |
Set the width of the image that getImage should return.
Definition at line 136 of file SpatialCell.h.