summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-02 09:14:41 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-02 09:14:41 +0200
commitf2a9e9d553b5223392ee7b18dd37c8aaeb627601 (patch)
tree04d3ac5cfafb3893ad774fc19c2b582e3c0fbe83
parent262a592405e86e44d8e0d653f2964ef6f3d9a430 (diff)
downloadcv-f2a9e9d553b5223392ee7b18dd37c8aaeb627601.tar.gz
cv-f2a9e9d553b5223392ee7b18dd37c8aaeb627601.tar.bz2
cv-f2a9e9d553b5223392ee7b18dd37c8aaeb627601.zip
harris: Check for n=2 neighbours
-rw-r--r--harris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/harris.c b/harris.c
index 0fdefb7..50d7ff9 100644
--- a/harris.c
+++ b/harris.c
@@ -141,7 +141,7 @@ check_neighbours(struct mat2 *m, int x, int y, int width, int height)
{
int i, j;
gboolean max = TRUE;
- int n = 3;
+ int n = 2;
for (j = MAX(0, y-n); j < MIN(y+n, height-1); ++j) {
for (i = MAX(0, x-n); i < MIN(x+n, width-1); ++i) {