24 #ifndef LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED 25 #define LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED 31 namespace lsst {
namespace meas {
namespace base {
50 xSigma(
std::sqrt(matrix(0, 0))),
51 ySigma(
std::sqrt(matrix(1, 1))),
123 _centroid(centroid), _centroidErr(centroidErr)
146 return _centroid == other._centroid && _centroidErr == other._centroidErr;
152 bool isValid()
const {
return _centroid.isValid() && _centroidErr.isValid(); }
234 bool _doFootprintCheck;
235 double _maxDistFromPeak;
243 #endif // !LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED
Centroid const getCentroid() const
Return a Point object containing the measured x and y.
ErrElement ySigma
1-Sigma uncertainty on y (sqrt of variance)
afw::table::CovarianceMatrixKey< ErrElement, 2 > getCentroidErr() const
Return a FunctorKey to just the uncertainty matrix.
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
afw::table::Schema schema
afw::table::PointKey< CentroidElement > getCentroid() const
Return a FunctorKey to just the centroid value.
A reusable struct for centroid measurements.
ErrElement xSigma
1-Sigma uncertainty on x (sqrt of variance)
bool isValid() const
Return True if the centroid key is valid.
CentroidResult(CentroidElement x_, CentroidElement y_, CentroidCov const &matrix)
Constructor; initializes everything from values.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
CentroidElement x
x (column) coordinate of the measured position
afw::table::Key< CentroidElement > getY() const
Return a Key for the y coordinate.
void setCentroid(Centroid const ¢roid)
Set the struct fields from the given Point object.
bool operator!=(CentroidResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
CentroidResultKey(afw::table::PointKey< CentroidElement > const ¢roid, afw::table::CovarianceMatrixKey< ErrElement, 2 > const ¢roidErr)
Construct from a pair of Keys.
CentroidResult(CentroidElement x_, CentroidElement y_, ErrElement xSigma_, ErrElement ySigma_)
Constructor; initializes everything from values.
CentroidResult()
Constructor; initializes everything to NaN.
afw::geom::Point< CentroidElement > getPoint()
Return the 2D point type corresponding to this result.
ErrElement x_y_Cov
x,y term in the uncertainty convariance matrix
afw::table::Key< CentroidElement > getX() const
Return a Key for the x coordinate.
A FunctorKey for CentroidResult.
CentroidElement y
y (row) coordinate of the measured position
Eigen::Matrix< ErrElement, 2, 2, Eigen::DontAlign > CentroidCov
CentroidResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
CentroidCov const getCentroidErr() const
Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y)
void setCentroidErr(CentroidCov const &matrix)
Set the struct uncertainty fields from the given matrix, with rows and columns ordered (x...