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

AVS.CheckPresence_EdgeAmount Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void CheckPresence_EdgeAmount
(
	AvlNet.Image inImage,
	AvlNet.ShapeRegion inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	AvlNet.GradientMaskOperator inEdgeOperator,
	AvlNet.MagnitudeMeasure inEdgeMeasure,
	int inEdgeScale,
	int inMinStrength,
	float inMinAmount,
	float inMaxAmount,
	out bool outIsPresent,
	out float outAmount,
	AvlNet.Region outForeground,
	AvlNet.ShapeRegion outAlignedRoi
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inRoiAvlNet.ShapeRegionLocation at which object presence is being checked.
inRoiAlignmentAvlNet.CoordinateSystem2D?Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inEdgeOperatorAvlNet.GradientMaskOperatorSelected gradient operator.
inEdgeMeasureAvlNet.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.
outAmountfloatFraction of pixels from meeting the criteria.
outForegroundAvlNet.RegionRegion of pixels meeting the criteria.
outAlignedRoiAvlNet.ShapeRegionInput ROI after transformation (in the image coordinates).

Function Overrides

See also