![]() |
retinify 0.1.4
Real-Time AI Stereo Vision Library
|
This tutorial provides a step-by-step guide to using retinify with OpenCV. Please refer to the following repository for the code examples used throughout the tutorial.
👉 Example Repository
Please refer to the Installation section for details.
--tools
option.This section demonstrates how to perform stereo matching on an arbitrary stereo image pair.
First, clone the repository used for the demo:
Next, build the project:
An executable will be produced in the build directory. Use it to perform stereo matching. Locate the demo stereo images in the retinify-opencv-example/img
directory (you may substitute any stereo image pair). Run the executable with the left and right stereo image paths as arguments:
Upon successful execution, the result will be displayed and a file named disparity.png
will be saved in the same directory as the executable. If you use the images provided in the retinify-opencv-example/img
directory, a successful run should produce a disparity image similar to the following:
We recommend using a CMake-based project when integrating retinify.
Retinify requires C++20 and GCC 11 or later.
In this tutorial, we will use image data in the form of cv::Mat
.
Stereo matching can be performed using the retinify::tools::StereoMatchingPipeline
.