You are here: Start » AVL.NET » AVL.CheckPresence_EdgeAmount(AvlNet.Image, AvlNet.ShapeRegion, AvlNet.CoordinateSystem2D?, AvlNet.GradientMaskOperator, AvlNet.MagnitudeMeasure, int, int, float, float, bool, float, AvlNet.Region, AvlNet.ShapeRegion)

AVL.CheckPresence_EdgeAmount(AvlNet.Image, AvlNet.ShapeRegion, AvlNet.CoordinateSystem2D?, AvlNet.GradientMaskOperator, AvlNet.MagnitudeMeasure, int, int, float, float, bool, float, AvlNet.Region, AvlNet.ShapeRegion)

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,
	out AvlNet.Region outForeground,
	out AvlNet.ShapeRegion outAlignedRoi
)

Parameters

inImage
Type: AvlNet.Image
inRoi
Type: AvlNet.ShapeRegion
inRoiAlignment
Type: System.Nullable<AvlNet.CoordinateSystem2D>
inEdgeOperator
Type: AvlNet.GradientMaskOperator
inEdgeMeasure
Type: AvlNet.MagnitudeMeasure
inEdgeScale
Type: System.Int32
inMinStrength
Type: System.Int32
inMinAmount
Type: System.Single
inMaxAmount
Type: System.Single
outIsPresent
Type: System.Boolean
outAmount
Type: System.Single
outForeground
Type: AvlNet.Region
outAlignedRoi
Type: AvlNet.ShapeRegion

Description

The filter extracts foreground pixels and checks if their number comparing to the area of the whole ROI fits the range (inMinAmount, inMaxAmount). The pixel is considered a foreground pixel if and only if its gradient magnitude is at least inMinStrength.

Examples

CheckPresence_EdgeAmount performed on sample images with inMinAmount = 0.2. In the left image the object is present, while in the right image it is not. Green pixels are foreground pixels.

See also