26 #ifndef MATCH_SRC_TO_CATALOGUE
27 #define MATCH_SRC_TO_CATALOGUE
32 #include "lsst/base.h"
33 #include "lsst/pex/exceptions/Runtime.h"
34 #include "lsst/afw/table/Match.h"
35 #include "lsst/afw/geom/Angle.h"
61 typedef std::shared_ptr<MatchSrcToCatalogue>
Ptr;
62 typedef std::shared_ptr<MatchSrcToCatalogue const>
ConstPtr;
65 afw::table::SourceCatalog
const& imgSet,
66 CONST_PTR(afw::image::Wcs) wcs,
71 void setDist(afw::geom::Angle dist);
72 void setWcs(CONST_PTR(afw::image::Wcs) wcs);
73 void setCatSrcSet(afw::table::SimpleCatalog
const & catSet);
74 void setImgSrcSet(afw::table::SourceCatalog
const & srcSet);
83 afw::table::SimpleCatalog _catSet;
84 afw::table::SourceCatalog _imgSet;
85 afw::table::ReferenceMatchVector _match;
86 CONST_PTR(lsst::afw::image::Wcs) _wcs;
87 lsst::afw::geom::Angle _dist;
89 void _removeOneToMany();
90 void _removeManyToOne();
std::shared_ptr< MatchSrcToCatalogue > Ptr
void setCatSrcSet(afw::table::SimpleCatalog const &catSet)
void setWcs(boost::shared_ptr< afw::image::Wcs const > wcs)
Set a different Wcs solution.
void setImgSrcSet(afw::table::SourceCatalog const &srcSet)
sourceSet is a vector of pointers to Sources.
Match a SourceSet of objects with known ra/dec with a SourceSet of objects with known xy positions Ta...
MatchSrcToCatalogue(afw::table::SimpleCatalog const &catSet, afw::table::SourceCatalog const &imgSet, boost::shared_ptr< afw::image::Wcs const > wcs, afw::geom::Angle dist)
Create a list of common objects from a catalogue and an image.
afw::table::ReferenceMatchVector getMatches()
std::shared_ptr< MatchSrcToCatalogue const > ConstPtr
void setDist(afw::geom::Angle dist)
Set a new value for the maximum allowed distance between two matching objects (in ra/dec space) ...