Skip to content

Function: assertSameVolumeGeometry() ​

ts
function assertSameVolumeGeometry(
   reference, 
   candidate, 
   tolerance?): void;

Defined in: src/geometry/VolumeGeometry.ts:53

Fail closed when two volumes do not occupy the same voxel grid.

This deliberately compares the full affine in addition to dimensions and derived fields. It does not resample, reorient, or wrap either volume.

Parameters ​

reference ​

NeuroVol

candidate ​

NeuroVol

tolerance? ​

number = 1e-6

Returns ​

void

Released under the MIT License.