summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);