|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
Binarize[image]
creates a binary image from image by replacing all values above a globally determined threshold with
and others with
.
Binarize[image, t]
creates a binary image by replacing all values above t with
and others with
.
Binarize[image, {t1, t2}]
creates a binary image by replacing all values in the range
through
with
and others with
.
Details and OptionsDetails and Options
- Binarize works with any image. It converts multichannel and color images into grayscale images, then produces an image in which every pixel has value
or
. - Binarize[image, {t, t}] effectively sets pixels with value t to
, and all other pixels to
. - Binarize[image, 0] sets all nonzero values to
. - In Binarize[image, f], the function f is applied to the list of channel values for each pixel.
- Binarize uses Otsu's cluster variance maximization method. See the reference page for FindThreshold for full documentation of available Method settings.
- If an explicit threshold value is given, Binarize will ignore the Method option.
- Binarize also works with Image3D objects.
New in 7 | Last modified in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »






