Solarize

Function
The Solarize function is a partial inverse that reverses the high or low end, depending on the value of the hi/lo flag. Values above (“hi” or 1) or below (“lo” or 0 ) the threshold are reversed. The resulting images are similar to a photographic effect popular in the 1960s, where the print is exposed to light during development and results in an image with blended positive and negative value ranges. It gives a metallic effect to color images.

Parameters
Type
Defaults
Function
value
float
.5 The point at which the image is inverted.
mode
int
1

0 means "lo", or below the threshold value at which the color is inverted.

1 means "hi", or above the threshold.


Synopsis

image Solarize( image In, float value, int mode);


Script

image = Solarize( In, value, mode );


Command Line

shake -solarize value mode