feat(segmentation): segment statistics, labelmap interpolation and segment bidirectional (#4865)

This commit is contained in:
Alireza authored and GitHub committed 2025-03-17 22:34:34 -04:00
1 parent 694f3e9611
commit ec79b5523e
73 files changed
+3603 -1563

No files matched your search

+33 -3
View File
@@ -255,7 +255,7 @@ const toolbarButtons: Button[] = [
{
id: 'Brush',
uiType: 'ohif.toolButton',
uiType: 'ohif.toolBoxButton',
props: {
icon: 'icon-tool-brush',
label: 'Brush',
@@ -292,9 +292,39 @@ const toolbarButtons: Button[] = [
],
},
},
{
id: 'InterpolateLabelmap',
uiType: 'ohif.toolBoxButton',
props: {
icon: 'icon-tool-interpolation',
label: 'Interpolate Labelmap',
evaluate: [
'evaluate.cornerstone.segmentation',
{
name: 'evaluate.displaySetIsReconstructable',
disabledText: 'The current viewport cannot handle interpolation.',
},
],
commands: 'interpolateLabelmap',
},
},
{
id: 'SegmentBidirectional',
uiType: 'ohif.toolBoxButton',
props: {
icon: 'icon-tool-bidirectional-segment',
label: 'Segment Bidirectional',
tooltip: 'Finding the largest bidirectional measurement per lesion',
evaluate: {
name: 'evaluate.cornerstone.segmentation',
disabledText: 'Create new segmentation to enable this tool.',
},
commands: 'runSegmentBidirectional',
},
},
{
id: 'Eraser',
uiType: 'ohif.toolButton',
uiType: 'ohif.toolBoxButton',
props: {
icon: 'icon-tool-eraser',
label: 'Eraser',
@@ -332,7 +362,7 @@ const toolbarButtons: Button[] = [
},
{
id: 'Threshold',
uiType: 'ohif.toolButton',
uiType: 'ohif.toolBoxButton',
props: {
icon: 'icon-tool-threshold',
label: 'Threshold Tool',