LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
#include <CentroidUtilities.h>
Public Member Functions | |
CentroidChecker (afw::table::Schema &schema, std::string const &name, bool inside=true, double maxDistFromPeak=-1.0) | |
Check source record for an centroid algorithm called name, noting if the centroid already set by the algorithm is outside the footprint attached to the record. More... | |
bool | operator() (afw::table::SourceRecord &record) const |
Set the centroid to the first footprint if the centroid is either more than _dist pixels from the footprint center, or if it is outside the footprint. More... | |
Definition at line 190 of file CentroidUtilities.h.
lsst::meas::base::CentroidChecker::CentroidChecker | ( | afw::table::Schema & | schema, |
std::string const & | name, | ||
bool | inside = true , |
||
double | maxDistFromPeak = -1.0 |
||
) |
Check source record for an centroid algorithm called name, noting if the centroid already set by the algorithm is outside the footprint attached to the record.
If that is the case, we should: (1) set the general failure flag for the algorithm (2) set the algorithmName + "_flag_resetToPeak" flag (3) change the value of the centroid to the footprint Peak
Secondly, check to see if the centroid is more than "dist" pixels from the footprint peak, and similarly modify the centroi value to the peak in that case
[in,out] | schema | Schema to which the flag_resetToPeak is to be added |
[in] | name | The name of the algorithm we will be checking |
[in] | doFootprintCheck | Check if centroid is within footprint |
[in] | maxDistFromPeak | Check if centroid is more than dist from footprint peak |
Definition at line 174 of file CentroidUtilities.cc.
bool lsst::meas::base::CentroidChecker::operator() | ( | afw::table::SourceRecord & | record | ) | const |
Set the centroid to the first footprint if the centroid is either more than _dist pixels from the footprint center, or if it is outside the footprint.
Definition at line 186 of file CentroidUtilities.cc.