Is there an implementation of ImageMagick? Did adaptive-threshold use this algorithm?
Thanks:?
Otsu' Thresholding Method to Binarize an image
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
You may like to explain to us dummys what a "Otsu' Thresholding Method" is!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Hmmm sounds like the threshold methods using a 2 color quantization.
this turns off dithering, then finds the best two grey level colors to represent the image, regardless of if the image is bright, dark or other. The two grey levels are then normalised to black and white.
For more info see
IM Examples, Color Quantization and Dithering, Two Color Quantization
http://www.cit.gu.edu.au/~anthony/graph ... colors_two
Code: Select all
convert image.png -colorspace gray +dither -colors 2 -normalize \
threshold_colors.gif
For more info see
IM Examples, Color Quantization and Dithering, Two Color Quantization
http://www.cit.gu.edu.au/~anthony/graph ... colors_two
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/