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(
	BitmapData imageData,
	BitmapData templateData
)

Parameters

imageData
Type: System.Drawing.Imaging..::.BitmapData
Source image data to process.
templateData
Type: System.Drawing.Imaging..::.BitmapData
Template image to search for.

Return Value

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

Exceptions

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

See Also