AddChannels


Creates a monochromatic image by summing the values of the input image channels.

Syntax

C++
Python
 
def AddChannels(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inRoi: Region | None = None
)
-> None

Parameters

Name Type Default Description
Input value inImage Image Input image
Input value inRoi Region | None None Range of pixels to be processed
Output value outImage Image output mono image

Hardware Acceleration

This operation is optimized for AVX2 technology for pixels of types: 2xUINT8, 3xUINT8, 4xUINT8, 2xUINT16, 3xUINT16, 4xUINT16.

This operation is optimized for SSSE3 technology for pixels of types: 2xUINT8, 3xUINT8, 4xUINT8, 2xUINT16, 3xUINT16, 4xUINT16.

This operation supports automatic parallelization for multicore and multiprocessor systems.