ImageTColor, TDepthMatchTemplate Method |
http://www.emgu.com
The function slides through image, compares overlapped patches of size wxh with templ using the specified method and return the comparison results
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Image<Gray, float> MatchTemplate(
Image<TColor, TDepth> template,
TemplateMatchingType method
)
Public Function MatchTemplate (
template As Image(Of TColor, TDepth),
method As TemplateMatchingType
) As Image(Of Gray, Single)
public:
Image<Gray, float>^ MatchTemplate(
Image<TColor, TDepth>^ template,
TemplateMatchingType method
)
member MatchTemplate :
template : Image<'TColor, 'TDepth> *
method : TemplateMatchingType -> Image<Gray, float32>
Parameters
- template
- Type: Emgu.CVImageTColor, TDepth
Searched template; must be not greater than the source image and the same data type as the image - method
- Type: Emgu.CV.CvEnumTemplateMatchingType
Specifies the way the template must be compared with image regions
Return Value
Type:
ImageGray,
SingleThe comparison result: width = this.Width - template.Width + 1; height = this.Height - template.Height + 1
See Also