lsst.meas.algorithms
20.0.0-14-g05f4b37e+806b495718
|
Go to the documentation of this file.
2 #if !defined(LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H)
3 #define LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H
46 namespace algorithms {
54 template <
typename PixelT>
73 _parentExposure(parentExposure),
90 _parentExposure(parentExposure),
155 extractImage(
unsigned int width,
unsigned int height)
const;
165 static int _defaultWidth;
166 static float _pixelThreshold;
167 static bool _doMaskBlends;
175 template <
typename PixelT>
181 return std::make_shared<PsfCandidate<PixelT>>(
source,
image);
static bool getMaskBlends()
Get whether blends are masked.
void setVar(double var)
Set the variance to use when fitting this object.
static void setMaskBlends(bool doMaskBlends)
Set whether blends are masked.
SpatialCellImageCandidate(float const xCenter, float const yCenter)
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.
virtual ~PsfCandidate()
Destructor.
double getCandidateRating() const
Return Cell rating.
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.
void setAmplitude(double amplitude)
Set the best-fit amplitude.
afw::image::MaskedImage< PixelT > MaskedImageT
double getAmplitude() const
Return the best-fit amplitude.
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.
std::vector< Ptr > PtrList
double getVar() const
Return the variance in use when fitting this object.
std::shared_ptr< PsfCandidate< PixelT > > makePsfCandidate(boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > > image)
Return a PsfCandidate of the right sort.
std::shared_ptr< const PsfCandidate< PixelT > > ConstPtr
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...
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.
static float getPixelThreshold()
Get threshold for rejecting pixels unconnected with the central footprint.
Class stored in SpatialCells for spatial Psf fitting.
static void setPixelThreshold(float threshold)
Set threshold for rejecting pixels unconnected with the central footprint.
boost::shared_ptr< afw::table::SourceRecord > getSource() const
Return the original Source.
std::shared_ptr< PsfCandidate< PixelT > > Ptr