diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-02 09:15:20 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-02 09:15:20 +0200 |
commit | 566fda6678243df295fb1b14633c2eed339dd04d (patch) | |
tree | bd8b83f507936f6cc812d29a973d6817d2b0509d | |
parent | f2a9e9d553b5223392ee7b18dd37c8aaeb627601 (diff) | |
download | cv-566fda6678243df295fb1b14633c2eed339dd04d.tar.gz cv-566fda6678243df295fb1b14633c2eed339dd04d.tar.bz2 cv-566fda6678243df295fb1b14633c2eed339dd04d.zip |
harris: Change threshold to 0.001
-rw-r--r-- | harris.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |