Skip to main content
Version: 3.10.0-beta.80 (Latest)

Segmentation

panelSegmentation.tableMode

IDpanelSegmentation.tableMode
Description
Defines the mode of the segmentation table.
Default Value
collapsed
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelSegmentation.tableMode': {
        $set: 'expanded',
      },
    },
  ],
};
    

panelSegmentation.showAddSegment

IDpanelSegmentation.showAddSegment
Description
Controls whether the "Add Segment" button is displayed in the segmentation panel.
Default Value
true
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelSegmentation.showAddSegment': {
        $set: false, // Set to false to hide the "Add Segment" button
      },
    },
  ],
};
    

panelSegmentation.readableText

IDpanelSegmentation.readableText
Description
Defines the readable text labels for segmentation panel statistics and metrics.
Default Value
{
  "lesionStats": "Lesion Statistics",
  "minValue": "Minimum Value",
  "maxValue": "Maximum Value",
  "meanValue": "Mean Value",
  "volume": "Volume (ml)",
  "suvPeak": "SUV Peak",
  "suvMax": "Maximum SUV",
  "suvMaxIJK": "SUV Max IJK",
  "lesionGlyoclysisStats": "Lesion Glycolysis"
}
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelSegmentation.readableText': {
        $merge: {
          lesionStats: 'Lesion Stats',
        },
      },
    },
  ],
};
  

panelSegmentation.onSegmentationAdd

IDpanelSegmentation.onSegmentationAdd
Description
Defines the behavior when a new segmentation is added to the segmentation panel.
Default Value
() => {
      // default is to create a labelmap for the active viewport
      const { viewportGridService } = servicesManager.services;
      const viewportId = viewportGridService.getState().activeViewportId;
      commandsManager.run('createLabelmapForViewport', { viewportId });
    }
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelSegmentation.onSegmentationAdd': {
        $set: () => {
          const { viewportGridService } = servicesManager.services;
          const viewportId = viewportGridService.getState().activeViewportId;
          commandsManager.run('createNewLabelmapFromPT');
        },
      },
    },
  ],
};
  

panelSegmentation.disableEditing

IDpanelSegmentation.disableEditing
Description
Determines whether editing of segmentations in the panel is disabled.
Default Value
false
Example

window.config = {
  // rest of window config
  customizationService: [
    {
      'panelSegmentation.disableEditing': {
        $set: true, // Disables editing of segmentations in the panel
      },
    },
  ],
};