GitHub PullRequestReviewCommentEvent at 2014-03-12 22:01:14
Repository: scikit-image
Actor: RONNCC
Payload: {"comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/10543564","id":10543564,"diff_hunk":"@@ -256,3 +257,51 @@ def threshold_isodata(image, nbins=256):\n     # This implementation returns threshold where\n     # `background <= threshold < foreground`.\n     return threshold\n+\n+def threshold_bradley(image,block_size):\n+\t\"\"\"Return threshold value based on Bradley method.\n+\n+    Adaptive Thresholding Using the Integral Image, known as Bradley threshold method.\n+\n+    Parameters\n+    ----------\n+    image : array\n+        Input image.\n+    block_size : int\n+        Window size used for convolution.In the reference[1],it is taken as (width of image)/8.\n+\n+    Returns\n+    -------\n+    threshold : Binary image \n+        \n+\n+    References\n+    ----------\n+    .. [1]Derek Bradley*, Gerhard Roth, \"Adaptive Thresholding Using the Integral Image\"","path":"skimage/filter/thresholding.py","position":34,"original_position":34,"commit_id":"9f59b780724c95ffd7f96b087437c79632205946","original_commit_id":"9f59b780724c95ffd7f96b087437c79632205946","user":{"login":"RONNCC","id":1313566,"avatar_url":"https://gravatar.com/avatar/d300b79d59e67c336270e6a9ca1d18b1?d=https%3A%2F%2Fidenticons.github.com%2Fe69205ca4dddd0715578eed04c9a7cb7.png&r=x","gravatar_id":"d300b79d59e67c336270e6a9ca1d18b1","url":"https://api.github.com/users/RONNCC","html_url":"https://github.com/RONNCC","followers_url":"https://api.github.com/users/RONNCC/followers","following_url":"https://api.github.com/users/RONNCC/following{/other_user}","gists_url":"https://api.github.com/users/RONNCC/gists{/gist_id}","starred_url":"https://api.github.com/users/RONNCC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RONNCC/subscriptions","organizations_url":"https://api.github.com/users/RONNCC/orgs","repos_url":"https://api.github.com/users/RONNCC/repos","events_url":"https://api.github.com/users/RONNCC/events{/privacy}","received_events_url":"https://api.github.com/users/RONNCC/received_events","type":"User","site_admin":false},"body":"D. Bradley and G. Roth, “Adaptive thresholding using the integral image,” Journal of Graphics Tools 12(2), pp. 13–21, 2007.","created_at":"2014-03-12T22:01:14Z","updated_at":"2014-03-12T22:01:14Z","html_url":"https://github.com/scikit-image/scikit-image/pull/919#discussion_r10543564","pull_request_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/919","_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/10543564"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/919#discussion_r10543564"},"pull_request":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/919"}}}}