Cv2MatchTemplate Method OpenCvSharp Class Library
Computes the proximity map for the raster template and the image where the template is searched for

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void MatchTemplate(
	InputArray image,
	InputArray templ,
	OutputArray result,
	MatchTemplateMethod method
)

Parameters

image
Type: OpenCvSharp.CPlusPlusInputArray
Image where the search is running; should be 8-bit or 32-bit floating-point
templ
Type: OpenCvSharp.CPlusPlusInputArray
Searched template; must be not greater than the source image and have the same data type
result
Type: OpenCvSharp.CPlusPlusOutputArray
A map of comparison results; will be single-channel 32-bit floating-point. If image is WxH and templ is wxh then result will be (W-w+1) x (H-h+1).
method
Type: OpenCvSharpMatchTemplateMethod
Specifies the comparison method
See Also

Reference