Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


finds a global threshold value that partitions the intensity values in image into two intervals.

Details and OptionsDetails and Options

  • FindThreshold works with 2D and 3D images as well as data arrays of any rank. It converts multichannel and color images into grayscale, and then finds a global threshold.
  • FindThreshold[image,Method->method] specifies the method to use to determine the threshold.
  • 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"KittlerIllingworth minimum error thresholding method
  • The default setting is Method->"Cluster".

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Find the threshold of pixel intensities:

Click for copyable input

Find a threshold of a 3D volume:

Click for copyable input

Find the clustering threshold for an array of data:

Click for copyable input
Introduced in 2010
| Updated in 2012