All files / tools/src/stateManagement/segmentation/helpers computeVolumeLabelmapFromStack.ts

0% Statements 0/1
100% Branches 0/0
0% Functions 0/1
0% Lines 0/1

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                               
import { internalComputeVolumeLabelmapFromStack } from '../SegmentationStateManager';
 
/**
 * Computes a volume segmentation from a stack of image IDs.
 *
 * @async
 * @param params - The parameters for computing the volume segmentation.
 * @param params.imageIds - An array of image IDs representing the stack.
 * @param [params.options={}] - Optional parameters for the computation.
 * @param [params.options.volumeId] - The ID to use for the created volume. If not provided, a new UUID will be generated.
 * @returns A promise that resolves to an object containing the volumeId of the created volume.
 */
export async function computeVolumeLabelmapFromStack(args) {
  return internalComputeVolumeLabelmapFromStack(args);
}