-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple segmentation layers (#5683)
* [WIP] don't crash when multiple segmentation layers exist; start introducing getActiveSegmentationLayer() methods * [WIP] fix all flow errors * [WIP]: implement and use getVisibleSegmentationLayer, getSomeSegmentationLayer and getEnforcedSomeSegmentationLayer everywhere * [WIP]: implement and use getFirstSegmentationLayer which only needs a dataset reference and fits some cases better * remove deprecated functions * fix wrong parameter * fix isColorLayer * adapt shader code to multiple segmentation layers * fix cell hovering * support mappings for multiple segmentation layers * fix reducer for initial changes of mapping objects * fix runtime exceptions * make shader code and materials compatible with mappings (only one mapping can be active at given time) * fix some mapping issues * fix hovered segment id in status bar * fix multiple mapping bugs (e.g., race condition when activating a mapping) * fix wrong attachment of mapping-related textures * fix callHandlerOnSubscribe behavior in listenToStoreProperty if initial value is null * update threeJS to 110 so that we can use to avoid discarded updates; fix switching between mappings of multiple segmentation layers by adapting getSegmentationLayerWithMappingSupport logic * support volume annotation in dataset with multiple segmentation layers * adapt more volume code to multiple segmentation layers * remove outdated comment * adapt UI for creation of explorative so that fallback layer can be chosen * change back-end route from boolean withFallback to optional string fallbackLayerName * clean up GET parameter construction * further clean up in CreateExplorativeModal logic * fix creation of volume tracing when viewing dataset and only show remove button for fallback layer * ensure that only one segmentation layer is visible * remove activeSegmentationLayerIndex code, as it's not needed anymore * trigger agglomeration warning for correct segmentation layer * adapt data export to multiple segmentation layers * remove unused isRefreshingIsosurfaces store property * fix passing fallbackLayerName when creating explorational * make mesh management dependent on concrete segmentation layer * fix ad-hoc and precomputed mesh usages * rename mesh/isosurface variables to ...ByLayer where appropriate * get rid of getEnforcedSomeSegmentationLayer function * add better typing for mesh view and remove some dead code * change getResolutionInfoOfSomeSegmentationLayer to getResolutionInfoOfVisibleSegmentationLayer * remove some usages of getFirstSegmentationLayer * fix default 'Create Annotation' link for fallback layers * fix linting * use correct segmentation layer in version view * remove redundant if-null check * make 3-shortcut work better with multiple segmentation layers * fix unit tests * improve the api_latest functions * further improvements of api_latest * format back-end code * fail if non-existing fallback layer is selected, add fallbackLayerName to makeHybrid route * legacy api * only allow volume annotation in actual tracing layer * resolve todo affecting features.publicDemoDatasetUrl * use currently visible segmentation layer as fallback layer when creating an annotation from view mode or when making a hybrid * rename activeMapping to activeMappingByLayer * fix CI * integrate some PR feedback * Apply suggestions from code review Co-authored-by: Daniel <[email protected]> * rename getRequestedOrVisibleSegmentationLayer, getRequestedOrVisibleSegmentationLayerEnforced and getNameOfRequestedOrVisibleSegmentationLayer * integrate further PR feedback * improve docstrings in api_latest * remove other segmentation layers for volume annotations without fallback data * update changelog * make getVolumeTracingLayerName backwards compatible * fix merger mode for hybrids and for skeleton-only annotations * fix segmentationOpacity dictated by recommended settings in tasks when there is no volume layer and when there are multiple segmentation layers Co-authored-by: Florian M <[email protected]> Co-authored-by: Daniel <[email protected]>
- Loading branch information
1 parent
cda0fe9
commit c3cbc7f
Showing
72 changed files
with
1,562 additions
and
848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.