aboutsummaryrefslogtreecommitdiff
path: root/fly-tools/ThreadedFilterFlyMask/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'fly-tools/ThreadedFilterFlyMask/main.c')
-rw-r--r--fly-tools/ThreadedFilterFlyMask/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fly-tools/ThreadedFilterFlyMask/main.c b/fly-tools/ThreadedFilterFlyMask/main.c
index 09f9484..578b215 100644
--- a/fly-tools/ThreadedFilterFlyMask/main.c
+++ b/fly-tools/ThreadedFilterFlyMask/main.c
@@ -44,8 +44,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/{/}
MagickCompositeImage(mask, background, DifferenceCompositeOp, 0, 0);
+// MagickContrastStretchImage(mask, 90000, 0);
MagickAutoLevelImage(mask);
- MagickThresholdImage(mask, 0.30);
+ MagickThresholdImage(mask, 25000);
sprintf(output_name, "%s%s", global_argv[3], basename(file));
if(MagickWriteImages(mask, output_name, MagickTrue) == MagickFalse) {