2 #if !defined(LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H)
3 #define LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H
47 namespace algorithms {
55 template <
typename PixelT>
59 typedef std::shared_ptr<PsfCandidate<PixelT> >
Ptr;
60 typedef std::shared_ptr<const PsfCandidate<PixelT> >
ConstPtr;
127 unsigned int buffer) const;
155 std::
string const algorithm,
180 template <typename
PixelT>
186 return std::make_shared< PsfCandidate<PixelT> >(source,
image);
void setAmplitude(double amplitude)
Set the best-fit amplitude.
afw::geom::Point2D _xyCenter
std::shared_ptr< PsfCandidate< PixelT > > Ptr
std::shared_ptr< const PsfCandidate< PixelT > > ConstPtr
static void setPixelThreshold(float threshold)
Set 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, double xCenter, double yCenter)
Construct a PsfCandidate from a specified source, image and xyCenter.
double getCandidateRating() const
Return Cell rating.
std::shared_ptr< afw::image::MaskedImage< PixelT > > _image
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< 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...
table::Key< table::Array< Kernel::Pixel > > image
boost::shared_ptr< afw::image::MaskedImage< PixelT > > extractImage(unsigned int width, unsigned int height) const
Extract an image of the candidate.
virtual ~PsfCandidate()
Destructor.
void ImageT ImageT int float saturatedPixelValue int const width
SpatialCellImageCandidate(float const xCenter, float const yCenter)
ctor
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.
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.
static bool _doMaskBlends
Mask blends when extracting?
void ImageT ImageT int float saturatedPixelValue int const height
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)
Construct a PsfCandidate from a specified source and image.
Base class for candidate objects in a SpatialCell that are able to return an Image of some sort (e...
static int getBorderWidth()
Return the number of pixels being ignored around the candidate image's edge.
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.
#define CONST_PTR(...)
A shared pointer to a const object.
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.