UNPKG

@cornerstonejs/core

Version:
12 lines (11 loc) 723 B
import type { IImageVolume, Point3 } from '../../../types/index.js'; export type IndexMajorAxis = { axis: 0 | 1 | 2; sign: 1 | -1; }; export declare const SOURCE_SLICE_INDEX_TOLERANCE = 0.0001; export declare const NEAREST_VOXEL_TIE_EPSILON = 0.000001; export declare function getIndexMajorAxis(volume: IImageVolume, worldVector: Point3, majorThreshold?: number): IndexMajorAxis | undefined; export declare function getSpatiallyClampedContinuousCoordinate(dimension: number, value: number): number | undefined; export declare function getNearestVoxelIndex(continuousIndex: number): number; export declare function getSpatiallyClampedContinuousIndex(dimensions: Point3, continuousIndex: Point3): Point3 | undefined;