| MatMatchTemplate Method |
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
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat MatchTemplate(
InputArray templ,
TemplateMatchModes method
)
Public Function MatchTemplate (
templ As InputArray,
method As TemplateMatchModes
) As Mat
public:
Mat^ MatchTemplate(
InputArray^ templ,
TemplateMatchModes method
)
member MatchTemplate :
templ : InputArray *
method : TemplateMatchModes -> Mat
Parameters
- templ
- Type: OpenCvSharpInputArray
Searched template; must be not greater than the source image and have the same data type - method
- Type: OpenCvSharpTemplateMatchModes
Specifies the comparison method
Return Value
Type:
MatA 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