Skip to main content

Function: transformWorldToIndex()

transformWorldToIndex(imageData, worldPos): any

Given an imageData object and a point in physical space, return the index of the voxel that contains the point. TODO: this should be pushed to vtk upstream.

Parameters

imageData: any

The image data object.

worldPos: Point3

Returns

any

An array of integers.

Defined in

packages/core/src/utilities/transformWorldToIndex.ts:11