kylemcdonald / ofxCv

Alternative approach to interfacing with OpenCv from openFrameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there an example for StereoBM?

nosarious opened this issue · comments

I have found two examples y others using ofxCV and OpenCV that refer to StereoBm, but I am having trouble getting any of these files to compile. Do you have an example of how stereoBM should work, or what the limitations might be?

The error I get is "cannot instatiate an abstract class".

Some of the various examples are:
https://github.com/devkicks/DepthFromStereo/blob/master/DepthFromStereo/main.cpp

https://forum.openframeworks.cc/t/opencv-and-stereobm-help-with-image-bit-depth-translation-problem/27531

There are more, but I closed those windows. Do you have a working example for stereoBM?

Still works; syntax to initialize the object has changed:

cv::Ptr<cv::StereoBM> sbm = cv::StereoBM::create(112, 15);

https://forum.openframeworks.cc/t/opencv-calib3d310-lib-occurred-error-and-solved/29808