You are here: Start » AVL.NET » Invoke.CheckPresence_PixelAmount

Invoke.CheckPresence_PixelAmount

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

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void CheckPresence_PixelAmount
(
	Avl.Image inImage,
	Avl.ShapeRegion inRoi,
	Optional<Avl.CoordinateSystem2D> inRoiAlignment,
	Avl.HSxColorModel inColorModel,
	int inBeginHue,
	int inEndHue,
	int inMinSaturation,
	Optional<int> inMaxSaturation,
	Optional<float> inMinBrightness,
	Optional<float> inMaxBrightness,
	float inMinAmount,
	float inMaxAmount,
	out bool outIsPresent,
	Optional<float> outAmount,
	Optional<Avl.Region> outForeground,
	Optional<Avl.ShapeRegion> outAlignedRoi,
	Diagnostic<Avl.Image> diagHsxImage
)

Parameters

Name Type Range Default Description
inImageAvl.ImageInput image.
inRoiAvl.ShapeRegionLocation at which object presence is being checked.
inRoiAlignmentAtl.Optional<Avl.CoordinateSystem2D>Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inColorModelAvl.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.
inMaxSaturationAtl.Optional<int><0, 255>Highest acceptable saturation. Default value: atl::NIL.
inMinBrightnessAtl.Optional<float><0.0f, INF>128.0fLowest acceptable brightness. Default value: 128.0f.
inMaxBrightnessAtl.Optional<float><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.
outAmountAtl.Optional<float>Fraction of pixels meeting the criteria.
outForegroundAtl.Optional<Avl.Region>Region of pixels meeting the criteria.
outAlignedRoiAtl.Optional<Avl.ShapeRegion>Input ROI after transformation (in the image coordinates).
diagHsxImageAvl.Diagnostic<Avl.Image>Image represented in chosen color model.

See also