aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp.test/src/autostitch_K_Match.cpp
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-06-01 14:16:38 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-06-01 14:16:38 +0800
commitc60dba253906a30d3042f1dc4e9b7fe38f053fbe (patch)
tree57018f05908f0edef30cba255d46688ebfd5cd85 /meowpp.test/src/autostitch_K_Match.cpp
parent8bc9f2e8496c0c021b80eb0fb21e828f5900f08d (diff)
downloadmeow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar.gz
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar.bz2
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar.lz
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar.xz
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.tar.zst
meow-c60dba253906a30d3042f1dc4e9b7fe38f053fbe.zip
add test...
Diffstat (limited to 'meowpp.test/src/autostitch_K_Match.cpp')
-rw-r--r--meowpp.test/src/autostitch_K_Match.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/meowpp.test/src/autostitch_K_Match.cpp b/meowpp.test/src/autostitch_K_Match.cpp
new file mode 100644
index 0000000..d2fe8c6
--- /dev/null
+++ b/meowpp.test/src/autostitch_K_Match.cpp
@@ -0,0 +1,36 @@
+#include "autostitch.h"
+
+#include "meowpp/utility.h"
+
+#include "meowpp/gra/FeaturePointsMatch_K_Match.h"
+
+#include "meowpp/Usage.h"
+
+using namespace meow;
+
+MyK_Match::MyK_Match(){
+}
+
+
+MyK_Match::~MyK_Match(){
+}
+
+
+Usage MyK_Match::usage() const{
+ Usage usg;
+ usg.optionAdd('k',
+ "k nearest neighbors",
+ "<number>", stringPrintf("%d", 5),
+ false);
+ return usg;
+}
+
+bool MyK_Match::usage(meow::Usage const& usg){
+ _body.paramK(atoi(usg.optionValue('k', 0).c_str()));
+ return true;
+}
+
+FeaturePointIndexPairs MyK_Match::match(
+ std::vector<std::vector<FeaturePoint<double, double> > > const& fp) {
+ return _body.match(fp[0][0].description().dimension(), fp);
+}