{"action":"created","issue":{"url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/455","repository_url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK","labels_url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/455/comments","events_url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/455/events","html_url":"https://github.com/DigitalSlideArchive/HistomicsTK/issues/455","id":293680085,"number":455,"title":"Positive Pixel Count error","user":{"login":"yliu7366","id":30328162,"avatar_url":"https://avatars1.githubusercontent.com/u/30328162?v=4","gravatar_id":"","url":"https://api.github.com/users/yliu7366","html_url":"https://github.com/yliu7366","followers_url":"https://api.github.com/users/yliu7366/followers","following_url":"https://api.github.com/users/yliu7366/following{/other_user}","gists_url":"https://api.github.com/users/yliu7366/gists{/gist_id}","starred_url":"https://api.github.com/users/yliu7366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yliu7366/subscriptions","organizations_url":"https://api.github.com/users/yliu7366/orgs","repos_url":"https://api.github.com/users/yliu7366/repos","events_url":"https://api.github.com/users/yliu7366/events{/privacy}","received_events_url":"https://api.github.com/users/yliu7366/received_events","type":"User","site_admin":false},"labels":[{"id":273489036,"url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"cdeepakroy","id":1923534,"avatar_url":"https://avatars1.githubusercontent.com/u/1923534?v=4","gravatar_id":"","url":"https://api.github.com/users/cdeepakroy","html_url":"https://github.com/cdeepakroy","followers_url":"https://api.github.com/users/cdeepakroy/followers","following_url":"https://api.github.com/users/cdeepakroy/following{/other_user}","gists_url":"https://api.github.com/users/cdeepakroy/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeepakroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeepakroy/subscriptions","organizations_url":"https://api.github.com/users/cdeepakroy/orgs","repos_url":"https://api.github.com/users/cdeepakroy/repos","events_url":"https://api.github.com/users/cdeepakroy/events{/privacy}","received_events_url":"https://api.github.com/users/cdeepakroy/received_events","type":"User","site_admin":false},"assignees":[{"login":"cdeepakroy","id":1923534,"avatar_url":"https://avatars1.githubusercontent.com/u/1923534?v=4","gravatar_id":"","url":"https://api.github.com/users/cdeepakroy","html_url":"https://github.com/cdeepakroy","followers_url":"https://api.github.com/users/cdeepakroy/followers","following_url":"https://api.github.com/users/cdeepakroy/following{/other_user}","gists_url":"https://api.github.com/users/cdeepakroy/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeepakroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeepakroy/subscriptions","organizations_url":"https://api.github.com/users/cdeepakroy/orgs","repos_url":"https://api.github.com/users/cdeepakroy/repos","events_url":"https://api.github.com/users/cdeepakroy/events{/privacy}","received_events_url":"https://api.github.com/users/cdeepakroy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-01T20:54:39Z","updated_at":"2018-02-08T17:32:11Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI followed the example (https://digitalslidearchive.github.io/HistomicsTK/examples/positive-pixel-count.html) and used the example image under the section of \"Analyzing a small image with count_image\" but got some error messages:\r\n\r\nINFO:root:Using\r\npython for large_image caching Traceback (most recent call last): File \"PositivePixelCount/PositivePixelCount.py\", line 49, in <module> main(CLIArgumentParser().parse_args()) File \"PositivePixelCount/PositivePixelCount.py\", line 39, in main label_image = color_map[label_image]\r\nIndexError: index 4 is out of bounds for axis 0 with size 4\r\n\r\nThis same error happens if I try my own images.\r\n\r\nI was using a fresh installation of HistomicsTK and my test was in the HistomicsTK web interface instead of a notebook."},"comment":{"url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/comments/364187888","html_url":"https://github.com/DigitalSlideArchive/HistomicsTK/issues/455#issuecomment-364187888","issue_url":"https://api.github.com/repos/DigitalSlideArchive/HistomicsTK/issues/455","id":364187888,"user":{"login":"yliu7366","id":30328162,"avatar_url":"https://avatars1.githubusercontent.com/u/30328162?v=4","gravatar_id":"","url":"https://api.github.com/users/yliu7366","html_url":"https://github.com/yliu7366","followers_url":"https://api.github.com/users/yliu7366/followers","following_url":"https://api.github.com/users/yliu7366/following{/other_user}","gists_url":"https://api.github.com/users/yliu7366/gists{/gist_id}","starred_url":"https://api.github.com/users/yliu7366/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yliu7366/subscriptions","organizations_url":"https://api.github.com/users/yliu7366/orgs","repos_url":"https://api.github.com/users/yliu7366/repos","events_url":"https://api.github.com/users/yliu7366/events{/privacy}","received_events_url":"https://api.github.com/users/yliu7366/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T17:32:11Z","updated_at":"2018-02-08T17:32:11Z","author_association":"NONE","body":"@cdeepakroy thank you very much for looking into this issue. I am using the same image (screen copied from the jupyter notebook at resolution of 1688x932) and the same parameters in the notebook example. One thing I did is to convert the image to be a large_image format as HistomicsTK complains about 'not a large_image format' when I tried to open the image as is. Other than that I can not think about something else related to image index (size) error."}}
{"actor":{"display_login":"yliu7366"}}