You are here: Start » AVL.NET » AVL.CheckPresence_EdgeAmount
Verifies object presence by analysing the amount of edges in the specified region.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
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 )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inRoi | AvlNet.ShapeRegion | Location at which object presence is being checked. | |||
inRoiAlignment | AvlNet.CoordinateSystem2D? | Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL. | |||
inEdgeOperator | AvlNet.GradientMaskOperator | Selected gradient operator. | |||
inEdgeMeasure | AvlNet.MagnitudeMeasure | Sum | Selected method of gradient magnitude computation. Default value: Sum. | ||
inEdgeScale | int | <1, 16> | 1 | Scales the resulting gradient magnitudes. Default value: 1. | |
inMinStrength | int | <0, 255> | 15 | Lowest acceptable edge magnitude. Default value: 15. | |
inMinAmount | float | <0.0f, 1.0f> | 0.2f | Lowest acceptable fraction of pixels meeting the criteria. Default value: 0.2f. | |
inMaxAmount | float | <0.0f, 1.0f> | 1.0f | Highest acceptable fraction of pixels meeting the criteria. Default value: 1.0f. | |
outIsPresent | bool | Flag indicating whether the object is present or not. |
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
Function Overrides
- CheckPresence_EdgeAmount(Image, ShapeRegion, GradientMaskOperator, MagnitudeMeasure, Int32, Int32, Single, Single, Boolean)
- CheckPresence_EdgeAmount(Image, ShapeRegion, GradientMaskOperator, MagnitudeMeasure, Int32, Int32, Single, Single, Boolean, Single, Region, ShapeRegion)
- CheckPresence_EdgeAmount(Image, ShapeRegion, Nullable<CoordinateSystem2D>, GradientMaskOperator, MagnitudeMeasure, Int32, Int32, Single, Single, Boolean, Single, Region, ShapeRegion)