Monado OpenXR Runtime
rift_s_util.h File Reference

Oculus Rift S utility functions. More...

Include dependency graph for rift_s_util.h:

Go to the source code of this file.

Functions

struct t_camera_calibration rift_s_get_cam_calib (struct rift_s_camera_calibration_block *camera_calibration, enum rift_s_camera_id cam_id)
 
struct t_stereo_camera_calibrationrift_s_create_stereo_camera_calib_rotated (struct rift_s_camera_calibration_block *camera_calibration)
 Allocate and populate an OpenCV-compatible t_stereo_camera_calibration pointer from the Rift S config. More...
 

Detailed Description

Oculus Rift S utility functions.

Author
Jan Schmidt jan@c.nosp@m.entr.nosp@m.icula.nosp@m.r.co.nosp@m.m

Function Documentation

◆ rift_s_create_stereo_camera_calib_rotated()

struct t_stereo_camera_calibration * rift_s_create_stereo_camera_calib_rotated ( struct rift_s_camera_calibration_block camera_calibration)

Allocate and populate an OpenCV-compatible t_stereo_camera_calibration pointer from the Rift S config.

This requires fitting a KB4 fisheye polynomial to the 6 radial + 2 tangential 'Fisheye62' parameters provided by the Rift S.

References T_DISTORTION_FISHEYE_KB4, and t_stereo_camera_calibration::t_stereo_camera_calibration_alloc().