Cv2GpuMatchTemplate Method OpenCvSharp Class Library
Computes a proximity map for a raster template and an image where the template is searched for.

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

public static void MatchTemplate(
	GpuMat image,
	GpuMat templ,
	GpuMat result,
	MatchTemplateMethod method,
	Stream stream = null
)

Parameters

image
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Source image. CV_32F and CV_8U depth images (1..4 channels) are supported for now.
templ
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Template image with the size and type the same as image.
result
Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Map containing comparison results (CV_32FC1). If image is W x H and templ is w x h, then result must be W-w+1 x H-h+1.
method
Type: OpenCvSharpMatchTemplateMethod
Specifies the way to compare the template with the image.
stream (Optional)
Type: OpenCvSharp.CPlusPlus.GpuStream
Stream for the asynchronous version.
See Also

Reference