ISub
Function
This image math function subtracts one image from another. The second image's
strength can be raised up and down with the percent parameter. If you
are using this to detect the difference between two images, use ISubA
instead, since it takes the absolute value of the difference.
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. |
Synopsis
image ISub( image Foreground, image Background, int clipMode, float percent );
Script
image = ISub( Foreground, Background, clipMode, percent );
Command Line
shake -isub image clipMode percent