diff --git a/samples/tutorials/data/get_disparity.cc b/samples/tutorials/data/get_disparity.cc index b11f813..b5ea64a 100644 --- a/samples/tutorials/data/get_disparity.cc +++ b/samples/tutorials/data/get_disparity.cc @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) { if (!ok) return 1; api->ConfigStreamRequest(request); - // api->EnableStreamData(Stream::DISPARITY); + api->SetDisparityComputingMethodType(DisparityComputingMethod::SGBM); api->EnableStreamData(Stream::DISPARITY_NORMALIZED); if (argc == 2) { @@ -45,8 +45,6 @@ int main(int argc, char *argv[]) { } } - api->SetDisparityComputingMethodType(DisparityComputingMethod::BM); - api->Start(Source::VIDEO_STREAMING); cv::namedWindow("frame"); diff --git a/samples/tutorials/data/get_points.cc b/samples/tutorials/data/get_points.cc index 5523767..0ac59d7 100644 --- a/samples/tutorials/data/get_points.cc +++ b/samples/tutorials/data/get_points.cc @@ -27,8 +27,6 @@ int main(int argc, char *argv[]) { auto &&request = api->SelectStreamRequest(&ok); if (!ok) return 1; api->ConfigStreamRequest(request); - - api->SetDisparityComputingMethodType(DisparityComputingMethod::BM); api->EnableStreamData(Stream::POINTS); diff --git a/samples/tutorials/data/get_stereo.cc b/samples/tutorials/data/get_stereo.cc index 099e628..221c5b4 100644 --- a/samples/tutorials/data/get_stereo.cc +++ b/samples/tutorials/data/get_stereo.cc @@ -25,7 +25,6 @@ int main(int argc, char *argv[]) { auto &&request = api->SelectStreamRequest(&ok); if (!ok) return 1; api->ConfigStreamRequest(request); - api->SetDisparityComputingMethodType(DisparityComputingMethod::BM); api->Start(Source::VIDEO_STREAMING); cv::namedWindow("frame"); diff --git a/samples/tutorials/data/get_stereo_rectified.cc b/samples/tutorials/data/get_stereo_rectified.cc index d08666c..dadba65 100644 --- a/samples/tutorials/data/get_stereo_rectified.cc +++ b/samples/tutorials/data/get_stereo_rectified.cc @@ -25,7 +25,6 @@ int main(int argc, char *argv[]) { auto &&request = api->SelectStreamRequest(&ok); if (!ok) return 1; api->ConfigStreamRequest(request); - api->SetDisparityComputingMethodType(DisparityComputingMethod::BM); api->EnableStreamData(Stream::LEFT_RECTIFIED); api->EnableStreamData(Stream::RIGHT_RECTIFIED); diff --git a/src/mynteye/api/synthetic.cc b/src/mynteye/api/synthetic.cc index e044749..5fdc446 100644 --- a/src/mynteye/api/synthetic.cc +++ b/src/mynteye/api/synthetic.cc @@ -326,7 +326,7 @@ void Synthetic::InitProcessors() { std::shared_ptr depth_processor = nullptr; auto &&disparity_processor = - std::make_shared(DisparityComputingMethod::SGBM, + std::make_shared(DisparityComputingMethod::BM, DISPARITY_PROC_PERIOD); auto &&disparitynormalized_processor = std::make_shared(