Skip to main content

Function: worldToImageCoords()

worldToImageCoords(imageId, worldCoords): Point2 | undefined

Given the imageId, and 3d coordinates on the world space, it returns the continuos image coordinates (IJ) on the image space. The image space is defined with [0,0] being on the top left corner of the top left pixel, the [1,1] being on the bottom right corner of the top left pixel.

Parameters

imageId: string

The image id

worldCoords: Point3

The 3d coordinates on the world.

Returns

Point2 | undefined

The 2d coordinates on the image.

Defined in

packages/core/src/utilities/worldToImageCoords.ts:15