Start » Filter Reference » OpenCV » Object Detection » cvMatchTemplate

cvMatchTemplate


Module: OpenCV

Compares a template against overlapped image regions.

Name Type Description
Input value
inImage Image Image where the search is running.
Input value
inTempl Image Searched template. It must be not greater than the source image and have the same data type.
Input value
inMethod CvTemplateMatchingMethod Parameter specifying the comparison method.
Output value
outResult Image Map of comparison results.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Empty inImage in cvMatchTemplate.
DomainError Empty inTempl in cvMatchTemplate.
DomainError inImage and inTempl must have the same pixel's types and number of channels in cvMatchTemplate.
DomainError inImage must have UINT8 or REAL pixel's type in cvMatchTemplate.

Complexity Level

This filter is available on Basic Complexity Level.