2025-03-18 03:34:34 +01:00
|
|
|
import { CustomDropdownMenuContent } from './CustomDropdownMenuContent';
|
|
|
|
|
import { CustomSegmentStatisticsHeader } from './CustomSegmentStatisticsHeader';
|
2025-01-23 20:24:13 +01:00
|
|
|
|
|
|
|
|
export default function getSegmentationPanelCustomization({ commandsManager, servicesManager }) {
|
|
|
|
|
return {
|
2025-03-18 03:34:34 +01:00
|
|
|
'panelSegmentation.customDropdownMenuContent': CustomDropdownMenuContent,
|
|
|
|
|
'panelSegmentation.customSegmentStatisticsHeader': CustomSegmentStatisticsHeader,
|
2025-01-23 20:24:13 +01:00
|
|
|
'panelSegmentation.disableEditing': false,
|
|
|
|
|
'panelSegmentation.showAddSegment': true,
|
|
|
|
|
'panelSegmentation.onSegmentationAdd': () => {
|
|
|
|
|
const { viewportGridService } = servicesManager.services;
|
|
|
|
|
const viewportId = viewportGridService.getState().activeViewportId;
|
|
|
|
|
commandsManager.run('createLabelmapForViewport', { viewportId });
|
|
|
|
|
},
|
|
|
|
|
'panelSegmentation.tableMode': 'collapsed',
|
|
|
|
|
'panelSegmentation.readableText': {
|
2025-03-18 03:34:34 +01:00
|
|
|
// the values will appear in this order
|
|
|
|
|
min: 'Min Value',
|
|
|
|
|
minLPS: 'Min Coord',
|
|
|
|
|
max: 'Max Value',
|
|
|
|
|
maxLPS: 'Max Coord',
|
|
|
|
|
mean: 'Mean Value',
|
|
|
|
|
stdDev: 'Standard Deviation',
|
|
|
|
|
count: 'Voxel Count',
|
|
|
|
|
median: 'Median',
|
|
|
|
|
skewness: 'Skewness',
|
|
|
|
|
kurtosis: 'Kurtosis',
|
|
|
|
|
peakValue: 'Peak Value',
|
|
|
|
|
peakLPS: 'Peak Coord',
|
|
|
|
|
volume: 'Volume',
|
|
|
|
|
lesionGlycolysis: 'Lesion Glycolysis',
|
2025-01-23 20:24:13 +01:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|