24 #ifndef LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED 25 #define LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED 55 xErr(
std::sqrt(matrix(0, 0))),
56 yErr(
std::sqrt(matrix(1, 1))),
57 x_y_Cov(matrix(0, 1)) {}
61 : x(x_), y(y_), xErr(xErr_), yErr(yErr_), x_y_Cov(0.0) {}
110 : _centroid(centroid), _centroidErr(centroidErr) {}
132 return _centroid == other._centroid && _centroidErr == other._centroidErr;
138 bool isValid()
const {
return _centroid.isValid() && _centroidErr.isValid(); }
209 double maxDistFromPeak = -1.0);
218 bool _doFootprintCheck;
219 double _maxDistFromPeak;
229 #endif // !LSST_MEAS_BASE_CentroidUtilities_h_INCLUDED Defines the fields and offsets for a table.
ErrElement yErr
standard deviation of y
Centroid const getCentroid() const
Return a Point object containing the measured x and y.
A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixel...
A proxy type for name lookups in a Schema.
geom::Point< CentroidElement > getPoint()
Return the 2D point type corresponding to this result.
The photometric calibration of an exposure.
UncertaintyEnum
An enum used to specify how much uncertainty information measurement algorithms provide.
A mapping between the keys of two Schemas, used to copy data between them.
A coordinate class intended to represent absolute positions.
afw::table::PointKey< CentroidElement > getCentroid() const
Return a FunctorKey to just the centroid value.
A reusable struct for centroid measurements.
bool isValid() const
Return True if the centroid key is valid.
CentroidResult(CentroidElement x_, CentroidElement y_, CentroidCov const &matrix)
Constructor; initializes everything from values.
ErrElement xErr
standard deviation of x
afw::table::CovarianceMatrixKey< ErrElement, 2 > getCentroidErr() const
Return a FunctorKey to just the uncertainty matrix.
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.
table::Key< table::Array< std::uint8_t > > wcs
CentroidResult()
Constructor; initializes everything to NaN.
Eigen::Matrix< ErrElement, 2, 2, Eigen::DontAlign > CentroidCov
A base class for image defects.
UnitVector3d centroid(VertexIterator const begin, VertexIterator const end)
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.
Base class for all records.
CentroidResult(CentroidElement x_, CentroidElement y_, ErrElement xErr_, ErrElement yErr_)
Constructor; initializes everything from values.
A FunctorKey for CentroidResult.
CentroidElement y
y (row) coordinate of the measured position
CentroidResultKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
ItemVariant const * other
Record class that contains measurements made on a single exposure.
CentroidCov const getCentroidErr() const
Return the 2x2 symmetric covariance matrix, with rows and columns ordered (x, y)
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
Implementation of the Photometric Calibration class.
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 coordinates from a pair of lsst::geom::Angle keys...