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 23 24 25 | import { SegmentationRepresentations } from '../../../../enums'; import { PolySegConversionOptions } from '../../../../types'; import { computeAndAddRepresentation } from '../computeAndAddRepresentation'; import { computeContourData } from './contourComputationStrategies'; /** * Computes and adds the contour representation for a given segmentation. * * @param segmentationId - The ID of the segmentation. * @param options - Optional parameters for computing the labelmap representation. * @param options.segmentIndices - An array of segment indices to include in the labelmap representation. * @param options.segmentationRepresentationUID - The UID of the segmentation representation. * @returns A promise that resolves when the labelmap representation is computed and added. */ export function computeAndAddContourRepresentation( segmentationId: string, options: PolySegConversionOptions = {} ) { return computeAndAddRepresentation( segmentationId, SegmentationRepresentations.Contour, () => computeContourData(segmentationId, options), () => undefined ); } |