CvInvokeMatchTemplate Method |
http://www.emgu.com
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.CVAssembly: Emgu.CV.World (in Emgu.CV.World.dll) Version: 3.2.0.2682 (3.2.0.2682)
Syntax public static void MatchTemplate(
IInputArray image,
IInputArray templ,
IOutputArray result,
TemplateMatchingType method,
IInputArray mask = null
)
Public Shared Sub MatchTemplate (
image As IInputArray,
templ As IInputArray,
result As IOutputArray,
method As TemplateMatchingType,
Optional mask As IInputArray = Nothing
)
public:
static void MatchTemplate(
IInputArray^ image,
IInputArray^ templ,
IOutputArray^ result,
TemplateMatchingType method,
IInputArray^ mask = nullptr
)
static member MatchTemplate :
image : IInputArray *
templ : IInputArray *
result : IOutputArray *
method : TemplateMatchingType *
?mask : IInputArray
(* Defaults:
let _mask = defaultArg mask null
*)
-> unit
Parameters
- image
- Type: Emgu.CVIInputArray
Image where the search is running. It should be 8-bit or 32-bit floating-point - templ
- Type: Emgu.CVIInputArray
Searched template; must be not greater than the source image and the same data type as the image - result
- Type: Emgu.CVIOutputArray
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.CvEnumTemplateMatchingType
Specifies the way the template must be compared with image regions - mask (Optional)
- Type: Emgu.CVIInputArray
Mask of searched template. It must have the same datatype and size with templ. It is not set by default.
See Also