<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/3639" rel="nofollow">http://code.opencv.org/issues/3639</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Alexander Cheparukhin on 2014-04-09 12:28
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: Medium
|| PR: 
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Alexander Cheparukhin on 2014-04-09 12:28
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: Medium
|| PR: 
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">Alpha-dependent template matching (matchTemplate)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Andrew Senin on 2014-05-05 14:05</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h5 dir="auto">patrick kw on 2014-09-20 03:11</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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."><pre class="notranslate"><code class="notranslate">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.
</code></pre></div>
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/3926" rel="nofollow">http://code.opencv.org/issues/3926</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Robby Longhorn on 2014-09-27 03:41
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: 
|| PR: 
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Robby Longhorn on 2014-09-27 03:41
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: 
|| PR: 
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">matchTemplate() with mask or transparency</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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!"><pre class="notranslate"><code class="notranslate">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!
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Robby Longhorn on 2014-09-28 23:13</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h5 dir="auto">Vladislav Vinogradov on 2014-09-30 09:10</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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"><pre class="notranslate"><code class="notranslate">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
</code></pre></div>
<h5 dir="auto">Yan Wang on 2014-12-29 11:33</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tried to implement it:
https://github.com/Itseez/opencv/pull/3554
Please help review this PR. Thanks

Vladislav Vinogradov wrote:
&gt; Hello Robby,
&gt; 
&gt; Thank you for your report!
&gt; 
&gt; Unfortunately, we have a limited human resources.
&gt; 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)?
&gt; Your help will be highly appreciated!"><pre class="notranslate"><code class="notranslate">I tried to implement it:
https://github.com/Itseez/opencv/pull/3554
Please help review this PR. Thanks

Vladislav Vinogradov wrote:
&gt; Hello Robby,
&gt; 
&gt; Thank you for your report!
&gt; 
&gt; Unfortunately, we have a limited human resources.
&gt; 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)?
&gt; Your help will be highly appreciated!
</code></pre></div>