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))),
110 std::string
const &
name,
111 std::string
const & doc,
206 #endif // !LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED
Defines the fields and offsets for a table.
bool operator!=(CentroidResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
A proxy type for name lookups in a Schema.
ErrElement ySigma
1-Sigma uncertainty on y (sqrt of variance)
Key< T > getY() const
Return the underlying y Key.
table::Key< std::string > name
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
A custom container class for records, based on std::vector.
afw::table::Key< CentroidElement > getY() const
Return a Key for the y coordinate.
afw::table::Schema schema
A mapping between the keys of two Schemas, used to copy data between them.
A reusable struct for centroid measurements.
Centroid const getCentroid() const
Return a Point object containing the measured x and y.
ErrElement xSigma
1-Sigma uncertainty on x (sqrt of variance)
CentroidElement x
x (column) coordinate of the measured position
Implementation of the WCS standard for a any projection.
bool isValid() const
Return True if the centroid key is valid.
void setCentroid(Centroid const ¢roid)
Set the struct fields from the given Point object.
afw::table::CovarianceMatrixKey< ErrElement, 2 > getCentroidErr() const
Return a FunctorKey to just the uncertainty matrix.
CentroidResultKey(afw::table::PointKey< CentroidElement > const ¢roid, afw::table::CovarianceMatrixKey< ErrElement, 2 > const ¢roidErr)
Construct from a pair of Keys.
Key< T > getX() const
Return the underlying x Key.
A coordinate class intended to represent absolute positions.
bool isValid() const
Return True if both the x and y Keys are valid.
CentroidResult()
Constructor; initializes everything to NaN.
afw::geom::Point< CentroidElement > getPoint()
Return the 2D point type corresponding to this result.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
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.
static CentroidResultKey addFields(afw::table::Schema &schema, std::string const &name, std::string const &doc, UncertaintyEnum uncertainty)
Add the appropriate fields to a Schema, and return a CentroidResultKey that manages them...
virtual void set(afw::table::BaseRecord &record, CentroidResult const &value) const
Set a CentroidResult in the given record.
Base class for all records.
afw::table::PointKey< CentroidElement > getCentroid() const
Return a FunctorKey to just the centroid value.
CentroidResult(CentroidElement _x, CentroidElement _y, CentroidCov const &matrix)
Constructor; initializes everything from values.
CentroidCov const getCentroidErr() const
Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y)
A FunctorKey for CentroidResult.
CentroidElement y
y (row) coordinate of the measured position
Eigen::Matrix< ErrElement, 2, 2, Eigen::DontAlign > CentroidCov
bool isValid() const
Return True if all the constituent sigma Keys are valid.
afw::table::PointKey< CentroidElement > _centroid
CentroidResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
CentroidResult(CentroidElement _x, CentroidElement _y, ErrElement _xSigma, ErrElement _ySigma)
Constructor; initializes everything from values.
afw::table::CovarianceMatrixKey< ErrElement, 2 > _centroidErr
bool operator==(CentroidResultKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Keys.
void setCentroidErr(CentroidCov const &matrix)
Set the struct uncertainty fields from the given matrix, with rows and columns ordered (x...
A FunctorKey used to get or set celestial coordiantes from a pair of Angle keys.