FindThreshold
FindThreshold[image] finds a global threshold value that partitions the intensity values in image into two intervals.
Examples
Find an optimal threshold for an image:
img = ExampleData[{"TestImage", "Lena"}];
FindThreshold[img]Use the threshold for binarization:
t = FindThreshold[img];
Binarize[img, t]Please visit the official Wolfram Language Reference for more details.