lsst.afw
tickets.DM-23835-g31c64b24f1
|
Go to the documentation of this file.
25 #ifndef LSST_AFW_TABLE_MATCH_H
26 #define LSST_AFW_TABLE_MATCH_H
30 #include "lsst/pex/config.h"
49 "Return only the closest match if more than one is found "
52 "Produce symmetric matches (default: true):\n"
53 "i.e. if (s1, s2, d) is reported, then so is (s2, s1, d)");
55 "Include failed matches (i.e. one 'match' is NULL) "
66 template <
typename Record1,
typename Record2>
77 template <
typename R1,
typename R2>
81 typedef Match<SimpleRecord, SimpleRecord>
SimpleMatch;
83 typedef Match<SourceRecord, SourceRecord>
SourceMatch;
99 MatchControl
const &mc =
111 MatchControl
const &mc =
128 [[deprecated(
"Use overloads that take `MatchControl` instead. To be removed after 20.0.0.")]]
144 [[deprecated(
"Use overloads that take `MatchControl` instead. To be removed after 20.0.0.")]]
156 template <
typename Cat1,
typename Cat2>
161 MatchControl
const &mc =
172 template <
typename Cat>
176 MatchControl
const &mc =
195 template <
typename Cat1,
typename Cat2>
196 [[deprecated(
"Use overloads that take `MatchControl` instead. To be removed after 20.0.0.")]]
214 template <
typename Cat>
215 [[deprecated(
"Use overloads that take `MatchControl` instead. To be removed after 20.0.0.")]]
227 template <
typename Record1,
typename Record2>
249 template <
typename Cat1,
typename Cat2>
257 #endif // #ifndef LSST_AFW_TABLE_MATCH_H
bool symmetricMatch
"Produce symmetric matches (default: true):\n" "i.e. if (s1, s2, d) is reported, then so is (s2,...
std::vector< Match< typename Cat1::Record, typename Cat2::Record > > matchRaDec(Cat1 const &cat1, Cat2 const &cat2, lsst::geom::Angle radius, MatchControl const &mc=MatchControl())
Compute all tuples (s1,s2,d) where s1 belings to cat1, s2 belongs to cat2 and d, the distance between...
std::vector< Match< typename Cat1::Record, typename Cat2::Record > > unpackMatches(BaseCatalog const &matches, Cat1 const &cat1, Cat2 const &cat2)
Reconstruct a MatchVector from a BaseCatalog representation of the matches and a pair of catalogs.
std::shared_ptr< Record2 > second
Match< SimpleRecord, SourceRecord > ReferenceMatch
BaseCatalog packMatches(std::vector< Match< Record1, Record2 > > const &matches)
Return a table representation of a MatchVector that can be used to persist it.
std::vector< SimpleMatch > SimpleMatchVector
SortedCatalogT< SourceRecord > SourceCatalog
SourceMatchVector matchXy(SourceCatalog const &cat1, SourceCatalog const &cat2, double radius, MatchControl const &mc=MatchControl())
Compute all tuples (s1,s2,d) where s1 belings to cat1, s2 belongs to cat2 and d, the distance between...
bool findOnlyClosest
"Return only the closest match if more than one is found " "(default: true)" ;
Match< SimpleRecord, SimpleRecord > SimpleMatch
Lightweight representation of a geometric match between two records.
A base class for image defects.
std::shared_ptr< Record1 > first
Match(std::shared_ptr< Record1 > const &r1, std::shared_ptr< Record2 > const &r2, double dist)
CatalogT< BaseRecord > BaseCatalog
std::vector< SourceMatch > SourceMatchVector
Match< SourceRecord, SourceRecord > SourceMatch
bool includeMismatches
"Include failed matches (i.e. one 'match' is NULL) " "(default: false)" ;
const ItemVariant * other
Pass parameters to algorithms that match list of sources.
Match(Match< R1, R2 > const &other)
std::vector< ReferenceMatch > ReferenceMatchVector