StereoImage - julian-steiner/Waveshare-Stereo-Camera GitHub Wiki

Stereo image

Showing an image

image.show("windowname");

Saving an image to a file

The images are saved to folder/left/ and folder/right/. These two folders need to be created before saving the images

image.saveToFile("folder/", "foo.jpg");

Reading an image from files

To load images from files you have to pass the path to the folder where the left/ and right/ directory are located and the filename of the image. The images are then automatically loaded into the stereoImage

image.fromFile("folder/", "foo.jpg");

Combining the two images

If desired there is also the possibility of getting a combined image which basically is an overlay of both images This returns an opencv image

cv::Mat combined = image.getCombinedImage();