This sample allows you to display a GPU sl::Mat directly with OpenGL, by using the CUDA - OpenGL interoperability.
- First, download the latest version of the ZED SDK on stereolabs.com.
- For more information, read the ZED API documentation.
Download the sample and follow these instructions:
- Create a "build" folder in the source folder
- Open cmake-gui and select the source and build folders
- Generate the Visual Studio
Win64
solution - Open the resulting solution and change configuration to
Release
- Build solution
Open a terminal in the sample directory and execute the following command:
mkdir build
cd build
cmake ..
make
Open a terminal in build directory and execute the following command:
./ZED\ openGL\ gpu\ interop(.exe)