- -threshold
Greyscale image to bitonal
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
If the pixels are pure and your IM is a Q16 then use..
EG:
or more simply for all IM Q, negate the image threshold and negate back, so you don't have to deal with the color range.
NOTE: if you want to make ALL pixels black, use a -threshold of '-1'
See
http://www.cit.gu.edu.au/~anthony/graph ... vas/#other
Code: Select all
2^16 - 2 => 65534
Code: Select all
-threshold 65534
Code: Select all
-negate -threhold 0 -negate
See
http://www.cit.gu.edu.au/~anthony/graph ... vas/#other
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/