Skip to main content

template_match

Function template_match 

Source
pub fn template_match(
    image: &Tensor,
    template: &Tensor,
    method: TemplateMatchMethod,
) -> Result<TemplateMatchResult, ImgProcError>
Expand description

Template matching. Input: [H, W] image and [TH, TW] template. Slides template over image computing a similarity map, returns the best match.

Both must be single-channel [H, W, 1].