This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

FindThreshold

FindThreshold[image]
finds a global threshold value that partitions the intensity values in image into two intervals.
  • FindThreshold works with any image. It converts multichannel and color images into grayscale images, and then finds a global threshold.
  • FindThreshold also works with real arrays of arbitrary dimensions.
  • Possible settings for the Method option include:
{"BlackFraction",b}make a fraction b of all pixels black
"Cluster"cluster variance maximization (Otsu's algorithm)
"Entropy"histogram entropy minimization (Kapur's method)
"Mean"use the mean level as the threshold
"Median"use the median pixel level as the threshold
"MinimumError"Kittler-Illingworth minimum error thresholding method
  • The default setting is Method.
Find the threshold of pixel intensities:
Find the clustering threshold for an array of data:
Find the threshold of pixel intensities:
In[1]:=
Click for copyable input
Out[1]=
 
Find the clustering threshold for an array of data:
In[1]:=
Click for copyable input
Out[1]=
Find a threshold to segment an image:
Use the minimum error method to classify data drawn from two Gaussian distributions:
Find a cutoff for the vertical dimension of letters in a text image:
New in 8