Compress

Function
This function squeezes the image to fit within the Lo and Hi range you set. Unlike Clamp, the entire image is modified because it is fit between the two points.

Parameters
Type
Defaults
Function
Lo
float
0, rLo, rLo, 0 The new lowest value in the image. 0 means no change if Hi is set to 1.
Hi
float
1, rHi, rHi, 1 The new highest value in the image.


Synopsis

image Compress( image, 
  float rLo, 
  float gLo, 
  float bLo, 
  float aLo,          
  float rHi, 
  float gHi, 
  float bHi, 
  float aHi
);


Script

image = Compress( image, 
        rLo, gLo, bLo, aLo
        rHi, gHi, bHi, aHi
 )


Command Line

shake -compress rLo gLo etc....


Examples

shake lisa.iff -compress .5
shake lisa.iff -compress .4 .4 .4 0 .6 .6 .6

See Also
Clamp, Expand, Lookup, LookupHLS, LookupHSV