1 | initial version |
The following works for me.
#include "opencv2/calib3d/calib3d.hpp"
void foo()
{
cv::StereoSGBM sgbm;
sgbm( cv::Mat(), cv::Mat(), cv::Mat() );
}
The error you got is a little surprising. Without calib3d.hpp, StereoSGBM should be an undefined symbol. Maybe you have a forward declaration getting in the way.