mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
d/dai: Expose function to get stereo calibration
This commit is contained in:
parent
3fd740e6e9
commit
a5fc2fa49e
|
@ -664,3 +664,11 @@ depthai_fs_stereo_gray(struct xrt_frame_context *xfctx)
|
||||||
|
|
||||||
return &depthai->base;
|
return &depthai->base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern "C" void
|
||||||
|
depthai_fs_get_stereo_calibration(struct xrt_fs *xfs, struct t_stereo_camera_calibration **c_ptr)
|
||||||
|
{
|
||||||
|
struct depthai_fs *depthai = depthai_fs(xfs);
|
||||||
|
|
||||||
|
depthai_get_gray_cameras_calibration(depthai, c_ptr);
|
||||||
|
}
|
||||||
|
|
|
@ -17,6 +17,9 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
struct t_stereo_camera_calibration;
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @defgroup drv_depthai DepthAI frameserver driver
|
* @defgroup drv_depthai DepthAI frameserver driver
|
||||||
* @ingroup drv
|
* @ingroup drv
|
||||||
|
@ -40,6 +43,14 @@ depthai_fs_single_rgb(struct xrt_frame_context *xfctx);
|
||||||
struct xrt_fs *
|
struct xrt_fs *
|
||||||
depthai_fs_stereo_gray(struct xrt_frame_context *xfctx);
|
depthai_fs_stereo_gray(struct xrt_frame_context *xfctx);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Get the stereo calibration from a depthAI frameserver.
|
||||||
|
*
|
||||||
|
* @ingroup drv_depthai
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
depthai_fs_get_stereo_calibration(struct xrt_fs *xfs, struct t_stereo_camera_calibration **c_ptr);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue