Skip to main content

Function: getMembershipHalfWidth()

getMembershipHalfWidth(referencePlaneThickness, voxelThickness): number

The half width used to decide which voxels an area annotation contains (Rule M): (referencePlaneThickness + voxelThickness) / 2.

The voxel term widens the slab by half a voxel each side, so a plane exactly midway between two voxel centres selects both layers. The viewport's own slab thickness is deliberately absent.

See docs/docs/concepts/cornerstone-tools/annotation/voxel-statistics.md.

Parameters​

• referencePlaneThickness: number

The reference plane thickness, resolved.

• voxelThickness: number

The voxel thickness along the normal.

Returns​

number

Defined in​

packages/core/src/utilities/voxelSlab/slabMembership.ts:60