2 #if !defined(LSST_MEAS_ASTROM_MATCHOPTIMISTICB_H) 3 #define LSST_MEAS_ASTROM_MATCHOPTIMISTICB_H 9 #include "lsst/pex/config.h" 29 double getX()
const {
return position.getX(); }
30 double getY()
const {
return position.getY(); }
47 : record(record), position(position) {}
76 LSST_CONTROL_FIELD(refFluxField,
std::string,
"name of flux field in reference catalog");
77 LSST_CONTROL_FIELD(sourceFluxField,
std::string,
"name of flux field in source catalog");
78 LSST_CONTROL_FIELD(numBrightStars,
int,
"maximum number of bright reference stars to use");
79 LSST_CONTROL_FIELD(minMatchedPairs,
int,
"minimum number of matches");
80 LSST_CONTROL_FIELD(matchingAllowancePix,
double,
81 "maximum allowed distance between reference objects and sources (pixels)");
82 LSST_CONTROL_FIELD(maxOffsetPix,
double,
"maximum allowed frame translation (pixels)");
83 LSST_CONTROL_FIELD(maxRotationDeg,
double,
"maximum allowed frame rotation (deg)");
84 LSST_CONTROL_FIELD(allowedNonperpDeg,
double,
"allowed non-perpendicularity of x and y axes (deg)");
85 LSST_CONTROL_FIELD(numPointsForShape,
int,
"number of points in a matching shape");
86 LSST_CONTROL_FIELD(maxDeterminant,
double,
"?");
89 : refFluxField(
"r_flux"),
90 sourceFluxField(
"slot_ApFlux_instFlux"),
93 matchingAllowancePix(10.0),
96 allowedNonperpDeg(3.0),
98 maxDeterminant(0.02) {
102 void validate()
const;
130 bool verbose =
false);
bool operator==(RecordProxy const &other) const
bool operator!=(RecordProxy const &other) const
afw::table::ReferenceMatchVector matchOptimisticB(afw::table::SimpleCatalog const &posRefCat, afw::table::SourceCatalog const &sourceCat, MatchOptimisticBControl const &control, afw::geom::SkyWcs const &wcs, int posRefBegInd=0, bool verbose=false)
Match sources to stars in a position reference catalog using optimistic pattern matching B...
std::vector< RecordProxy > ProxyVector
ProxyPair(RecordProxy const &s1, RecordProxy const &s2)
~MatchOptimisticBControl()
RecordProxy(boost::shared_ptr< afw::table::SimpleRecord > record, geom::Point2D const &position)
Construct a RecordProxy.
MatchOptimisticBControl()
ProxyVector makeProxies(afw::table::SourceCatalog const &sourceCat, afw::geom::SkyWcs const &distortedWcs, afw::geom::SkyWcs const &tanWcs)
A wrapper around a SimpleRecord or SourceRecord that allows us to record a pixel position in a way th...
boost::shared_ptr< afw::table::SimpleRecord > record