Function: getSpacingInNormalDirection()
getSpacingInNormalDirection(
imageVolume,viewPlaneNormal):number
Given an imageVolume and a normal direction (viewPlaneNormal), calculates
the spacing between voxels in the normal direction. If (viewPlaneNormal) is
parallel to one of the directions you will obtain the spacing in that direction.
Otherwise each of the imageVolume's directions are projected onto the volume,
so that you obtain a spacing of the order of "seeing a new set of voxels if the camera where to dolly".
Parameters
• imageVolume: ImageVolume | object
The image volume to calculate the spacing in the normal direction.
• viewPlaneNormal: Point3
The normal direction of the view plane.
Returns
number
Defined in
packages/core/src/utilities/getSpacingInNormalDirection.ts:16