OOF2: The Manual

Name

OOF.Image.Modify.Threshold — Make all pixels brighter than a given threshold white, and all others black.

Synopsis

OOF.Image.Modify.Threshold(image, method)

Details

  • Parent Menu: OOF.Image.Modify
  • Callback: function doImageMod in module ooflib.image.imagemodifier
  • Parameters:

    image
    Type: The path to an existing Image object.
    method
    How to compute the threshold. Type: An object of the ThresholdMethod class.

Description

Threshold converts an Image to grayscale, and then converts the grayscale image to black and white, according to the given method, which is a object from the ThresholdMethod class. See the documentation for the ThresholdMethod subclasses for details and examples.

Previous versions of OOF2 had a ThresholdImage command, which was equivalent to the new Threshold command with method set to ManualThreshold. The old command is still recognized in scripts but cannot be invoked via the GUI.

See Also