75 if (!_imgSet.
getTable()->getCentroidSlot().isValid()) {
77 "SourceTable passed to MatchSrcToCatalogue does not have its centroid slot set.");
81 i->updateCoord(*_wcs);
93 void MatchSrcToCatalogue::_removeOneToMany() {
98 if (_match[i].first == _match[j].first) {
100 if (_match[i].distance < _match[j].distance) {
117 void MatchSrcToCatalogue::_removeManyToOne() {
122 if (_match[i].second == _match[j].second) {
124 if (_match[i].distance < _match[j].distance) {
#define LSST_EXCEPT(type,...)
table::Key< table::Array< std::uint8_t > > wcs
std::shared_ptr< Table > getTable() const
Base::const_iterator const_iterator
MatchSrcToCatalogue(afw::table::SimpleCatalog const &catSet, afw::table::SourceCatalog const &imgSet, boost::shared_ptr< afw::geom::SkyWcs const > wcs, geom::Angle dist)
Create a list of common objects from a catalogue and an image.
void setWcs(boost::shared_ptr< afw::geom::SkyWcs const > wcs)
Set a different Wcs solution.
afw::table::ReferenceMatchVector getMatches()
void setDist(geom::Angle dist)
Set a new value for the maximum allowed distance between two matching objects (in ra/dec space)
void setCatSrcSet(afw::table::SimpleCatalog const &catSet)
void setImgSrcSet(afw::table::SourceCatalog const &srcSet)
sourceSet is a vector of pointers to Sources.
std::vector< Match< typename Cat1::Record, typename Cat2::Record > > matchRaDec(Cat1 const &cat1, Cat2 const &cat2, lsst::geom::Angle radius, MatchControl const &mc=MatchControl())