Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Template matching-multiple objects

Helo guys I am new here and need Help with getting all locations from MatchTemplate. I use Emgu wrapper but I appreciate also c++ code samples. I use OpenCV 3.2

So my problem is that with MinMax I get only 1 location of template searched on source image(but on this image is about 10 objects same like template) so I want to get locations of all. I saw many examples of FloodFill with which it should be possible(in older OpenCV versions) but I am not able to edit it to my needs.

How do MinMax function access to result of MatchTemplate ? Can I get those locations manually from result without any function ?

My source code preview from stack owerflow: https://stackoverflow.com/questions/45043504/templatematching-show-multiple-locations

PS: I do this for about 3 days without success, so I would be very thankful for help.

THANK YOU !

Template matching-multiple objects

Helo guys I am new here and need Help with getting all locations from MatchTemplate. I use Emgu wrapper but I appreciate also c++ code samples. I use OpenCV 3.2

So my problem is that with MinMax I get only 1 location of template searched on source image(but on this image is about 10 objects same like template) so I want to get locations of all. I saw many examples of FloodFill with which it should be possible(in older OpenCV versions) but I am not able to edit it to my needs.

How do MinMax function access to result of MatchTemplate ? Can I get those locations manually from result without any function ?

My source code preview from stack owerflow: https://stackoverflow.com/questions/45043504/templatematching-show-multiple-locations

PS: I do this for about 3 days without success, so I would be very thankful for help.

THANK YOU !