aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/gra/FeaturePointsMatch.h
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-06-19 07:25:48 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-06-19 07:25:48 +0800
commitfe926756145c5e5cf5f315af0acdbfd85ba27543 (patch)
tree4d75f94b87fd6d60262f2377d92f5896faf1be7d /meowpp/gra/FeaturePointsMatch.h
parentb2b55d8c642524274d8115d5b1863e1a40715887 (diff)
downloadmeow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.gz
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.bz2
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.lz
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.xz
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.tar.zst
meow-fe926756145c5e5cf5f315af0acdbfd85ba27543.zip
x
Diffstat (limited to 'meowpp/gra/FeaturePointsMatch.h')
-rw-r--r--meowpp/gra/FeaturePointsMatch.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/meowpp/gra/FeaturePointsMatch.h b/meowpp/gra/FeaturePointsMatch.h
index 8b05632..ffdbe53 100644
--- a/meowpp/gra/FeaturePointsMatch.h
+++ b/meowpp/gra/FeaturePointsMatch.h
@@ -3,32 +3,15 @@
#include "FeaturePoint.h"
+#include "../utility.h"
#include "../oo/ObjBase.h"
-#include <utility>
#include <cstdlib>
namespace meow {
-struct FeaturePointIndexPair {
- std::pair<size_t, size_t> from;
- std::pair<size_t, size_t> to;
-
- FeaturePointIndexPair() {
- }
- FeaturePointIndexPair(size_t ff, size_t fs,
- size_t tf, size_t ts) {
- from.first = ff;
- from.second = fs;
- to.first = tf;
- to.second = ts;
- }
- bool operator==(FeaturePointIndexPair const& p) const {
- return (from == p.from && to == p.to);
- }
-};
-
-typedef std::vector<FeaturePointIndexPair> FeaturePointIndexPairs;
+typedef PairToPair<size_t, size_t, size_t, size_t> FeaturePointIndexPair ;
+typedef std::vector<FeaturePointIndexPair> FeaturePointIndexPairs;
template<class Scalar, class Description>
class FeaturePointsMatch: public ObjBase {
@@ -58,6 +41,6 @@ public:
FeaturePointss const& fpss) const = 0;
};
-}
+} // meow
#endif // gra_FeaturePointsMatch_H__