Ask Your Question
0

Detailed code of matchTemplate

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

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
3

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

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

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): http://docs.opencv.org/modules/imgproc/doc/object_detection.html

-> we are in imgproc

2) go to the OpenCV git at https://github.com/Itseez/opencv/tree/master/

3) now look in modules/imgproc/src

4) find your code at https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/templmatch.cpp

edit flag offensive delete link more
1

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

Witek gravatar image

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

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 4,874 times

Last updated: Oct 22 '14