Files
ohif-viewer/extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
T
2025-07-29 22:30:18 -04:00

15 lines
432 B
TypeScript

function createSEGToolGroupAndAddTools({
commandsManager,
toolGroupService,
customizationService,
toolGroupId,
}) {
const tools = customizationService.getCustomization('cornerstone.overlayViewportTools');
const updatedTools = commandsManager.run('initializeSegmentLabelTool', { tools });
return toolGroupService.createToolGroupAndAddTools(toolGroupId, updatedTools);
}
export default createSEGToolGroupAndAddTools;