Function lsst::afw::table::matchXy(SourceCatalog const&, SourceCatalog const&, double, bool)¶
Function Documentation¶
-
SourceMatchVector
lsst::afw::table
::
matchXy
(SourceCatalog const &cat1, SourceCatalog const &cat2, double radius, bool closest) Compute all tuples (s1,s2,d) where s1 belings to
cat1
, s2 belongs tocat2
and d, the distance between s1 and s2, in pixels, is at mostradius
. If cat1 and cat2 are identical, then this call is equivalent tomatchXy(cat1,radius)
. The match is performed in pixel space (2d cartesian).- Parameters
[in] cat1
: first catalog[in] cat2
: second catalog[in] radius
: match radius (pixels)[in] closest
: if true then just return the closest match