{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/63","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/63/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/63/events","html_url":"https://github.com/mshabunin/test2/issues/63","id":95401925,"number":63,"title":"weighted Hough","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20imgproc","name":"category: imgproc","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20video","name":"category: video","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/feature","name":"feature","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T10:17:16Z","updated_at":"2015-07-16T10:17:16Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/1410\r\n```\n|| ivansorokin - on 2011-10-07 15:17\n|| Priority: Normal\n|| Affected: None\n|| Category: imgproc, video\n|| Tracker: Feature\n|| Difficulty: None\n|| PR: None\n|| Platform: None / None\n```\n\nweighted Hough\n-----------\n```\nCurrently Hough transform take every point with the same weight: if the point is non zero then it increase every pixel value by one.\r\n\r\n<pre><code class=\"cpp\">\r\nif( image[i * step + j] != 0 )\r\n    for( n = 0; n < numangle; n++ )\r\n    {\r\n        r = cvRound( j * tabCos[n] + i * tabSin[n] );\r\n        r += (numrho - 1) / 2;\r\n        accum[(n+1) * (numrho+2) + r+1]++;\r\n    }\r\n</code></pre>\r\n\r\nIt would be great if it is possible to assign every point in image specific weight. For example, something like this:\r\n\r\n<pre><code class=\"cpp\">\r\nif( image[i * step + j] != 0 )\r\n    for( n = 0; n < numangle; n++ )\r\n    {\r\n        r = cvRound( j * tabCos[n] + i * tabSin[n] );\r\n        r += (numrho - 1) / 2;\r\n        accum[(n+1) * (numrho+2) + r+1] += image[i * step + j];\r\n    }\r\n</code></pre>\n```\n\nHistory\n-------\n##### Alexander Shishkov on 2012-03-21 12:43\n```\n-   Description changed from Currently Hough transform take every point\n    with the same weight: if the point... to Currently Hough transform\n    take every point with the same weight: if the point... More\n```"}}