< Previous | Contents | Next >

Usage

Image:ChannelOpOf(string operation, image fg, table options)

operation (string, required)

A string that specifies the mathematical operation the function will use when combining channels. Can be one of the following: "Copy", "Add", "Subtract", "Multiply", "Divide", "Max", "Min", "Invert", "Difference", "SignedAdd", "Threshold".

fg (image, required)

The image object used as the foreground, or second image in the operation. If this is nil, then the function will use the Image object calling the function as the foreground as well (i.e. "Bg.R" is equivalent to "Bg.R").