-
Notifications
You must be signed in to change notification settings - Fork 458
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
ENH: Added segment selector combobox to slice view controller #581
ENH: Added segment selector combobox to slice view controller #581
Conversation
Segmentation nodes do not provide a merged labelmap any more to display in the label layer. It caused confusion between labelmaps and segmentations, it was undeterministic in case of overlapping segments, caused labelmap conversion unnecessarily if it was the first node in the volume combobox when switching to the Volumes module (and in other cases when GetImageData was called), etc. Instead of the label layer support, slice view controller was augmented for segmentations, so that it can be used in the usual way too. This short video demonstrates: |
I decided that Data probe support will be added in a separate pull request, I think it's cleaner this way. |
I didn't look into the code, but the video is very convincing! On Thu, Sep 15, 2016 at 4:26 PM, Csaba Pinter [email protected]
|
Csaba, few questions:
|
Good questions Andrey!
On September 15, 2016 5:07:09 PM Andrey Fedorov [email protected] wrote: Csaba, few questions:
You are receiving this because you authored the thread. |
Thank you Csaba! To state the obvious - this functionality is essential for helping users navigate the segmentations overlay. Thank you very much for working on this, this is a great improvement over how things are handled right now! |
Oh, another suggestion. Trying to load brain atlas is always a good stress test. It would be interesting to see how that volume of segments will be handled. |
Andras did a lot of performance improvements over the last week(s) using the brain atlas, so the generic segmentation infrastructure can handle that many segments much better now. I'll try it too to make sure my changes don't introduce new bottlenecks. On September 15, 2016 5:27:16 PM Andrey Fedorov [email protected] wrote: Oh, another suggestion. Trying to load brain atlas is always a good stress test. It would be interesting to see how that volume of segments will be handled. You are receiving this because you authored the thread. |
I found that neither the long node names nor the many segments in the brain atlas cause problems. I found a bug that I need to fix (combobox not updated correctly after renaming a segment), and I'm still not sure what to do about the height of the rows in the controller popup. Otherwise all seems good to me. |
I fixed the bug. If there are no objections then I'll integrate. Thanks for the comments! |
5f08077
to
9ce3317
Compare
A fourth row is added to slice view controller which is only visible if a segmentation node is present in the scene. It behaves differently than the other rows in the sense that it does not assign the selected node to a role that is specific to the slice view, but allows changing display properties of a segmentation that are global (visibility, opacity, segment visibility, outline/fill). Selecting a segmentation shows it if hidden. ENH: Added multi-selection option to segment selector widget ENH: Removed legacy labelmap support Segmentation node is no longer subclass of labelmap volume node. Temporary color table is removed (color index tag remained, consecutive values are assigned). Utility function ShiftImageDataExtentToZeroStart moved to volume node from segmentation node, may come in handy
I integrated this commit as https://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=25367 |
A fourth row is added to slice view controller which is only visible if a segmentation node is present in the scene. It behaves differently than the other rows in the sense that it does not assign the selected node to a role that is specific to the slice view, but allows changing display properties of a segmentation that are global (visibility, opacity, segment visibility, outline/fill). Selecting a segmentation shows it if hidden.
ENH: Added multi-selection option to segment selector widget
ENH: Removed legacy labelmap support
Segmentation node is no longer subclass of labelmap volume node. Temporary color table is removed (color index tag remained, consecutive values are assigned). Utility function ShiftImageDataExtentToZeroStart moved to volume node from segmentation node, may come in handy