aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp.test/src/features_Harris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp.test/src/features_Harris.cpp')
-rw-r--r--meowpp.test/src/features_Harris.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/meowpp.test/src/features_Harris.cpp b/meowpp.test/src/features_Harris.cpp
index f3c2c10..eeb2f2d 100644
--- a/meowpp.test/src/features_Harris.cpp
+++ b/meowpp.test/src/features_Harris.cpp
@@ -14,7 +14,7 @@ class Harris: public FeaturePointsDetectors {
std::string description() const {
return "Harris-Corner-Detect";
}
-
+
Usage usage() const {
Usage ret;
ret.optionAdd("harris-k",
@@ -55,7 +55,7 @@ class Harris: public FeaturePointsDetectors {
false);
return ret;
}
-
+
bool usage(meow::Usage const& usg) {
double K = atof(usg.optionValue("harris-k", 0).c_str());
double R = atof(usg.optionValue("harris-r", 0).c_str());
@@ -73,11 +73,15 @@ class Harris: public FeaturePointsDetectors {
detector_.paramB(B);
return true;
}
-
+
FeaturePoints detect(Bitmap<RGBf_Space> const& bmp) {
return detector_.detect(bmp);
}
+ size_t dSize() const {
+ return detector_.descriptionDimension();
+ }
+
std::string type() const { return std::string("Harris"); }
ObjBase* create() const { return new Harris(); }
};