Returns the numeric threshold value computed by one of the 17 ImageJ Auto Threshold algorithms, without modifying the image.
Arguments
- img
A single-channel
Imageobject.- method
A lowercase string naming one of the 17 supported methods:
"imagej","huang","huang2","intermodes","isodata","li","maxentropy","mean","minerrori","minimum","moments","otsu","percentile","renyientropy","shanbhag","triangle","yen".- bins
Integer >= 2. Histogram bin count used when the image depth is not
CV_8U. Ignored forCV_8Uimages (always 256 bins). Default256.