New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codomain web #4839
Codomain web #4839
Conversation
Supported by additional parameter in setActiveChannels() and gettter/setter on Image
Also support 'r' when loading other users' rdefs thumbnails
Conflicting PR. Removed from build OMERO-DEV-merge-push#444. See the console output for more details.
|
c9499f2
to
50a077b
Compare
Conflicting PR. Removed from build OMERO-DEV-merge-push#449. See the console output for more details.
|
I've added |
Better to exclude the histogram PR from the build since it has been marked as onhold. |
Looks alright! 👍 |
@chris-allan You might want to look at the BlitzGateway and webgateway parts of this PR. |
if we re-activate other codomain map e.g. plane slicing or contrast stretching |
@jburel The strategy will always be to find a simple, clear and concise way of encoding that info into a query string. It depends on what extra parameters we need for plane slicing or contrast stretching. For reverse it is really just a boolean flag per channel so it is quite simple. |
To test the last commits, save Reverse Intensity on a channel in webclient then import the image into OMERO.figure. The channel should still be rendered with Reverse Intensity. Also test chgrp of an image with Reverse Intensity saved. |
Bug: Save to All does not propagate "switch off" of the "Reverse" checkbox.
For the images in Dataset there is a similar bug with workflow:
|
@waxenegger Thanks. I don't have a strong opinion on how to encode this and I'm happy to go with your suggestion, but I'd prefer not to have to change it too many times. @chris-allan Do you have any opinion on this. E.g. encode reverse intensity ON `````` ?c=1|0:255:r$FF0000,2|0:255:-r$00FF00``` And if it's missing (E.g.
|
I'm a bit torn to be honest. Ideally we would say something like The
Using your example you would then have something like:
The second channel could omit the trailing |
separation by | is a decent option too. only thing worth mentioning perhaps is that if further parameters are added with pipes, the optional nature of them needs to be addressed. either only the last one is optional or a distinguishing feature is needed to know which is which. with letters that might not constitute a problem, if numbers alone are added it becomes more of an issue. personally I don't mind either, separation by : or appending with | because they are both easy to parse/dissect. |
Agreed, @waxenegger. I think we would have to explicitly state if further If you want to go with a completely backwards, and forward, compatible option @will-moore, maybe we should just use an additional |
@chris-allan We need a way to both state that a channel is reversed AND to state that it is not reversed. We can't just have it defaulting to OFF if there's no flag. The default will be the saved state (E.g. as we do now with colors etc). E.g. If you just use I think I prefer to encode the reverse intensity within the channels string (instead of a separate
|
Understood, @will-moore. I assume your The fact of the matter is that the number of codomain maps the rendering engine has is potentially infinite. It is also ordered. Previously this was image wide. Now with #4823 it is per channel. Not taking this into account now and planning for additions sets us up for a situation where we end up breaking the URL style again in a possibly near future release because we didn't take that into account and do it properly to begin with. I don't think how the view code currently parses the /cc @jburel |
Codomain is trickier than color and lut since it is not one or the other:
It is time to revisit the "practical" approach to something more robust and extensible. |
@chris-allan No, I meant To support an extensible list of named Codomain maps per channel, each with a dictionary of parameters and ON/OFF flag, we'd need something like json. E.g. for 2 channels:
|
@will-moore: for info, |
I will remove the url encoding discussion from this PR since we are still exploring way to encode it Discussed today: we keep the "-r" option for now and open a design issue for the url exploration |
Did a quick general Rnd check today, all the bugs seem to be fixed. Behaves as expected. |
Created a separate trello card for the SPW grid view thumbs problem. https://trello.com/c/YAeGIgXq/130-thumbnails-rnd-settings-web-plates |
URL formatting card: https://trello.com/c/PzMTIpY2/132-rendering-settings-in-url |
Could you add tests in |
Conflicting PR. Removed from build OMERO-DEV-merge-push#479. See the console output for more details.
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#480. See the console output for more details.
|
Conflicting PR. Removed from build OMERO-DEV-merge-push#481. See the console output for more details.
|
Waiting on a final check gh-4850 so we can merge both client PRs. |
see https://trello.com/c/h8OylVrf/209-lut-follow-up for slider color when a lut is selected |
What this PR does
Webclient support for 'Reverse Map Codomains' which allows you to reverse the intensity rendering for each channel in an image.
Based on server-side work in #4823.
Testing this PR
Related reading
https://trello.com/c/9iAe3Sg9/95-lut-support