Click or drag to resize
Accord.NET (logo)

ExhaustiveTemplateMatchingProcessImage Method (BitmapData, BitmapData, Rectangle)

Process image looking for matchings with specified template.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public TemplateMatch[] ProcessImage(
	BitmapData imageData,
	BitmapData templateData,
	Rectangle searchZone
)
Request Example View Source

Parameters

imageData
Type: System.Drawing.ImagingBitmapData
Source image data to process.
templateData
Type: System.Drawing.ImagingBitmapData
Template image to search for.
searchZone
Type: System.DrawingRectangle
Rectangle in source image to search template for.

Return Value

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

Implements

ITemplateMatchingProcessImage(BitmapData, BitmapData, Rectangle)
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionThe source image has incorrect pixel format.
InvalidImagePropertiesExceptionTemplate image is bigger than source image.
See Also