Compares template against overlapped image regions.
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void MatchTemplate( CvArr image, CvArr templ, CvArr result, MatchTemplateMethod method )
Parameters
- image
- Type: OpenCvSharpCvArr
Image where the search is running. It should be 8-bit or 32-bit floating-point. - templ
- Type: OpenCvSharpCvArr
Searched template; must be not greater than the source image and the same data type as the image. - result
- Type: OpenCvSharpCvArr
A map of comparison results; single-channel 32-bit floating-point. If image is W×H and templ is w×h then result must be W-w+1×H-h+1. - method
- Type: OpenCvSharpMatchTemplateMethod
Specifies the way the template must be compared with image regions.
See Also