NodeIcon ReplaceImageChannels

Mix image’s channels of one or two images.


Inputs

Image A First image

Image B Second image

Output

Image Result image

Parameters

Red:

source of Red channel

Green:

source of Green channel

Blue:

source of Blue channel

Alpha:

source of Alpha channel

Color:

contains values for Set to color source option

If Different Pixel Types:
Use Highest

use pixel type with bigger depth. Check how pixel types are compared in Pixel Types Comparison

Use Lowest

use pixel type with lower depth

Use A’s

use pixel type of Image A’s input

Use B’s

use pixel type of Image B’s input

Error

ReplaceImageChannels won’t compute if input images have different pixel types

Method:
OpenGL

render via OpenGL. Requires OpenGL 2.1 context

CPU

slower computing on CPU

Note

If you compute a project using WrapCmd command line interface or Node on a machine where OpenGL 2.1 is not available, the node will return an error, if OpenGL method is selected.

Sources

Red:

of any input image

Green:

of any input image

Blue:

of any input image

Alpha:

of any input image

Hue:

of any input image

Saturation:

of any input image

Lightness:

of any input image

Set to black:

set to 0

Set to white:

set to 1

Set to color:

set to corresponding component of Color param

None:

only available for Alpha param. If choosen, output image contains no alpha channel (RGB only)