[][src]Function opencv::core::set_gl_device

pub fn set_gl_device(device: i32) -> Result<()>

Sets a CUDA device and initializes it for the current thread with OpenGL interoperability.

This function should be explicitly called after OpenGL context creation and before any CUDA calls.

Parameters

  • device: System index of a CUDA device starting with 0. @ingroup core_opengl

C++ default parameters

  • device: 0