{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3402","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3402/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3402/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3402/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3402","id":55730261,"number":3402,"title":"Colorizer","user":{"login":"joshmoore","id":88113,"avatar_url":"https://avatars.githubusercontent.com/u/88113?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmoore","html_url":"https://github.com/joshmoore","followers_url":"https://api.github.com/users/joshmoore/followers","following_url":"https://api.github.com/users/joshmoore/following{/other_user}","gists_url":"https://api.github.com/users/joshmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmoore/subscriptions","organizations_url":"https://api.github.com/users/joshmoore/orgs","repos_url":"https://api.github.com/users/joshmoore/repos","events_url":"https://api.github.com/users/joshmoore/events{/privacy}","received_events_url":"https://api.github.com/users/joshmoore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c"},{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/exclude","name":"exclude","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-28T09:04:08Z","updated_at":"2015-02-11T13:27:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3402","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3402","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3402.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3402.patch"},"body":"If the image for a pixels object has a CommentAnnotation in the namespace `openmicroscopy.org/ome/io/LUT` then the string value (`textValue`) will be passed to an `ImageJLutSource` and applied to the reader wrapper stack via a `Colorizer` instance. This will make it possible for the clients to manipulate the bytes which are returned from Bio-Formats before, e.g., rendering takes place.\r\n\r\n--depends-on openmicroscopy/bioformats#1551\r\n\r\nTo test, add such an annotation to an existing image:\r\n```\r\n$ dist/bin/omero obj new CommentAnnotation ns=openmicroscopy.org/ome/io/LUT textValue=ice\r\nCommentAnnotation:1\r\n$ dist/bin/omero obj new ImageAnnotationLink parent=Image:1 child=CommentAnnotation:1\r\nImageAnnotationLink:1\r\n```"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/73880260","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3402#issuecomment-73880260","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3402","id":73880260,"user":{"login":"joshmoore","id":88113,"avatar_url":"https://avatars.githubusercontent.com/u/88113?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmoore","html_url":"https://github.com/joshmoore","followers_url":"https://api.github.com/users/joshmoore/followers","following_url":"https://api.github.com/users/joshmoore/following{/other_user}","gists_url":"https://api.github.com/users/joshmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmoore/subscriptions","organizations_url":"https://api.github.com/users/joshmoore/orgs","repos_url":"https://api.github.com/users/joshmoore/repos","events_url":"https://api.github.com/users/joshmoore/events{/privacy}","received_events_url":"https://api.github.com/users/joshmoore/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T13:27:13Z","updated_at":"2015-02-11T13:27:13Z","body":"> Your description says the \"pixels object has CommentAnntoation\" but in fact you mean the Image has the Comment on it?\r\n\r\nSorry, yes. I forgot when writing the description that we took annotations off Pixels. (Description updated)\r\n\r\n> So, the clients should not display annotations with the openmicroscopy.org/ome/io/LUT namespace?\r\n\r\nIf that's possible. Alternatively, I move to a different type of annotation (XML? map?)\r\n\r\n> I'm guessing that \"ice\" is the name of an ImageJ lookup table?\r\n\r\nYes.\r\n\r\n> should be replaced by omero.constants.namespaces.NSLOOKUPTABLE.value\r\n\r\nThose are available in the internal server code.\r\n"}}