http://www.emgu.com
Assembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.4.2.1777 (2.4.2.1777)
This function is similiar to cvCalcBackProjectPatch. It slids through image, compares overlapped patches of size wxh with templ using the specified method and stores the comparison results to result
Namespace: Emgu.CV.GPUAssembly: Emgu.CV.GPU (in Emgu.CV.GPU.dll) Version: 2.4.2.1777 (2.4.2.1777)
Syntax
C# |
---|
public static void MatchTemplate( IntPtr image, IntPtr templ, IntPtr result, TM_TYPE method, IntPtr gpuMatchTemplateBuf, IntPtr stream ) |
Visual Basic |
---|
Public Shared Sub MatchTemplate ( _ image As IntPtr, _ templ As IntPtr, _ result As IntPtr, _ method As TM_TYPE, _ gpuMatchTemplateBuf As IntPtr, _ stream As IntPtr _ ) |
Visual C++ |
---|
public: static void MatchTemplate( IntPtr image, IntPtr templ, IntPtr result, TM_TYPE method, IntPtr gpuMatchTemplateBuf, IntPtr stream ) |
Parameters
- image
- Type: System..::..IntPtr
Image where the search is running. It should be 8-bit or 32-bit floating-point
- templ
- Type: System..::..IntPtr
Searched template; must be not greater than the source image and the same data type as the image
- result
- Type: System..::..IntPtr
A map of comparison results; single-channel 32-bit floating-point. If image is WxH and templ is wxh then result must be W-w+1xH-h+1.
- method
- Type: Emgu.CV.CvEnum..::..TM_TYPE
Specifies the way the template must be compared with image regions
- gpuMatchTemplateBuf
- Type: System..::..IntPtr
Pointer to GpuMatchTemplateBuf, if you use stream, you must specify a GpuMatchTemplateBuf
- stream
- Type: System..::..IntPtr
Use a Stream to call the function asynchronously (non-blocking) or IntPtr.Zero to call the function synchronously (blocking).