Function
This function divides the color channels by the alpha channel.
When you color-correct a rendered (premultiplied) image, you should do a MDiv first to make it a non-premultiplied image, do the color-correction, then do a MMult to return the image to it's premultiplied state. For more information, see Overview - Color and Overview - Premultiplication.
Parameters
|
Type
|
Default
|
Function
|
ignoreZero |
int
|
0
|
Tells Shake to ignore pixels with an alpha value of 0. 0 = Divide entire image. |
Synopsis
image MDiv( image, int ignoreZero);
Script
image = MDiv( image, ignoreZero);
Command Line
shake -mdiv ignorezero