Skip to main content

Variable: SLAB_RELATIVE_EPSILON

const SLAB_RELATIVE_EPSILON: 0.00001 = 1e-5

Relative tolerance used when testing whether something lies within a slab.

The slab tests below are strict (<, not <=), because a one-voxel-thick annotation places the neighbouring voxel centres exactly on the boundary and must exclude them. Relative to the voxel thickness, because spacings range from microns to centimetres.

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

Defined in​

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