Skip to main content

Function: getClosestImageId()

getClosestImageId(imageVolume, worldPos, viewPlaneNormal): string

Given an image, a point in space and the viewPlaneNormal it returns the closest imageId of the image volume that is within half voxel spacing of the point in space.

Parameters

imageVolume: ImageVolume | object

The image volume

worldPos: Point3

The position in the world coordinate system (from mouse click)

viewPlaneNormal: Point3

The normal vector of the viewport

Returns

string

The imageId for the tool.

Defined in

packages/core/src/utilities/getClosestImageId.ts:19