Click or drag to resize

ImageTColor, TDepthMatchTemplate Method
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: (
public Image<Gray, float> MatchTemplate(
	Image<TColor, TDepth> template,
	TemplateMatchingType method


Type: Emgu.CVImageTColor, TDepth
Searched template; must be not greater than the source image and the same data type as the image
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