combine_canvas_channels
Combines two canvases together by copying selected channels from the rhs to the lhs and returning the result. The individual channels are expected to be the same type in the lhs and rhs however the pixel types do not need to match. Differing channel types will lead to incorrect results (no conversion is performed by this command).
Web Services Notes:
- This command accepts Canvas types as input and return values which cannot be serialized by Web Services. This command should only be used as a utility command by other commands and cannot be called directly from Web Services.
References:
arguments
- "channels" : Array
An array containing arrays with two elements each which form a pair of channel indices. The first element of each array is the channel to replace in the lhs and the second element is the channel in the rhs from which to copy the data. Channel indices are zero based.
- "lhs" : Canvas
The canvas representing the left hand side value of the operator to use when combining the canvases.
- "rhs" : Canvas
The canvas representing the right hand side value of the operator to use when combining the canvases.
- "window" : Window_data (default: null)
Sub-window of the canvas in which to perform the operation. Outside this window the lhs pixels will be used directly.
return value
CanvasA Canvas containing the results of combining the lhs and rhs with the selected channels.