Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Pixel Statistics » ImageAverageHSx


Computes the average of the HSV, HSL or HSI image pixel values.

Name Type Range Description
inRgbImage Image
inRoi Region* Range of pixels to be processed
inColorModel HSxColorModel Selected color model
inMinSaturation Integer* 0 - 255
outHAverage Integer Output hue average
outSAverage Integer Output saturation average
outBAverage Integer Output brightness average


For input inRgbImage only pixel formats are supported: 3⨯uint8.

Read more about pixel formats in Image documentation.


The filter finds average values of the HSV, HSL or HSI color space image from the RGB image inRgbImage within specific region inRoi.

The calculations take into account only these pixels which have saturation a greater than inMinSaturation.

Filter returns average values of a hue, saturation and brightness.

Complexity Level

This filter is available on Basic Complexity Level.