otherMaximum() - Media Method
The otherMaximum() method replaces the pixels within the radius with the brightest pixel in that radius, thereby amplifying the lighter 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
otherMaximum(
[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.otherMaximum(Radius @ 2);
image.save(type @ "jpeg");
On-Line Documentation