PANDORE Version 6 | GREYC-IMAGE |
pmassbinarization sets to 0 every pixel value that is lower to ratio percent of the total gray levels ansd 255 otherwise.
The threshold value is determined as the gray level that splits the image in two class:
Pixel with value lower or equal to the threshold are set to 0 in the output image, and pixels with value greater than the threshold are set to 255 in the output image.
Returns the threshold value.
Discards the background and keeps the tangram pieces from the tangram.pan image:
pmassbinarization 86 tangram.pan out.pan
Binarisation d'une image basé sur le pourcentage de niveaux de gris.
Author: Régis Clouard