Monado OpenXR Runtime
|
OpenCV calibration helpers. More...
Go to the source code of this file.
Data Structures | |
struct | xrt::auxiliary::tracking::CameraCalibrationWrapper |
Essential calibration data wrapped for C++. More... | |
struct | xrt::auxiliary::tracking::StereoCameraCalibrationWrapper |
Essential stereo calibration data wrapped for C++. More... | |
struct | xrt::auxiliary::tracking::RemapPair |
An x,y pair of matrices for the remap() function. More... | |
struct | xrt::auxiliary::tracking::ViewRectification |
Rectification, rotation, projection data for a single view in a stereo pair. More... | |
struct | xrt::auxiliary::tracking::StereoRectificationMaps |
Rectification maps as well as transforms for a stereo camera. More... | |
class | xrt::auxiliary::tracking::NormalizedCoordsCache |
Provides cached, precomputed normalized image coordinates from original, distorted ones. More... | |
Functions | |
static size_t | xrt::auxiliary::tracking::t_num_opencv_params_from_distortion_model (const enum t_camera_distortion_model model) |
static bool | xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_fisheye (const enum t_camera_distortion_model model) |
Determines whether a camera distortion model is suitable for use in OpenCV as a fisheye distortion. More... | |
static bool | xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_non_fisheye (const enum t_camera_distortion_model model) |
Determines whether a camera distortion model is suitable for use in OpenCV as a non-fisheye distortion. More... | |
RemapPair | xrt::auxiliary::tracking::calibration_get_undistort_map (t_camera_calibration &calib, cv::InputArray rectify_transform_optional=cv::noArray(), cv::Mat new_camera_matrix_optional=cv::Mat()) |
Prepare undistortion/normalization remap structures for a rectilinear or fisheye image. More... | |
OpenCV calibration helpers.
RemapPair xrt::auxiliary::tracking::calibration_get_undistort_map | ( | t_camera_calibration & | calib, |
cv::InputArray | rectify_transform_optional = cv::noArray() , |
||
cv::Mat | new_camera_matrix_optional = cv::Mat() |
||
) |
Prepare undistortion/normalization remap structures for a rectilinear or fisheye image.
calib | A single camera calibration structure. |
rectify_transform_optional | A rectification transform to apply, if desired. |
new_camera_matrix_optional | Unlike OpenCV, the default/empty matrix here uses the input camera matrix as your output camera matrix. |
References xrt::auxiliary::tracking::calibration_get_undistort_map(), and t_camera_calibration::image_size_pixels.
Referenced by xrt::auxiliary::tracking::calibration_get_undistort_map().
|
inlinestatic |
Determines whether a camera distortion model is suitable for use in OpenCV as a fisheye distortion.
model | The distortion model in question. |
References xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_fisheye(), and T_DISTORTION_FISHEYE_KB4.
Referenced by xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_fisheye().
|
inlinestatic |
Determines whether a camera distortion model is suitable for use in OpenCV as a non-fisheye distortion.
model | The distortion model in question. |
References xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_non_fisheye(), T_DISTORTION_OPENCV_RADTAN_14, T_DISTORTION_OPENCV_RADTAN_5, T_DISTORTION_OPENCV_RADTAN_8, and T_DISTORTION_WMR.
Referenced by xrt::auxiliary::tracking::t_camera_distortion_model_is_opencv_non_fisheye().