IDiv

Function
This image math function divides one image by another. The second image's strength can also be raised up and down with the percent parameter. To divide an image by its own matte channel, use MDiv.

Parameters
Type
Defaults
Function
clipMode
int
1
Toggles between foreground (0) and background resolution (1)
percent
float
100
A built-in fade parameter. This is the amount of the second image that is taken into consideration. Full strength is 100. If you set it to 50, the added amount is reduced by 50 percent.
ignoreZero
int
0
Tells Shake to ignore black (zero) values


Synopsis

image IDiv( 
  image Foreground, 
  image Background, 
  int clipMode, 
  float percent, 
  int ignoreZero
);


Script

image = IDiv( 
  Foreground, 
  Background, 
  clipMode, 
  percent, 
  ignoreZero 
 );


Command Line

shake -idiv image clipMode percent ignoreZero

See Also
IMult, ISubA, ISub, IAdd, MDiv