Expand
Function
This squeezes your data between two points on the X axis of a graph of your
image, increasing the amount of pure black and white (on a per-channel basis)
in the image. Compress will squeeze them on
the Y axis of the image graph.
Parameters
|
Type
|
Defaults
|
Function
|
r,g,b,aLo |
float
|
0, rLo, rLo, rLo | Pixels less than or equal to Lo value go to 0. At 8 or 16 bits per channel, pixels less than this value will be clamped at 0 |
r,g,b,aHi |
float
|
1, rHi, rHi, rHi | Pixels greater than or equal to Hi value go to 1. At 8 or 16 bits per channel, pixels greater than this value will be clamped at 1 |
Synopsis
image Expand( image, float rLo, float gLo, float bLo, float aLo, float rHi, float gHi, float bHi, float aHi );
Script
image = Expand( image, rLo, gLo, bLo, aLo rHi, gHi, bHi, aHi );
Command Line
shake -expand rLo rHi gLo etc....
See Also
Compress, ContrastLum,
Lookup, LookupHLS,
LookupHSV