[−][src]Function opencv::cudaimgproc::create_template_matching
pub fn create_template_matching(
src_type: i32,
method: i32,
user_block_size: Size
) -> Result<Ptr<dyn CUDA_TemplateMatching>>
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
C++ default parameters
- user_block_size: Size()