Ask Your Question

Detailed code of matchTemplate

asked 2014-10-20 11:59:51 -0500

michael6688 gravatar image

Hi all,

I am just curious about whether it is possible for us to access the detailed codes of the OpenCV functions? For example, I am currently working on a project that involves the function of matchTemplate. I know how to use it, but I would like to know the detailed code of this function, and maybe make some modifications to it to better cater to my needs. So is it possible to access the code?

Thanks in advance!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-10-22 02:05:27 -0500

updated 2014-10-22 07:16:28 -0500

This is how you can find your code:

1) find out in which module your function is (google for cv::matchTemplate brings you to the docu):

-> we are in imgproc

2) go to the OpenCV git at

3) now look in modules/imgproc/src

4) find your code at

edit flag offensive delete link more

answered 2014-10-21 17:25:49 -0500

Witek gravatar image

OpenCV comes with full source code! Look for file: templmatch.cpp

edit flag offensive delete link more

Question Tools


Asked: 2014-10-20 11:59:51 -0500

Seen: 2,316 times

Last updated: Oct 22 '14