{"action":"created","issue":{"url":"https://api.github.com/repos/imagej/imagej-ops/issues/507","repository_url":"https://api.github.com/repos/imagej/imagej-ops","labels_url":"https://api.github.com/repos/imagej/imagej-ops/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/imagej/imagej-ops/issues/507/comments","events_url":"https://api.github.com/repos/imagej/imagej-ops/issues/507/events","html_url":"https://github.com/imagej/imagej-ops/issues/507","id":237182267,"number":507,"title":"Improve InvertII","user":{"login":"stelfrich","id":333358,"avatar_url":"https://avatars1.githubusercontent.com/u/333358?v=4","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":"open","locked":false,"assignee":{"login":"gselzer","id":29754838,"avatar_url":"https://avatars2.githubusercontent.com/u/29754838?v=4","gravatar_id":"","url":"https://api.github.com/users/gselzer","html_url":"https://github.com/gselzer","followers_url":"https://api.github.com/users/gselzer/followers","following_url":"https://api.github.com/users/gselzer/following{/other_user}","gists_url":"https://api.github.com/users/gselzer/gists{/gist_id}","starred_url":"https://api.github.com/users/gselzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gselzer/subscriptions","organizations_url":"https://api.github.com/users/gselzer/orgs","repos_url":"https://api.github.com/users/gselzer/repos","events_url":"https://api.github.com/users/gselzer/events{/privacy}","received_events_url":"https://api.github.com/users/gselzer/received_events","type":"User","site_admin":false},"assignees":[{"login":"gselzer","id":29754838,"avatar_url":"https://avatars2.githubusercontent.com/u/29754838?v=4","gravatar_id":"","url":"https://api.github.com/users/gselzer","html_url":"https://github.com/gselzer","followers_url":"https://api.github.com/users/gselzer/followers","following_url":"https://api.github.com/users/gselzer/following{/other_user}","gists_url":"https://api.github.com/users/gselzer/gists{/gist_id}","starred_url":"https://api.github.com/users/gselzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gselzer/subscriptions","organizations_url":"https://api.github.com/users/gselzer/orgs","repos_url":"https://api.github.com/users/gselzer/repos","events_url":"https://api.github.com/users/gselzer/events{/privacy}","received_events_url":"https://api.github.com/users/gselzer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2017-06-20T11:46:29Z","updated_at":"2018-03-01T19:01:33Z","closed_at":null,"author_association":"MEMBER","body":"[`InvertII`](https://github.com/imagej/imagej-ops/blob/dbbc347130ba9ee1b6659d9f0b5b20310960eb7f/src/main/java/net/imagej/ops/image/invert/InvertII.java) currently does inversion of `IterableInterval<I>`s solely based on the type of `I`.\r\n\r\nAs shortly discussed at the Fiji Learnathon, we might want to think about changing that behavior s.t. inversion can be based on the actual range of values in an `IterableInterval`:\r\n\r\n```java\r\n// Usage:\r\nRandomAccessibleInterval<DoubleType> input;\r\nimage().invert(input, new DoubleType(10d), new DoubleType(100d));\r\n  // Inverts values such that 10 maps to 100 and 100 maps to 10\r\nimage().invert(input);\r\n  // Inverts based on the actual min and max of input\r\nimage().invert(input, new DoubleType().getMinValue(), new DoubleType().getMaxValue());\r\n  // Inverts based only on the type's min and max\r\n```\r\n\r\nAny input on that topic? @imagejan \r\n\r\nSee also https://github.com/knime-ip/knip/issues/470.\r\n "},"comment":{"url":"https://api.github.com/repos/imagej/imagej-ops/issues/comments/369694964","html_url":"https://github.com/imagej/imagej-ops/issues/507#issuecomment-369694964","issue_url":"https://api.github.com/repos/imagej/imagej-ops/issues/507","id":369694964,"user":{"login":"gselzer","id":29754838,"avatar_url":"https://avatars2.githubusercontent.com/u/29754838?v=4","gravatar_id":"","url":"https://api.github.com/users/gselzer","html_url":"https://github.com/gselzer","followers_url":"https://api.github.com/users/gselzer/followers","following_url":"https://api.github.com/users/gselzer/following{/other_user}","gists_url":"https://api.github.com/users/gselzer/gists{/gist_id}","starred_url":"https://api.github.com/users/gselzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gselzer/subscriptions","organizations_url":"https://api.github.com/users/gselzer/orgs","repos_url":"https://api.github.com/users/gselzer/repos","events_url":"https://api.github.com/users/gselzer/events{/privacy}","received_events_url":"https://api.github.com/users/gselzer/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T19:01:33Z","updated_at":"2018-03-01T19:01:33Z","author_association":"CONTRIBUTOR","body":"@ctrueden should this PR be closed now that #517 has been merged?"}}
{"actor":{"display_login":"gselzer"}}