Process image looking for matchings with specified template.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public TemplateMatch[] ProcessImage( Bitmap image, Bitmap template, Rectangle searchZone ) |
Parameters
- image
- Type: System.Drawing..::.Bitmap
Source image to process.
- template
- Type: System.Drawing..::.Bitmap
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(Bitmap, Bitmap, Rectangle)
Exceptions
| Exception | Condition |
|---|---|
| AForge.Imaging..::.UnsupportedImageFormatException | The source image has incorrect pixel format. |
| AForge.Imaging..::.InvalidImagePropertiesException | Template image is bigger than source image. |