aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Morrison <jcm357@cs.drexel.edu>2012-06-20 11:33:06 -0400
committerJohn Morrison <jcm357@cs.drexel.edu>2012-06-20 11:33:06 -0400
commit2118c1a15edd40821ad668f08d57651b4047e369 (patch)
tree2351277ecb2e1611993453f50d6751e8913f8be1
parentdc0f496dbf86fc737f7af9d6f50b2a7ee1af95d3 (diff)
try this out
-rw-r--r--fly-tools/ThreadedFilterFlyMask/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fly-tools/ThreadedFilterFlyMask/main.c b/fly-tools/ThreadedFilterFlyMask/main.c
index b17fb0f..09f9484 100644
--- a/fly-tools/ThreadedFilterFlyMask/main.c
+++ b/fly-tools/ThreadedFilterFlyMask/main.c
@@ -44,8 +44,8 @@ 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/{/}
MagickCompositeImage(mask, background, DifferenceCompositeOp, 0, 0);
- MagickContrastStretchImage(mask, MagickGetImageWhitePoint(mask), MagickGetImageBlackPoint(mask));
-// MagickThresholdImage(mask, 0.30);
+ MagickAutoLevelImage(mask);
+ MagickThresholdImage(mask, 0.30);
sprintf(output_name, "%s%s", global_argv[3], basename(file));
if(MagickWriteImages(mask, output_name, MagickTrue) == MagickFalse) {