AverageChannels_Weighted


Creates a monochromatic image from weighted averages of the input image channels.

Syntax

C++
Python
 
def AverageChannels_Weighted(
	inImage: Image,
	inWeight1: int,
	inWeight2: int,
	inWeight3: int,
	inWeight4: int,
	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
Input value inWeight1 int Weight of the first channel
Input value inWeight2 int Weight of the second channel
Input value inWeight3 int Weight of the third channel
Input value inWeight4 int Weight of the fourth channel
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.