Issue 1:
Transferred from http://code.opencv.org/issues/3639

|| Alexander Cheparukhin on 2014-04-09 12:28
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: Medium
|| PR:
|| Platform: None / None

Alpha-dependent template matching (matchTemplate)

Alpha channel support would be very useful in matchTemplate function, so that transparent pattern areas wouldn't affect the result. I've found the description of this problem on Stack Overflow:
http://stackoverflow.com/questions/12139381/alpha-dependent-template-matching

History

Andrew Senin on 2014-05-05 14:05

Alexander,

Thanks for your proposal. Since our resources are limited please consider contributing this feature and sending a pull request (http://code.opencv.org/projects/opencv/wiki/How_to_contribute). All your help is highly appreciated!
- Target version set to Next Hackathon
- Difficulty set to Medium
- Assignee set to Alexander Cheparukhin
- Status changed from New to Open
- Category set to imgproc, video

patrick kw on 2014-09-20 03:11

Hi Alexander, Andrew,

awu has developed Alpha-dependent template matching for OpenCV. The source codes are available here: http://answers.opencv.org/question/16535/alpha-dependent-template-matching/.

Can you add these codes to OpenCV?

Thanks.

Issue 2:
Transferred from http://code.opencv.org/issues/3926

|| Robby Longhorn on 2014-09-27 03:41
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None

matchTemplate() with mask or transparency

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!

History

Robby Longhorn on 2014-09-28 23:13

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

Vladislav Vinogradov on 2014-09-30 09:10

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!
- Priority changed from High to Normal
- Status changed from New to Open
- Category set to imgproc, video

Yan Wang on 2014-12-29 11:33

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!