#include "testSpatialCell.h"
ExampleCandidate::ExampleCandidate(
float const xCenter,
float const yCenter,
ExampleCandidate::MaskedImageT::ConstPtr parent,
) :
lsst::afw::math::SpatialCellMaskedImageCandidate<
PixelT>(xCenter, yCenter), _parent(parent),
_bbox(bbox) {
}
double ExampleCandidate::getCandidateRating() const {
return (*_parent->getImage())(getXCenter(), getYCenter());
}
ExampleCandidate::MaskedImageT::ConstPtr ExampleCandidate::getMaskedImage() const {
if (_image.get() == NULL) {
}
return _image;
}