Ask Your Question

Jeff Lee's profile - activity

2013-08-08 19:43:25 -0600 commented answer Source image having 2 or more part matched with a template image

Ah... It turns out I was understanding in a wrong way. I should have read the example code more precisely. So, if I understood well, "matchTemplate" returns the matrix R of comparison result and should use threshold() and minMaxLoc() after using "matchTemplate" function.
Thank you for explaining the method in easy sentences! I really appreciate your help!

2013-08-08 19:34:39 -0600 received badge  Scholar (source)
2013-08-08 19:34:00 -0600 commented answer Source image having 2 or more part matched with a template image

Thank you for your kindness suggesting such a specific example. The example helped me a lot in understanding how to use the "matchTemplate" function. Unfortunately, I was wondering about what "matchTemplate" returns in such situation. However, by reading the example, I was able to assume the result of calling "matchTemplate" in this case. Again, I really appreciate your help. Thanks!

2013-08-08 03:35:38 -0600 received badge  Editor (source)
2013-08-08 03:28:22 -0600 asked a question Source image having 2 or more part matched with a template image

Hello! I was surveying image matchTemplate algorithm and found out there is no explanation about what happens when there are 2 or more regions matched with template image on the source image. For example, I want to find a rectangle in the image which has two exactly same rectangles. Does Function "matchTemplate" return 2 or more outlined part on one Source image? Or 2 or more Source images with one outlined region each? Or just treat as exception?

I understood that finding image matched is related to Function "minMaxLoc", but, again, there is no explanation about what happens when there are 2 or more maximum values with different indexes on matrix. I have been so curious about this situation, but cannot infer what will happen on this special situation. If I understood the reference correctly, the code does not consider such condition. It only deals with situation that there are one maximum value and one minimum value.

I really want to execute by myself, but I cannot access development environment recently. And there is no way to understand why it happens like that. As a student who is not a skilled programmer, I'd appreciate some help on this problem. Thanks!

Jeff Lee

PS.I was reading information on http://www.stb-tester.com ,which is about Set Top Box Test Tool using matchTemplate algorithm, and end up here.