Ask Your Question
0

Optimizing matchTemplate

asked 2013-03-01 13:56:55 -0600

unxnut gravatar image

I have been using matchTemplate to look for some patterns in a video. I build a template in one frame and look for that in a few subsequent frames. I'll like to optimize my search. In a different environment that I used in the past, the matching process worked better if the template is defined with odd numbered pixels for height and width. Is there a similar requirement in OpenCV? Are there any other specific heuristics to improve the performance of the matchTemplate function?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-02 06:31:24 -0600

Guanta gravatar image

I don't know of any heuristics but you could optimize it using a hierarchical scheme, see http://opencv-code.com/tutorials/fast-template-matching-with-image-pyramid/

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-01 13:56:55 -0600

Seen: 3,121 times

Last updated: Mar 02 '13