annoying failure with thresholding
Posted: 2012-06-07T07:33:11-07:00
This might be a general imagemagick issue rather than perl-specific, but I'm using perl (and command-line convert)
So far, imagemagick thresholding is, at best, flaky for me, or even downright useless. Gimp's Colors->Threshold removes light-gray fuzz from my image, leaving just black and white pixels, with its default value of 127 (of max 255).
It would seem that
convert 50% in.jpg out.jpg
or
convert 32768 in.jpg out.jpg
or
$image->Threshold(threshold=>'50%')
would achieve the same thing -- remove the fuzz. But none of the above three are removing the fuzz.
I've also played with -white-threshold and -black-threshold, and it's just ineffective, for the stated objective.
Any suggestions?
thanks
So far, imagemagick thresholding is, at best, flaky for me, or even downright useless. Gimp's Colors->Threshold removes light-gray fuzz from my image, leaving just black and white pixels, with its default value of 127 (of max 255).
It would seem that
convert 50% in.jpg out.jpg
or
convert 32768 in.jpg out.jpg
or
$image->Threshold(threshold=>'50%')
would achieve the same thing -- remove the fuzz. But none of the above three are removing the fuzz.
I've also played with -white-threshold and -black-threshold, and it's just ineffective, for the stated objective.
Any suggestions?
thanks