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

Invoke.CheckPresence_EdgeAmount

Verifies object presence by analysing the amount of edges in the specified region.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void CheckPresence_EdgeAmount
(
	Avl.Image inImage,
	Avl.ShapeRegion inRoi,
	Optional<Avl.CoordinateSystem2D> inRoiAlignment,
	Avl.GradientMaskOperator inEdgeOperator,
	Avl.MagnitudeMeasure inEdgeMeasure,
	int inEdgeScale,
	int inMinStrength,
	float inMinAmount,
	float inMaxAmount,
	out bool outIsPresent,
	Optional<float> outAmount,
	Optional<Avl.Region> outForeground,
	Optional<Avl.ShapeRegion> outAlignedRoi
)

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.
inEdgeOperatorAvl.GradientMaskOperatorSelected gradient operator.
inEdgeMeasureAvl.MagnitudeMeasureSumSelected method of gradient magnitude computation. Default value: Sum.
inEdgeScaleint<1, 16>1Scales the resulting gradient magnitudes. Default value: 1.
inMinStrengthint<0, 255>15Lowest acceptable edge magnitude. Default value: 15.
inMinAmountfloat<0.0f, 1.0f>0.2fLowest acceptable fraction of pixels meeting the criteria. Default value: 0.2f.
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 from 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).

See also