You are here: Start » AVL.NET » AVL.LocateSingleObject_SAD(AvlNet.Image, AvlNet.Region, AvlNet.GrayModel, int, int?, bool, float, AvlNet.Object2D?, AvlNet.Image[], AvlNet.Image[], float[])

AVL.LocateSingleObject_SAD(AvlNet.Image, AvlNet.Region, AvlNet.GrayModel, int, int?, bool, float, AvlNet.Object2D?, AvlNet.Image[], AvlNet.Image[], float[])

Finds a single occurrence 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 LocateSingleObject_SAD(
	AvlNet.Image inImage,
	AvlNet.Region inSearchRegion,
	AvlNet.GrayModel inGrayModel,
	int inMinPyramidLevel,
	int? inMaxPyramidLevel,
	bool inIgnoreBoundaryObjects,
	float inMaxDifference,
	out AvlNet.Object2D? outObject,
	out AvlNet.Image[] diagImagePyramid,
	out AvlNet.Image[] diagMatchPyramid,
	out float[] diagScores
)

Parameters

inImage
Type: AvlNet.Image
Image on which model occurrence will be searched
inSearchRegion
Type: AvlNet.Region
Possible centers of the object occurrence, or null.
inGrayModel
Type: AvlNet.GrayModel
Model which will be sought
inMinPyramidLevel
Type: System.Int32
Defines the highest resolution level
inMaxPyramidLevel
Type: System.Nullable<System.Int32>
Defines the number of reduced resolution levels that can be used to speed up computations, or null.
inIgnoreBoundaryObjects
Type: System.Boolean
Flag indicating whether objects crossing image boundary should be ignored or not
inMaxDifference
Type: System.Single
Maximum accepted average difference between pixel values
outObject
Type: System.Nullable<AvlNet.Object2D>
Found object
diagImagePyramid
Type: AvlNet.Image
Pyramid of iteratively downsampled input image
diagMatchPyramid
Type: AvlNet.Image
Locations found on each pyramid level
diagScores
Type: System.Single
Scores of found match on each pyramid level

See also