ImageAverage


Computes the average of the image pixel values.

Syntax

C++
Python
 
def ImageAverage(
	inImage: Image,
	/,
	*,
	inRoi: Region | None = None
)
-> (
	outAverageColor: Pixel,
	outAverageValue: float
)

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 outAverageColor Pixel Average of each channel
Output value outAverageValue float Average of the entire image

Hardware Acceleration

This operation is optimized for SSSE41 technology for pixels of types: 1xUINT8, 3xUINT8.

This operation is optimized for AVX2 technology for pixels of types: 1xUINT8, 3xUINT8.

This operation is optimized for NEON technology for pixels of types: 1xUINT8, 3xUINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.