You are here: Start » AVL.NET » Function Reference » Computer Vision » Template Matching » AVL.EnhanceSingleObjectMatch

AVL.EnhanceSingleObjectMatch

Improves accuracy of single object matching by adding a subpixel-precise adjustment.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void EnhanceSingleObjectMatch
(
	AvlNet.Image inImage,
	AvlNet.Object2D inObject,
	IList<AvlNet.Path> inObjectEdges,
	bool inAllowScale,
	out AvlNet.Object2D outObject,
	IList<AvlNet.Path> outObjectEdges
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inObjectAvlNet.Object2DInput object.
inObjectEdgesSystem.Collections.Generic.IList<AvlNet.Path>Input object edges.
inAllowScaleboolDetermines if the object scale can be adjusted.
outObjectAvlNet.Object2DObject with enhanced accuracy.
outObjectEdgesSystem.Collections.Generic.IList<AvlNet.Path>Edges of the object with enhanced accuracy.

Examples

When using template matching with EnhanceSingleObjectMatch filter, you may try to speed up template matching by increasing its inMinPyramidLevel parameter. The potential loss of template matching precision should be mitigated by the EnhanceSingleObjectMatch filter, as shown in the images below:
Without enhancement
With enhancement

Hardware Acceleration

This operation is optimized for SSSE3 technology for pixels of type: UINT8.

This operation is optimized for AVX2 technology for pixels of type: UINT8.

This operation is optimized for NEON technology for pixels of type: UINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

See also