diff options
author | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-19 07:25:48 +0800 |
---|---|---|
committer | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-19 07:25:48 +0800 |
commit | fe926756145c5e5cf5f315af0acdbfd85ba27543 (patch) | |
tree | 4d75f94b87fd6d60262f2377d92f5896faf1be7d /meowpp/gra/FeaturePointsMatch.h | |
parent | b2b55d8c642524274d8115d5b1863e1a40715887 (diff) | |
download | meow-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.h | 25 |
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__ |