summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-02 09:15:20 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-05-02 09:15:20 +0200
commit566fda6678243df295fb1b14633c2eed339dd04d (patch)
treebd8b83f507936f6cc812d29a973d6817d2b0509d
parentf2a9e9d553b5223392ee7b18dd37c8aaeb627601 (diff)
downloadcv-566fda6678243df295fb1b14633c2eed339dd04d.tar.gz
cv-566fda6678243df295fb1b14633c2eed339dd04d.tar.bz2
cv-566fda6678243df295fb1b14633c2eed339dd04d.zip
harris: Change threshold to 0.001
-rw-r--r--harris.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/harris.c b/harris.c
index 50d7ff9..f7a0336 100644
--- a/harris.c
+++ b/harris.c
@@ -205,8 +205,8 @@ main(int argc, char *argv[])
}
printf("max_mc: %f\n", max_mc);
- threshold = 0.0001 * max_mc;
- pixbuf_get(image, &row, &width, &height, &nch, &stride);
+ threshold = 0.001 * max_mc;
+ pixbuf_get(grey, &row, &width, &height, &nch, &stride);
for (y = 0; y < height; ++y, row += stride) {
for (x = 0, p = row; x < width; ++x, p += nch) {
if (n[y * width + x].mc > threshold &&
@@ -219,7 +219,7 @@ main(int argc, char *argv[])
}
}
- gdk_pixbuf_save(image, argc > 2 ? argv[2] : "harris.tiff", "tiff",
+ gdk_pixbuf_save(grey, argc > 2 ? argv[2] : "harris.tiff", "tiff",
NULL, NULL);
free(n);