You are here: Start » AVL.NET » AVS.CheckPresence_PixelAmount Method

AVS.CheckPresence_PixelAmount Method

Verifies object presence by analysing the amount of pixels that meet the specified criteria.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CheckPresence_PixelAmount
(
	AvlNet.Image inImage,
	AvlNet.ShapeRegion inRoi,
	AvlNet.HSxColorModel inColorModel,
	int inBeginHue,
	int inEndHue,
	int inMinSaturation,
	float? inMinBrightness,
	float? inMaxBrightness,
	float inMinAmount,
	float inMaxAmount,
	out bool outIsPresent
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.ShapeRegionLocation at which object presence is being checked.
inColorModelAvlNet.HSxColorModelSelected color model.
inBeginHueint<0, 255>0Begin of the range of acceptable hue. Default value: 0.
inEndHueint<0, 255>255End of the range of acceptable hue. Default value: 255.
inMinSaturationint<0, 255>128Lowest acceptable saturation. Default value: 128.
inMinBrightnessfloat?<0.0f, INF>128.0fLowest acceptable brightness. Default value: 128.0f.
inMaxBrightnessfloat?<0.0f, INF>Highest acceptable brightness. Default value: atl::NIL.
inMinAmountfloat<0.0f, 1.0f>0.5fLowest acceptable fraction of pixels meeting the criteria. Default value: 0.5f.
inMaxAmountfloat<0.0f, 1.0f>1.0fHighest acceptable fraction of pixels meeting the criteria. Default value: 1.0f.
outIsPresentboolFlag indicating whether the object is present or not.

Function Overrides

See also