aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp.test/inc
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-06-24 14:23:04 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-06-24 14:23:04 +0800
commit0667012e725099e13045ebf4f2f2bee5bd049edc (patch)
tree62dd8fb100d493323f24f6e54cf403f2c8ad18c4 /meowpp.test/inc
parenta9955a1a51df2b268da4d28f9ad10dbaf9815634 (diff)
downloadmeow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.gz
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.bz2
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.lz
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.xz
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.zst
meow-0667012e725099e13045ebf4f2f2bee5bd049edc.zip
add test code "feature"
Diffstat (limited to 'meowpp.test/inc')
-rw-r--r--meowpp.test/inc/autostitch.h3
-rw-r--r--meowpp.test/inc/features__.h25
2 files changed, 26 insertions, 2 deletions
diff --git a/meowpp.test/inc/autostitch.h b/meowpp.test/inc/autostitch.h
index 68df9c9..11039bd 100644
--- a/meowpp.test/inc/autostitch.h
+++ b/meowpp.test/inc/autostitch.h
@@ -29,8 +29,7 @@ class MyFeaturePointsDetector: public meow::ObjBase {
public:
virtual meow::Usage usage() const = 0;
virtual bool usage(meow::Usage const& usg) = 0;
- virtual FeaturePoints detect(meow::Bitmap<meow::RGBf_Space> const& bmp)
- = 0;
+ virtual FeaturePoints detect(meow::Bitmap<meow::RGBf_Space> const& bmp) = 0;
};
class MyK_Match {
diff --git a/meowpp.test/inc/features__.h b/meowpp.test/inc/features__.h
new file mode 100644
index 0000000..85c136b
--- /dev/null
+++ b/meowpp.test/inc/features__.h
@@ -0,0 +1,25 @@
+#ifndef features_H__
+#define features_H__
+
+#include "meowpp/Usage.h"
+#include "meowpp/oo/ObjBase.h"
+#include "meowpp/gra/FeaturePoint.h"
+#include "meowpp/gra/Bitmap.h"
+#include "meowpp/colors/RGB_Space.h"
+
+#include <vector>
+
+typedef std::vector<meow::FeaturePoint<double, double> > FeaturePoints;
+
+class FeaturePointsDetectors: public meow::ObjBase {
+public:
+ virtual ~FeaturePointsDetectors() { }
+ virtual std::string description() const = 0;
+ virtual meow::Usage usage( ) const = 0;
+ virtual bool usage(meow::Usage const& usg) = 0;
+ virtual FeaturePoints detect(meow::Bitmap<meow::RGBf_Space> const& bmp) = 0;
+};
+
+static int const kFPSD_ID = 123;
+
+#endif // features_H__