diff options
author | mutantturkey <mutantturke@gmail.com> | 2012-06-20 11:07:42 -0400 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2012-06-20 11:07:42 -0400 |
commit | dc0f496dbf86fc737f7af9d6f50b2a7ee1af95d3 (patch) | |
tree | 1332cab85e70e06a618abeb7ae2ce42e8b92342f /fly-tools | |
parent | 5b48bf79951d3d41c876e1d95496a29548a6217d (diff) |
you're doing this wrong
Diffstat (limited to 'fly-tools')
-rw-r--r-- | fly-tools/ThreadedFilterFlyMask/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fly-tools/ThreadedFilterFlyMask/main.c b/fly-tools/ThreadedFilterFlyMask/main.c index d2da2c6..b17fb0f 100644 --- a/fly-tools/ThreadedFilterFlyMask/main.c +++ b/fly-tools/ThreadedFilterFlyMask/main.c @@ -42,10 +42,9 @@ void convert_image(char *file) { } // convert \\\( -composite -compose Difference $output_dir/Masks/$setname/Background.png {} \\\) \\\( -contrast-stretch 90%x0% \\\) \\\( -threshold 30% \\\) $output_dir/Masks/$setname/Masks/{/} - int i = MagickGetImageHeight(mask)*MagickGetImageWidth(mask)/100.0f; MagickCompositeImage(mask, background, DifferenceCompositeOp, 0, 0); - MagickContrastStretchImage(mask, .9*i, i); + MagickContrastStretchImage(mask, MagickGetImageWhitePoint(mask), MagickGetImageBlackPoint(mask)); // MagickThresholdImage(mask, 0.30); sprintf(output_name, "%s%s", global_argv[3], basename(file)); |