pub fn create_template_matching_def(
src_type: i32,
method: i32,
) -> Result<Ptr<CUDA_TemplateMatching>>
Expand description
Creates implementation for cuda::TemplateMatching .
§Parameters
- srcType: Input source type. CV_32F and CV_8U depth images (1..4 channels) are supported for now.
- method: Specifies the way to compare the template with the image.
- user_block_size: You can use field user_block_size to set specific block size. If you leave its default value Size(0,0) then automatic estimation of block size will be used (which is optimized for speed). By varying user_block_size you can reduce memory requirements at the cost of speed.
The following methods are supported for the CV_8U depth images for now:
- CV_TM_SQDIFF
- CV_TM_SQDIFF_NORMED
- CV_TM_CCORR
- CV_TM_CCORR_NORMED
- CV_TM_CCOEFF
- CV_TM_CCOEFF_NORMED
The following methods are supported for the CV_32F images for now:
- CV_TM_SQDIFF
- CV_TM_CCORR
§See also
matchTemplate
§Note
This alternative version of create_template_matching function uses the following default values for its arguments:
- user_block_size: Size()