Process images matching blocks between hem.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public List<BlockMatch> ProcessImage( Bitmap sourceImage, List<IntPoint> coordinates, Bitmap searchImage ) |
Parameters
- sourceImage
- Type: System.Drawing..::.Bitmap
Source image with reference points.
- coordinates
- Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>)
List of reference points to be matched.
- searchImage
- Type: System.Drawing..::.Bitmap
Image in which the reference points will be looked for.
Return Value
Returns list of found block matches. The list is sorted by similarity of found matches in descending order.Implements
IBlockMatching..::.ProcessImage(Bitmap, List<(Of <(IntPoint>)>), Bitmap)
Exceptions
| Exception | Condition |
|---|---|
| AForge.Imaging..::.InvalidImagePropertiesException | Source and search images sizes must match. |
| System..::.ArgumentException | Source images can be grayscale (8 bpp indexed) or color (24 bpp) image only. |
| AForge.Imaging..::.InvalidImagePropertiesException | Source and search images must have same pixel format. |