Files
ohif-viewer/extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
T

14 lines
432 B
TypeScript
Raw Normal View History

2025-07-29 23:30:18 -03:00
function createSEGToolGroupAndAddTools({
commandsManager,
toolGroupService,
customizationService,
toolGroupId,
}) {
const tools = customizationService.getCustomization('cornerstone.overlayViewportTools');
2025-07-29 23:30:18 -03:00
const updatedTools = commandsManager.run('initializeSegmentLabelTool', { tools });
return toolGroupService.createToolGroupAndAddTools(toolGroupId, updatedTools);
}
export default createSEGToolGroupAndAddTools;