2 #if !defined(LSST_MEAS_ASTROM_MATCHOPTIMISTICB_H)
3 #define LSST_MEAS_ASTROM_MATCHOPTIMISTICB_H
28 double getX()
const {
return position.getX(); }
48 ) : record(record), position(position) {}
76 pa = std::atan2(y2-y1, x2-x1);
86 "maximum allowed distance between reference objects and sources (pixels)");
135 MatchOptimisticBControl
const &control,
double allowedNonperpDeg
"allowed non-perpendicularity of x and y axes (deg)" ;
bool operator!=(RecordProxy const &other) const
ProxyPair(RecordProxy const &s1, RecordProxy const &s2)
std::string sourceFluxField
"name of flux field in source catalog" ;
bool operator==(RecordProxy const &other) const
Point< double, 2 > Point2D
std::vector< ReferenceMatch > ReferenceMatchVector
Implementation of the WCS standard for a any projection.
#define LSST_CONTROL_FIELD(NAME, TYPE, DOC)
boost::shared_ptr< lsst::afw::table::SimpleRecord > record
double maxRotationDeg
"maximum allowed frame rotation (deg)" ;
lsst::afw::table::ReferenceMatchVector matchOptimisticB(lsst::afw::table::SimpleCatalog const &posRefCat, lsst::afw::table::SourceCatalog const &sourceCat, MatchOptimisticBControl const &control, afw::image::Wcs const &wcs, int posRefBegInd=0, bool verbose=false)
int numBrightStars
"maximum number of bright reference stars to use" ;
MatchOptimisticBControl()
double maxDeterminant
"?" ;
double maxOffsetPix
"maximum allowed frame translation (pixels)" ;
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
double matchingAllowancePix
"maximum allowed distance between reference objects and sources (pixels)" ;
int minMatchedPairs
"minimum number of matches" ;
std::string refFluxField
"name of flux field in reference catalog" ;
lsst::afw::geom::Point2D position
std::vector< RecordProxy > ProxyVector
~MatchOptimisticBControl()
ProxyVector makeProxies(lsst::afw::table::SourceCatalog const &sourceCat, afw::image::Wcs const &distortedWcs, afw::image::Wcs const &tanWcs)
Record class that must contain a unique ID field and a celestial coordinate field.
int numPointsForShape
"number of points in a matching shape" ;
RecordProxy(boost::shared_ptr< lsst::afw::table::SimpleRecord > record, lsst::afw::geom::Point2D const &position)