You are here: Start » AVL.NET » AVL.ImageAverageHSx Method

AVL.ImageAverageHSx Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void ImageAverageHSx(
	AvlNet.Image inRgbImage,
	AvlNet.Region inRoi,
	AvlNet.HSxColorModel inColorModel,
	int? inMinSaturation,
	out int outHAverage,
	out int outSAverage,
	out int outBAverage
)

Parameters

Name Type Range Default Description
inRgbImageAvlNet.Image
inRoiAvlNet.RegionRange of pixels to be processed. Default value: atl::NIL, or null.
inColorModelAvlNet.HSxColorModelSelected color model.
inMinSaturationint?<0, 255>0Default value: 0, or null.
outHAverageintOutput hue average.
outSAverageintOutput saturation average.
outBAverageintOutput brightness average.

Description

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.

See also