lsst.meas.base  14.0-17-g4f4ea82+4
Public Member Functions | List of all members
lsst::meas::base::CentroidChecker Class Reference

#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...
 

Detailed Description

Definition at line 204 of file CentroidUtilities.h.

Constructor & Destructor Documentation

◆ CentroidChecker()

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

Parameters
[in,out]schemaSchema to which the flag_resetToPeak is to be added
[in]nameThe name of the algorithm we will be checking
[in]doFootprintCheckCheck if centroid is within footprint
[in]maxDistFromPeakCheck if centroid is more than dist from footprint peak

Definition at line 193 of file CentroidUtilities.cc.

Member Function Documentation

◆ operator()()

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 209 of file CentroidUtilities.cc.


The documentation for this class was generated from the following files: