imageproc::template_matching

Function match_template

Source
pub fn match_template(
    image: &GrayImage,
    template: &GrayImage,
    method: MatchTemplateMethod,
) -> Image<Luma<f32>>
Expand description

Slides a template over an image and scores the match at each point using the requested method.

The returned image has dimensions image.width() - template.width() + 1 by image.height() - template.height() + 1.

ยงPanics

If either dimension of template is not strictly less than the corresponding dimension of image.