ImageAverageHSx


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

Syntax

C++
Python
 
def ImageAverageHSx(
	inRgbImage: Image,
	/,
	*,
	inRoi: Region | None = None,
	inColorModel: HSxColorModel = HSxColorModel.HSV,
	inMinSaturation: int | None = 0
)
-> (
	outHAverage: int,
	outSAverage: int,
	outBAverage: int
)

Parameters

Name Type Range Default Description
Input value inRgbImage Image
Input value inRoi Region | None None Range of pixels to be processed
Input value inColorModel HSxColorModel HSxColorModel.HSV Selected color model
Input value inMinSaturation int | None 0 - 255 0
Output value outHAverage int Output hue average
Output value outSAverage int Output saturation average
Output value outBAverage int Output brightness average