Ask Your Question
0

template matching

asked 2016-06-19 05:57:20 -0600

Yannis gravatar image

updated 2016-06-20 02:28:45 -0600

pklab gravatar image

Hello

In an image drawing (eg scanned) the user selects a specific region using a rectangle (some drawing object). This is the template. Alternatively it may be loaded from a list of images.

My application has to locate all the same (or similar depending on sensitivity) regions/objects that correspond to this template.

  1. Is this something that can be accomplished with opencv?
  2. Are there any samples?
  3. My development environment is Visual Studio 2013 and c#

Thank you Yannis

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-06-19 21:31:45 -0600

Tetragramm gravatar image

Try checking out the tutorials like this one HERE. They are quite informative, and have links to the documentation which is even more informative. Many questions can be answered just by reading these.

edit flag offensive delete link more

Comments

1

1st OpenCV do not support C# directly.

The tutorial is fine but it should be improved because it always find something due to results normalization. described at point 9. This normalization make result relative to the current matching so that max score becomes 1 even if is a bad match.

If you want to accept or discard the matching, you have to use the *_NORMED version of methods because they provide output in a fixed range 0..1 where 1 means perfect match (with SQDIFF 0 means perfect). See this and this

pklab gravatar imagepklab ( 2016-06-20 02:26:08 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-06-19 05:57:20 -0600

Seen: 170 times

Last updated: Jun 20 '16