Skip to main content

template_match

Function template_match 

Source
pub fn template_match<B: Backend>(
    source: &Image<B>,
    template: &Image<B>,
    method: TemplateMatchMethod,
) -> Result<Tensor<B, 2>>
Expand description

Performs template matching using sliding window correlation.

Returns a 2D tensor of shape [H - th + 1, W - tw + 1] where (th, tw) is the template size.