{"action":"opened","issue":{"url":"https://api.github.com/repos/knime-ip/knip/issues/103","labels_url":"https://api.github.com/repos/knime-ip/knip/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/knime-ip/knip/issues/103/comments","events_url":"https://api.github.com/repos/knime-ip/knip/issues/103/events","html_url":"https://github.com/knime-ip/knip/issues/103","id":60022246,"number":103,"title":"Global Threshold Node with UNSIGNEDBYTETYPE","user":{"login":"kmader","id":116120,"avatar_url":"https://avatars.githubusercontent.com/u/116120?v=3","gravatar_id":"","url":"https://api.github.com/users/kmader","html_url":"https://github.com/kmader","followers_url":"https://api.github.com/users/kmader/followers","following_url":"https://api.github.com/users/kmader/following{/other_user}","gists_url":"https://api.github.com/users/kmader/gists{/gist_id}","starred_url":"https://api.github.com/users/kmader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmader/subscriptions","organizations_url":"https://api.github.com/users/kmader/orgs","repos_url":"https://api.github.com/users/kmader/repos","events_url":"https://api.github.com/users/kmader/events{/privacy}","received_events_url":"https://api.github.com/users/kmader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-05T21:53:44Z","updated_at":"2015-03-05T21:53:44Z","closed_at":null,"body":"The global threshold node has some strange behavior when used with ```UNSIGNEDBYTETYPE``` images and thresholds above 255. It appears that the threshold (input as a double) is cast to an unsigned byte and thus if you enter a threshold like 10000, you end up having applied a threshold of 55. By default, the threshold should be either \r\n- limited by the maximum type value\r\n- produce an error when it cannot be directly cast\r\n- or turned into TYPE.MAXVALUE or TYPE.MINVALUE if it is above or below either"}}