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

AVS.LocateMultipleObjects_SAD Method

Finds multiple occurrences of a predefined template on an image by analysing the Square Average Difference between pixel values.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void LocateMultipleObjects_SAD
(
	AvlNet.Image inImage,
	NullableRef<AvlNet.ShapeRegion> inSearchRegion,
	AvlNet.CoordinateSystem2D? inSearchRegionAlignment,
	AvlNet.GrayModel inGrayModel,
	int inMinPyramidLevel,
	int? inMaxPyramidLevel,
	bool inIgnoreBoundaryObjects,
	float inMaxDifference,
	float inMinDistance,
	IList<AvlNet.Object2D> outObjects,
	NullableValue<int> outPyramidHeight,
	NullableRef<AvlNet.ShapeRegion> outAlignedSearchRegion
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageImage on which model occurrences will be searched.
inSearchRegionAvlNet.NullableRef<AvlNet.ShapeRegion>Possible centers of the object occurrences. Default value: atl::NIL.
inSearchRegionAlignmentAvlNet.CoordinateSystem2D?Adjusts the region of interest to the position of the inspected object. Default value: atl::NIL.
inGrayModelAvlNet.GrayModelModel which will be sought.
inMinPyramidLevelint<0, 12>0Defines the highest resolution level. Default value: 0.
inMaxPyramidLevelint?<0, 12>3Defines the number of reduced resolution levels that can be used to speed up computations. Default value: 3.
inIgnoreBoundaryObjectsboolFalseFlag indicating whether objects crossing image boundary should be ignored or not. Default value: False.
inMaxDifferencefloat<0.0f, INF>5.0fMaximum accepted average difference between pixel values. Default value: 5.0f.
inMinDistancefloat<0.0f, INF>10.0fMinimum distance between two matches. Default value: 10.0f.
outObjectsSystem.Collections.Generic.IList<AvlNet.Object2D>Found objects.
outPyramidHeightAvlNet.NullableValue<int>Highest pyramid level used to speed up computations. Can be null to skip this parameter calculation.
outAlignedSearchRegionAvlNet.NullableRef<AvlNet.ShapeRegion>Transformed input shape region. Can be null to skip this parameter calculation.

Function Overrides

See also