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)


creates a binary image from image by replacing all values above the upper threshold with , also including pixels with intensities above the lower threshold that are connected to the foreground.

uses t as the upper threshold, automatically choosing a suitable value for the lower threshold.

chooses the lower and the upper threshold automatically.

Details and OptionsDetails and Options

  • MorphologicalBinarize effectively performs hysteresis thresholding and is typically used as part of edge-detection methods.
  • MorphologicalBinarize works with 2D as well as 3D images. It converts multichannel and color images into grayscale images, then produces an image in which every pixel has value or .
  • The following short forms can be used for the second argument:
  • t{Automatic,t} computed automatically
    {t}{t,Automatic} computed automatically
    {func}{t1,t2} with automatic
  • The following options can be given:
  • CornerNeighborsTruewhether to include corner neighbors
    Method"Cluster"method to use to specify the upper threshold
  • MorphologicalBinarize[image,{t},Method->method] specifies the method to use to determine the threshold. See the reference page for FindThreshold for full documentation of available methods.
Introduced in 2010
| Updated in 2012