Click or drag to resize

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)
Syntax
public Image<Gray, float> MatchTemplate(
	Image<TColor, TDepth> template,
	TemplateMatchingType method
)

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, Single
The comparison result: width = this.Width - template.Width + 1; height = this.Height - template.Height + 1
See Also