Process image looking for matchings with specified template.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public TemplateMatch[] ProcessImage(
	UnmanagedImage image,
	UnmanagedImage template,
	Rectangle searchZone
)

Parameters

image
Type: AForge.Imaging..::.UnmanagedImage
Unmanaged source image to process.
template
Type: AForge.Imaging..::.UnmanagedImage
Unmanaged template image to search for.
searchZone
Type: System.Drawing..::.Rectangle
Rectangle in source image to search template for.

Return Value

Returns array of found template matches. The array is sorted by similarity of found matches in descending order.

Implements

ITemplateMatching..::.ProcessImage(UnmanagedImage, UnmanagedImage, Rectangle)

Exceptions

ExceptionCondition
AForge.Imaging..::.UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
AForge.Imaging..::.InvalidImagePropertiesExceptionTemplate image is bigger than search zone.

See Also