lsst.meas.astrom  14.0-7-g0d69b06+3
MatchSrcToCatalogue.h
Go to the documentation of this file.
1 // -*- LSST-C++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2008, 2009, 2010 LSST Corporation.
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 
26 #ifndef MATCH_SRC_TO_CATALOGUE
27 #define MATCH_SRC_TO_CATALOGUE
28 
29 #include <iostream>
30 #include <cmath>
31 
32 #include "lsst/base.h"
34 #include "lsst/afw/table/Match.h"
35 #include "lsst/afw/geom/Angle.h"
36 
37 namespace lsst {
38  namespace afw {
39  namespace image {
40  class Wcs;
41  }
42  }
43 namespace meas {
44 namespace astrom {
45 namespace sip {
46 
59 public:
60 
63 
65  afw::table::SourceCatalog const& imgSet,
67  afw::geom::Angle dist
68  );
69 
70  //Mutators
71  void setDist(afw::geom::Angle dist);
72  void setWcs(CONST_PTR(afw::geom::SkyWcs) wcs);
73  void setCatSrcSet(afw::table::SimpleCatalog const & catSet);
74  void setImgSrcSet(afw::table::SourceCatalog const & srcSet);
75 
76  void findMatches();
77 
78  //Accessors
80 
81 
82 private:
88 
89  void _removeOneToMany();
90  void _removeManyToOne();
91 };
92 
93 
94 
95 }}}}
96 
97 #endif
98 
99 
100 
afw::table::Key< afw::table::Array< ImagePixelT > > image
std::shared_ptr< MatchSrcToCatalogue > Ptr
#define CONST_PTR(...)
Match a SourceSet of objects with known ra/dec with a SourceSet of objects with known xy positions Ta...
std::shared_ptr< MatchSrcToCatalogue const > ConstPtr