otherMinimum() - Media Method

The otherMinimum() method replaces the pixels within the radius with the darkest pixel in that radius, thereby amplifying the darker areas of the image.

Note:  This function is “selection aware”—if a selection is made, the system applies the function based on the current selection. For more information about making selections, see selection() - Media Method.

Syntax

otherMinimum(

[Radius @ <value 1..10>]

);

Parameters

Radius - determines the extent of the effect. The default is 1 (minimal effect).

Example

var image = new Media();

image.load(name @ "peppers.tga");

image.otherMinimum(Radius @ 2);

image.save(type @ "jpeg");