You are here: Start » AVL.NET » AVL.ImageAverageHSx(AvlNet.Image, AvlNet.Region, AvlNet.HSxColorModel, int?, int, int, int)

AVL.ImageAverageHSx(AvlNet.Image, AvlNet.Region, AvlNet.HSxColorModel, int?, int, int, int)

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

inRgbImage
Type: AvlNet.Image
inRoi
Type: AvlNet.Region
Range of pixels to be processed, or null.
inColorModel
Type: AvlNet.HSxColorModel
Selected color model
inMinSaturation
Type: System.Nullable<System.Int32>
outHAverage
Type: System.Int32
Output hue average
outSAverage
Type: System.Int32
Output saturation average
outBAverage
Type: System.Int32
Output 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