robustTemplateMatching
robustTemplateMatching copied to clipboard
Zero index max_indices not handled by code
If the max_indices contain 0s, then the code completely breaks and we are unable to compute the bounding box.
Steps to reproduce:
Any scenario where max_indices has a 0 value breaks the code, as we run into the following broadcasting error:

A potential fix could be changing the slicing methodology for the NCC_part component.
Fix for this has been made in the PR (and most other issues).
@kamata1729