2 #if !defined(LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H) 3 #define LSST_MEAS_ALGORITHMS_PSFCANDIDATE_H 48 namespace algorithms {
56 template <
typename PixelT>
75 _parentExposure(parentExposure),
92 _parentExposure(parentExposure),
157 extractImage(
unsigned int width,
unsigned int height)
const;
167 static int _defaultWidth;
168 static float _pixelThreshold;
169 static bool _doMaskBlends;
177 template <
typename PixelT>
183 return std::make_shared<PsfCandidate<PixelT>>(
source,
image);
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.
void setAmplitude(double amplitude)
Set the best-fit amplitude.
static void setMaskBlends(bool doMaskBlends)
Set whether blends are masked.
std::shared_ptr< PsfCandidate< PixelT > > Ptr
std::shared_ptr< const PsfCandidate< PixelT > > ConstPtr
A class to contain the data, WCS, and other information needed to describe an image of the sky...
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.
static float getPixelThreshold()
Get threshold for rejecting pixels unconnected with the central footprint.
#define CONST_PTR(...)
A shared pointer to a const object.
static void setBorderWidth(int border)
Set the number of pixels to ignore around the candidate image's edge.
boost::shared_ptr< afw::table::SourceRecord > getSource() const
Return the original Source.
virtual ~PsfCandidate()
Destructor.
double getVar() const
Return the variance in use when fitting this object.
double getAmplitude() const
Return the best-fit amplitude.
A base class for image defects.
SpatialCellImageCandidate(float const xCenter, float const yCenter)
ctor
std::vector< Ptr > PtrList
static void setPixelThreshold(float threshold)
Set threshold for rejecting pixels unconnected with the 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...
A class to manipulate images, masks, and variance as a single object.
static int getBorderWidth()
Return the number of pixels being ignored around the candidate image's edge.
const char * source()
Source function that allows astChannel to source from a Stream.
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.
afw::image::MaskedImage< PixelT > MaskedImageT
Base class for candidate objects in a SpatialCell that are able to return an Image of some sort (e...
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.
Record class that contains measurements made on a single exposure.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
static bool getMaskBlends()
Get whether blends are masked.
Class stored in SpatialCells for spatial Psf fitting.