Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import { internalConvertStackToVolumeLabelmap } from '../SegmentationStateManager'; import { triggerSegmentationModified } from '../triggerSegmentationEvents'; /** * Converts a stack-based segmentation to a volume-based segmentation. * * @param params - The parameters for the conversion. * @param params.segmentationId - The segmentationId to convert. * @param [params.options] - The conversion options. * @param params.options.viewportId - The new viewportId to use for the segmentation. * @param [params.options.volumeId] - the new volumeId to use for the segmentation. If not provided, a new ID will be generated. * @param [params.options.newSegmentationId] - the new segmentationId to use for the segmentation. If not provided, a new ID will be generated. * @param [params.options.removeOriginal] - Whether or not to remove the original segmentation. Defaults to true. * * @returns A promise that resolves when the conversion is complete. */ export async function convertStackToVolumeLabelmap(args) { const result = internalConvertStackToVolumeLabelmap(args); triggerSegmentationModified(args.segmentationId); return result; } |