1 | initial version |
Probably you can't accelerate matchTemplate() since it is already optimized. However maybe you are calling it too often? So please elaborate about your problem you want to solve! Which overlap you want to detect? Maybe there exist an alternative approach?!