rectifiedVSTAccess

fun rectifiedVSTAccess(rightImageResult: Tensor?, leftImageResult: Tensor?, timestampResult: Tensor?, cameraMatrixResult: Tensor?)

Obtain the latest camera images. The images will be rectified internal against len distortion.

Parameters

rightImageResult

an optional result, to store the right-eye image from the camera. If provided, it must be a multi-dimensions tensor of 3 channels (RGB format) or 4 channels (RGBA format), with dimensions of HxW, where we recommend that the H and W need to match the imageHeight and imageWidth of SpatialMLSession.InitInfo when the session is created.

leftImageResult

an optional result, to store the left-eye image from the camera. If provided, it must be a multi-dimensions tensor of 3 channels (RGB format) or 4 channels (RGBA format), with dimensions of HxW, where we recommend that the H and W need to match the imageHeight and imageWidth of SpatialMLSession.InitInfo when the session is created.

timestampResult

an optional result, to store the camera timestamp when the images are exposed. You will find this result useful when estimates the depths of the points on the images, or compute the transform between the camera space and the world space.

cameraMatrixResult

an optional result, to store the camera intrinsic matrix.

See also