Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there an example for StereoBM? #245

Open
nosarious opened this issue May 9, 2018 · 1 comment
Open

is there an example for StereoBM? #245

nosarious opened this issue May 9, 2018 · 1 comment

Comments

@nosarious
Copy link

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?

@n1ckfg
Copy link

n1ckfg commented Apr 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants