{"action":"opened","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2991","repository_url":"https://api.github.com/repos/scikit-image/scikit-image","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2991/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2991/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/2991/events","html_url":"https://github.com/scikit-image/scikit-image/issues/2991","id":307559460,"number":2991,"title":"convert 2D array of contour to Binary Labeled Image","user":{"login":"SayanSeth","id":17662700,"avatar_url":"https://avatars2.githubusercontent.com/u/17662700?v=4","gravatar_id":"","url":"https://api.github.com/users/SayanSeth","html_url":"https://github.com/SayanSeth","followers_url":"https://api.github.com/users/SayanSeth/followers","following_url":"https://api.github.com/users/SayanSeth/following{/other_user}","gists_url":"https://api.github.com/users/SayanSeth/gists{/gist_id}","starred_url":"https://api.github.com/users/SayanSeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SayanSeth/subscriptions","organizations_url":"https://api.github.com/users/SayanSeth/orgs","repos_url":"https://api.github.com/users/SayanSeth/repos","events_url":"https://api.github.com/users/SayanSeth/events{/privacy}","received_events_url":"https://api.github.com/users/SayanSeth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T09:13:39Z","updated_at":"2018-03-22T09:13:39Z","closed_at":null,"author_association":"NONE","body":"How to convert 2D array of contour to Binary Labeled Image in scikit-image? I have found contour using active contour method.\r\n\r\nsnake = active_contour(I3,\r\n                   init, alpha=.75, beta=0.01, gamma=0.01, w_edge=.5,\r\n                   max_iterations=1000)\r\nsnake is a 2D-array. Now I have to apply regionprops for that I new binary labeled image.How to convert it?\r\n\r\nThe label should be such that the area inside the contour will be label 1 and outside area will be 0.\r\nIts Opposite of find_contours function."}}
{"actor":{"display_login":"SayanSeth"}}