match_template

Function match_template 

Source
pub fn match_template<'a>(
    input: impl Into<Image<'a>>,
    template: impl Into<Image<'a>>,
    method: MatchTemplateMethod,
) -> Image<'static>
Expand description

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

This is a shorthand for:

let mut matcher = TemplateMatcher::new();
matcher.match_template(input, template, method);
matcher.wait_for_result().unwrap()

You can use find_extremes to find minimum and maximum values, and their locations in the result image.