aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp/gra/FeaturePointsDetector_Harris.h
diff options
context:
space:
mode:
Diffstat (limited to 'meowpp/gra/FeaturePointsDetector_Harris.h')
-rw-r--r--meowpp/gra/FeaturePointsDetector_Harris.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/meowpp/gra/FeaturePointsDetector_Harris.h b/meowpp/gra/FeaturePointsDetector_Harris.h
index e7c6b91..8f0f8fe 100644
--- a/meowpp/gra/FeaturePointsDetector_Harris.h
+++ b/meowpp/gra/FeaturePointsDetector_Harris.h
@@ -16,7 +16,7 @@
namespace meow {
/*!
- * @brief Harris corner detect
+ * @brief Harris-Corner-Detect algorithm for finding feature points.
*
* @author cat_leopard
*/
@@ -190,10 +190,12 @@ public:
Ixx.gaussianed(self->sizeW_, self->sizeW_);
Iyy.gaussianed(self->sizeW_, self->sizeW_);
Ixy.gaussianed(self->sizeW_, self->sizeW_);
+ input_gx.clear();
+ input_gy.clear();
// filter too flat or on edge
- Bitmap<double> R(input.height(), input.width(), 0.0);
- Bitmap<bool> good(input.height(), input.width(), false);
+ Bitmap<double> R(input.height(), input.width(), 0.0);
+ Bitmap<bool> good(input.height(), input.width(), false);
ssize_t b = self->boundB_;
for (ssize_t y = b, Y = -b + input.height(); y < Y; y++) {
for (ssize_t x = b, X = -b + input.width(); x < X; x++) {
@@ -204,6 +206,9 @@ public:
good.pixel(y, x, (r >= self->thresholdR_));
}
}
+ Ixx.clear();
+ Iyy.clear();
+ Ixy.clear();
// find union neighbor
DisjointSet dsj(input.size());