diff options
-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); |