MatMatchTemplate Method OpenCvSharp Class Library
Computes the proximity map for the raster template and the image where the template is searched for The input is Image where the search is running; should be 8-bit or 32-bit floating-point.

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

public Mat MatchTemplate(
	InputArray templ,
	MatchTemplateMethod method
)

Parameters

templ
Type: OpenCvSharp.CPlusPlusInputArray
Searched template; must be not greater than the source image and have the same data type
method
Type: OpenCvSharpMatchTemplateMethod
Specifies the comparison method

Return Value

Type: Mat
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).
See Also

Reference