GitHub PullRequestReviewCommentEvent at 2014-06-17 05:53:34
Repository: scikit-image
Actor: jni
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/13843981","id":13843981,"diff_hunk":"@@ -0,0 +1,47 @@\n+import networkx as nx\n+import numpy as np\n+\n+\n+def threshold_cut(label, rag, thresh):\n+    \"\"\"Combines regions seperated by weight less than threshold.\n+\n+    Given an image's labels and its RAG, outputs new labels by\n+    combining regions whose nodes are seperated by a weight less\n+    than the given threshold.\n+\n+    Parameters\n+    ----------\n+    label : (width, height, 3) or (width, height, depth, 3) ndarray","path":"skimage/graph/graph_cut.py","position":14,"original_position":14,"commit_id":"70209e51d18421b027be1841c5bb07f9f7c8ead9","original_commit_id":"70209e51d18421b027be1841c5bb07f9f7c8ead9","user":{"login":"jni","id":492549,"avatar_url":"https://avatars.githubusercontent.com/u/492549?","gravatar_id":"f246a75a3ed39b6b92079ae0fa9e5852","url":"https://api.github.com/users/jni","html_url":"https://github.com/jni","followers_url":"https://api.github.com/users/jni/followers","following_url":"https://api.github.com/users/jni/following{/other_user}","gists_url":"https://api.github.com/users/jni/gists{/gist_id}","starred_url":"https://api.github.com/users/jni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jni/subscriptions","organizations_url":"https://api.github.com/users/jni/orgs","repos_url":"https://api.github.com/users/jni/repos","events_url":"https://api.github.com/users/jni/events{/privacy}","received_events_url":"https://api.github.com/users/jni/received_events","type":"User","site_admin":false},"body":"Labels don't have a channel dimension.","created_at":"2014-06-17T05:53:34Z","updated_at":"2014-06-17T05:53:34Z","html_url":"https://github.com/scikit-image/scikit-image/pull/1031#discussion_r13843981","pull_request_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031","_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/13843981"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1031#discussion_r13843981"},"pull_request":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031","id":17195614,"html_url":"https://github.com/scikit-image/scikit-image/pull/1031","diff_url":"https://github.com/scikit-image/scikit-image/pull/1031.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/1031.patch","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1031","number":1031,"state":"open","title":"Region Adjacency Graph","user":{"login":"vighneshbirodkar","id":3823490,"avatar_url":"https://avatars.githubusercontent.com/u/3823490?","gravatar_id":"c51ce9c4f97ded869a4798d02264d442","url":"https://api.github.com/users/vighneshbirodkar","html_url":"https://github.com/vighneshbirodkar","followers_url":"https://api.github.com/users/vighneshbirodkar/followers","following_url":"https://api.github.com/users/vighneshbirodkar/following{/other_user}","gists_url":"https://api.github.com/users/vighneshbirodkar/gists{/gist_id}","starred_url":"https://api.github.com/users/vighneshbirodkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vighneshbirodkar/subscriptions","organizations_url":"https://api.github.com/users/vighneshbirodkar/orgs","repos_url":"https://api.github.com/users/vighneshbirodkar/repos","events_url":"https://api.github.com/users/vighneshbirodkar/events{/privacy}","received_events_url":"https://api.github.com/users/vighneshbirodkar/received_events","type":"User","site_admin":false},"body":"## Example Images\r\n![figure_1](https://cloud.githubusercontent.com/assets/3823490/3291718/5ce9b952-f587-11e3-8c29-e2aace6d7794.png)\r\n![figure_2](https://cloud.githubusercontent.com/assets/3823490/3291723/7074b134-f587-11e3-8c73-d28222891a21.png)\r\n\r\n","created_at":"2014-06-16T18:53:41Z","updated_at":"2014-06-17T05:53:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"226ff2fa6c083e1e0bf800048fa847be5fbe80be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031/commits","review_comments_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031/comments","review_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/{number}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1031/comments","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/70209e51d18421b027be1841c5bb07f9f7c8ead9","head":{"label":"vighneshbirodkar:rag","ref":"rag","sha":"70209e51d18421b027be1841c5bb07f9f7c8ead9","user":{"login":"vighneshbirodkar","id":3823490,"avatar_url":"https://avatars.githubusercontent.com/u/3823490?","gravatar_id":"c51ce9c4f97ded869a4798d02264d442","url":"https://api.github.com/users/vighneshbirodkar","html_url":"https://github.com/vighneshbirodkar","followers_url":"https://api.github.com/users/vighneshbirodkar/followers","following_url":"https://api.github.com/users/vighneshbirodkar/following{/other_user}","gists_url":"https://api.github.com/users/vighneshbirodkar/gists{/gist_id}","starred_url":"https://api.github.com/users/vighneshbirodkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vighneshbirodkar/subscriptions","organizations_url":"https://api.github.com/users/vighneshbirodkar/orgs","repos_url":"https://api.github.com/users/vighneshbirodkar/repos","events_url":"https://api.github.com/users/vighneshbirodkar/events{/privacy}","received_events_url":"https://api.github.com/users/vighneshbirodkar/received_events","type":"User","site_admin":false},"repo":{"id":17216229,"name":"scikit-image","full_name":"vighneshbirodkar/scikit-image","owner":{"login":"vighneshbirodkar","id":3823490,"avatar_url":"https://avatars.githubusercontent.com/u/3823490?","gravatar_id":"c51ce9c4f97ded869a4798d02264d442","url":"https://api.github.com/users/vighneshbirodkar","html_url":"https://github.com/vighneshbirodkar","followers_url":"https://api.github.com/users/vighneshbirodkar/followers","following_url":"https://api.github.com/users/vighneshbirodkar/following{/other_user}","gists_url":"https://api.github.com/users/vighneshbirodkar/gists{/gist_id}","starred_url":"https://api.github.com/users/vighneshbirodkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vighneshbirodkar/subscriptions","organizations_url":"https://api.github.com/users/vighneshbirodkar/orgs","repos_url":"https://api.github.com/users/vighneshbirodkar/repos","events_url":"https://api.github.com/users/vighneshbirodkar/events{/privacy}","received_events_url":"https://api.github.com/users/vighneshbirodkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vighneshbirodkar/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":true,"url":"https://api.github.com/repos/vighneshbirodkar/scikit-image","forks_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/forks","keys_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/teams","hooks_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/events","assignees_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/tags","blobs_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/languages","stargazers_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/subscription","commits_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/issues/comments/{number}","contents_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/merges","archive_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/downloads","issues_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/vighneshbirodkar/scikit-image/releases{/id}","created_at":"2014-02-26T16:04:02Z","updated_at":"2014-06-17T05:14:20Z","pushed_at":"2014-06-16T19:52:43Z","git_url":"git://github.com/vighneshbirodkar/scikit-image.git","ssh_url":"git@github.com:vighneshbirodkar/scikit-image.git","clone_url":"https://github.com/vighneshbirodkar/scikit-image.git","svn_url":"https://github.com/vighneshbirodkar/scikit-image","homepage":"http://scikit-image.org","size":36931,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"scikit-image:master","ref":"master","sha":"df7a7eeb6bbe31ad7534e2fd82eb6c40fc911355","user":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?","gravatar_id":"ecfdb9c0fb27f546787d8f0c16f08f66","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"repo":{"id":2014929,"name":"scikit-image","full_name":"scikit-image/scikit-image","owner":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?","gravatar_id":"ecfdb9c0fb27f546787d8f0c16f08f66","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-image/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":false,"url":"https://api.github.com/repos/scikit-image/scikit-image","forks_url":"https://api.github.com/repos/scikit-image/scikit-image/forks","keys_url":"https://api.github.com/repos/scikit-image/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-image/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-image/scikit-image/teams","hooks_url":"https://api.github.com/repos/scikit-image/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-image/scikit-image/events","assignees_url":"https://api.github.com/repos/scikit-image/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-image/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-image/scikit-image/tags","blobs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-image/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-image/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-image/scikit-image/languages","stargazers_url":"https://api.github.com/repos/scikit-image/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/scikit-image/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/scikit-image/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/scikit-image/scikit-image/subscription","commits_url":"https://api.github.com/repos/scikit-image/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-image/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments/{number}","contents_url":"https://api.github.com/repos/scikit-image/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-image/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-image/scikit-image/merges","archive_url":"https://api.github.com/repos/scikit-image/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-image/scikit-image/downloads","issues_url":"https://api.github.com/repos/scikit-image/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-image/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-image/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/scikit-image/scikit-image/releases{/id}","created_at":"2011-07-07T22:07:20Z","updated_at":"2014-06-16T14:37:38Z","pushed_at":"2014-06-16T02:20:57Z","git_url":"git://github.com/scikit-image/scikit-image.git","ssh_url":"git@github.com:scikit-image/scikit-image.git","clone_url":"https://github.com/scikit-image/scikit-image.git","svn_url":"https://github.com/scikit-image/scikit-image","homepage":"http://scikit-image.org","size":61119,"stargazers_count":414,"watchers_count":414,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":226,"mirror_url":null,"open_issues_count":118,"forks":226,"open_issues":118,"watchers":414,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1031"},"issue":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1031"},"comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1031/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1031/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-image/scikit-image/statuses/70209e51d18421b027be1841c5bb07f9f7c8ead9"}}}}