matchTemplate() with mask or transparency (Feature #3926)


Added by Robby Longhorn over 10 years ago. Updated over 9 years ago.


Status:Open Start date:2014-09-27
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:imgproc, video
Target version:-
Difficulty: Pull request:

Description

There are many people asking the same question and there is no answer.
Why does OpenCV not allow to search for a template using a mask or transparency.

A detailed description of the feature request with example images can be found here:
http://stackoverflow.com/questions/15459090/how-to-find-a-template-in-an-image-using-a-mask-or-transparency-with-opencv-an

For me it is incredible that this important functionality is not implemented in such a huge library!


Associated revisions

Revision 887fe932
Added by Vadim Pisarevsky almost 10 years ago

Merge pull request #3926 from stoneyang:stone

History

Updated by Robby Longhorn over 10 years ago

I found a very reasonable solution to the problem here:
I think OpenCV should implement something similar to this CUFFT code.

http://stackoverflow.com/questions/12139381/alpha-dependent-template-matching?lq=1

The code for that post can be found here:

http://pastebin.com/eZDRpmDm

Updated by Vladislav Vinogradov over 10 years ago

Hello Robby,

Thank you for your report!

Unfortunately, we have a limited human resources.
Since you've already done investigation, could you please create a contribution with suggested code (http://code.opencv.org/projects/opencv/wiki/How_to_contribute)?
Your help will be highly appreciated!

  • Status changed from New to Open
  • Category set to imgproc, video
  • Priority changed from High to Normal

Updated by Yan Wang about 10 years ago

I tried to implement it:
https://github.com/Itseez/opencv/pull/3554
Please help review this PR. Thanks

Vladislav Vinogradov wrote:

Hello Robby,

Thank you for your report!

Unfortunately, we have a limited human resources.
Since you've already done investigation, could you please create a contribution with suggested code (http://code.opencv.org/projects/opencv/wiki/How_to_contribute)?
Your help will be highly appreciated!

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4837

Also available in: Atom PDF