OOF2: The Manual
Name
OOF.Image.Modify.ThresholdImage — Threshold an image given a threshold value.
Synopsis
OOF.Image.Modify.ThresholdImage(image
,T
)
Details
- Parent Menu: OOF.Image.Modify
-
Callback: function
doImageMod
in moduleooflib.image.imagemodifier
-
Parameters:
image
- Type: The path to an existing
Image
object. T
- Threshold value. Type: A real number in the range [0, 1].
Description
Convert an Image
to black and white, by making each pixel whose
equivalent gray value is greater than T
to
white, and each pixel whose gray value is less than
T
to black.
Figure 6.41. Thresholding an Image

A micrograph of Si3N4 (courtesy of C.-H. Hsueh).

The image after being thresholded with
T
=0.5.