Skip to main content

Type Alias: ShapeRunProvider()

ShapeRunProvider: (outerIndex, rowIndex, depthRun, slab) => Iterable<Point2>

Yields inclusive [min, max] runs along the slab's column axis that the annotation's 2D shape covers, for one (outer, row) position. Yielding nothing means the shape does not reach this row.

Runs may be exact, exact-multiple or an approximate superset paired with isInShape. See docs/docs/concepts/cornerstone-tools/annotation/voxel-statistics.md.

Parameters​

• outerIndex: number

• rowIndex: number

• depthRun: Point2

• slab: IndexSpaceSlab

Returns​

Iterable<Point2>

Defined in​

packages/core/src/utilities/voxelSlab/iterateVoxelsInShape.ts:37