{"action":"closed","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4837","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4837/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4837/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4837/events","html_url":"https://github.com/Itseez/opencv/issues/4837","id":97435641,"number":4837,"title":"matchTemplate() with mask or transparency","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20imgproc","name":"category: imgproc","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20video","name":"category: video","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"A38700"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T10:46:25Z","updated_at":"2015-11-17T16:32:16Z","closed_at":"2015-11-17T16:32:16Z","body":"Transferred from http://code.opencv.org/issues/3926\r\n```\n|| Robby Longhorn on 2014-09-27 03:41\n|| Priority: Normal\n|| Affected: None\n|| Category: imgproc, video\n|| Tracker: Feature\n|| Difficulty: \n|| PR: \n|| Platform: None / None\n```\n\nmatchTemplate() with mask or transparency\n-----------\n```\nThere are many people asking the same question and there is no answer.\r\nWhy does OpenCV not allow to search for a template using a mask or transparency.\r\n\r\nA detailed description of the feature request with example images can be found here:\r\nhttp://stackoverflow.com/questions/15459090/how-to-find-a-template-in-an-image-using-a-mask-or-transparency-with-opencv-an\r\n\r\nFor me it is incredible that this important functionality is not implemented in such a huge library!\n```\n\nHistory\n-------\n##### Robby Longhorn on 2014-09-28 23:13\n```\nI found a very reasonable solution to the problem here:\r\nI think OpenCV should implement something similar to this CUFFT code.\r\n\r\nhttp://stackoverflow.com/questions/12139381/alpha-dependent-template-matching?lq=1\r\n\r\n\r\nThe code for that post can be found here:\r\n\r\nhttp://pastebin.com/eZDRpmDm\n```\n##### Vladislav Vinogradov on 2014-09-30 09:10\n```\nHello Robby,\r\n\r\nThank you for your report!\r\n\r\nUnfortunately, we have a limited human resources.\r\nSince you've already done investigation, could you please create a contribution with suggested code (http://code.opencv.org/projects/opencv/wiki/How_to_contribute)?\r\nYour help will be highly appreciated!\n-   Priority changed from High to Normal\n-   Status changed from New to Open\n-   Category set to imgproc, video\n```\n##### Yan Wang on 2014-12-29 11:33\n```\nI tried to implement it:\r\nhttps://github.com/Itseez/opencv/pull/3554\r\nPlease help review this PR. Thanks\r\n\r\nVladislav Vinogradov wrote:\r\n> Hello Robby,\r\n> \r\n> Thank you for your report!\r\n> \r\n> Unfortunately, we have a limited human resources.\r\n> 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)?\r\n> Your help will be highly appreciated!\n```"}}