Function: transformRgbToDepthUv()
transformRgbToDepthUv(
rgbUv,xrDeviceCamera?):null| {u:number;v:number; }
Defined in: src/camera/CameraUtils.ts:42
Maps a UV coordinate from a RGB space to a destination depth space, applying Brown-Conrady distortion and affine transformations based on aspect ratios. If the simulator camera is used, no transformation is applied.
Parameters
rgbUv
The RGB UV coordinate, e.g., { u: 0.5, v: 0.5 }.
u
number
v
number
xrDeviceCamera?
The device camera instance.
Returns
null | { u: number; v: number; }
The transformed UV coordinate in the depth image space, or null if inputs are invalid.