{"action":"created","issue":{"url":"https://api.github.com/repos/imagej/imagej-ops/issues/215","labels_url":"https://api.github.com/repos/imagej/imagej-ops/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/imagej/imagej-ops/issues/215/comments","events_url":"https://api.github.com/repos/imagej/imagej-ops/issues/215/events","html_url":"https://github.com/imagej/imagej-ops/pull/215","id":107470135,"number":215,"title":"Fixed bug in NormalizeRealTypeComputer","user":{"login":"stelfrich","id":333358,"avatar_url":"https://avatars.githubusercontent.com/u/333358?v=3","gravatar_id":"","url":"https://api.github.com/users/stelfrich","html_url":"https://github.com/stelfrich","followers_url":"https://api.github.com/users/stelfrich/followers","following_url":"https://api.github.com/users/stelfrich/following{/other_user}","gists_url":"https://api.github.com/users/stelfrich/gists{/gist_id}","starred_url":"https://api.github.com/users/stelfrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stelfrich/subscriptions","organizations_url":"https://api.github.com/users/stelfrich/orgs","repos_url":"https://api.github.com/users/stelfrich/repos","events_url":"https://api.github.com/users/stelfrich/events{/privacy}","received_events_url":"https://api.github.com/users/stelfrich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T08:59:57Z","updated_at":"2015-09-21T09:17:54Z","closed_at":"2015-09-21T09:17:11Z","pull_request":{"url":"https://api.github.com/repos/imagej/imagej-ops/pulls/215","html_url":"https://github.com/imagej/imagej-ops/pull/215","diff_url":"https://github.com/imagej/imagej-ops/pull/215.diff","patch_url":"https://github.com/imagej/imagej-ops/pull/215.patch"},"body":"I have tried to normalize an input image to the [0.0, 1.0] range with `opService.image().normalize(output, input, min, max, new DoubleType(0.0), new DoubleType(1.0));`. This wasn't very successful, since `tmp` is not correctly set, when both `sourceMin` and `sourceMax` are provided (as in my case) which in turn sets `factor` to `Double.INFINITY`.\r\n\r\nI am not sure if that is desired behavior or not. In any case, this PR fixes the issue for me.."},"comment":{"url":"https://api.github.com/repos/imagej/imagej-ops/issues/comments/141921423","html_url":"https://github.com/imagej/imagej-ops/pull/215#issuecomment-141921423","issue_url":"https://api.github.com/repos/imagej/imagej-ops/issues/215","id":141921423,"user":{"login":"dietzc","id":1267990,"avatar_url":"https://avatars.githubusercontent.com/u/1267990?v=3","gravatar_id":"","url":"https://api.github.com/users/dietzc","html_url":"https://github.com/dietzc","followers_url":"https://api.github.com/users/dietzc/followers","following_url":"https://api.github.com/users/dietzc/following{/other_user}","gists_url":"https://api.github.com/users/dietzc/gists{/gist_id}","starred_url":"https://api.github.com/users/dietzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dietzc/subscriptions","organizations_url":"https://api.github.com/users/dietzc/orgs","repos_url":"https://api.github.com/users/dietzc/repos","events_url":"https://api.github.com/users/dietzc/events{/privacy}","received_events_url":"https://api.github.com/users/dietzc/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T09:17:54Z","updated_at":"2015-09-21T09:17:54Z","body":"great! :+1: "}}