2 #if !defined(LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H)
3 #define LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H
36 #include "boost/make_shared.hpp"
48 namespace algorithms {
56 template <
typename PixelT>
65 typedef boost::shared_ptr<PsfCandidate<PixelT> >
Ptr;
66 typedef boost::shared_ptr<const PsfCandidate<PixelT> >
ConstPtr;
133 unsigned int buffer) const;
161 std::
string const algorithm,
166 extractImage(
unsigned int width,
unsigned int height) const;
186 template <typename
PixelT>
192 return boost::make_shared< PsfCandidate<PixelT> >(source,
image);
void setAmplitude(double amplitude)
Set the best-fit amplitude.
afw::geom::Point2D _xyCenter
static void setPixelThreshold(float threshold)
PsfCandidate(boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure, double xCenter, double yCenter)
double getCandidateRating() const
static void setMaskBlends(bool doMaskBlends)
Set whether blends are masked.
boost::shared_ptr< afw::table::SourceRecord > getSource() const
Return the original Source.
A class to contain the data, WCS, and other information needed to describe an image of the sky...
static float _pixelThreshold
Threshold for masking pixels unconnected with central footprint.
boost::shared_ptr< PsfCandidate< PixelT > > makePsfCandidate(boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > > image)
boost::shared_ptr< afw::image::MaskedImage< PixelT > const > getMaskedImage() const
boost::shared_ptr< PsfCandidate< PixelT > > Ptr
boost::shared_ptr< const PsfCandidate< PixelT > > ConstPtr
table::Key< table::Array< Kernel::Pixel > > image
boost::shared_ptr< afw::image::MaskedImage< PixelT > > extractImage(unsigned int width, unsigned int height) const
virtual ~PsfCandidate()
Destructor.
static bool getMaskBlends()
Get whether blends are masked.
double getAmplitude() const
Return the best-fit amplitude.
A class to manipulate images, masks, and variance as a single object.
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 > > _offsetImage
void setVar(double var)
Set the variance to use when fitting this object.
static bool _doMaskBlends
Mask blends when extracting?
static float getPixelThreshold()
Get threshold for rejecting pixels unconnected with the central footprint.
PsfCandidate(boost::shared_ptr< afw::table::SourceRecord > const &source, boost::shared_ptr< afw::image::Exposure< PixelT > const > parentExposure)
static int getBorderWidth()
Return the number of pixels being ignored around the candidate image's edge.
SpatialCellMaskedImageCandidate(float const xCenter, float const yCenter)
ctor
Class to ensure constraints for spatial modeling.
Point< double, 2 > Point2D
Record class that contains measurements made on a single exposure.
boost::shared_ptr< lsst::afw::image::Exposure< PixelT > const > _parentExposure
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 ce...
std::vector< Ptr > PtrList
boost::shared_ptr< afw::table::SourceRecord > _source
static void setBorderWidth(int border)
Set the number of pixels to ignore around the candidate image's edge.
Class stored in SpatialCells for spatial Psf fitting.
lsst::afw::image::MaskedImage< PixelT > MaskedImageT
double getVar() const
Return the variance in use when fitting this object.