Process images matching blocks between them.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
C# |
---|
public List<BlockMatch> ProcessImage( UnmanagedImage sourceImage, List<IntPoint> coordinates, UnmanagedImage searchImage ) |
Parameters
- sourceImage
- Type: AForge.Imaging..::.UnmanagedImage
Source unmanaged image with reference points.
- coordinates
- Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>)
List of reference points to be matched.
- searchImage
- Type: AForge.Imaging..::.UnmanagedImage
Unmanaged 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(UnmanagedImage, List<(Of <(IntPoint>)>), UnmanagedImage)
Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.InvalidImagePropertiesException | Source and search images sizes must match. |
AForge.Imaging..::.UnsupportedImageFormatException | Source images can be grayscale (8 bpp indexed) or color (24 bpp) image only. |
System..::.ArgumentException | Source and search images must have same pixel format. |