Back to Aurora Vision Studio website
	
                
                    
	
		
	You are here: Start » Filter Reference » OpenCV » Object Detection » cvMatchTemplate
| Module: | OpenCV | 
|---|
Compares a template against overlapped image regions.
| Name | Type | Description | |
|---|---|---|---|
![]()  | 
				inImage | Image | Image where the search is running. | 
![]()  | 
				inTempl | Image | Searched template. It must be not greater than the source image and have the same data type. | 
![]()  | 
				inMethod | CvTemplateMatchingMethod | Parameter specifying the comparison method. | 
![]()  | 
				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.

 Basic
