From 0061061130846affcf232d496d1916ba8f0c73e9 Mon Sep 17 00:00:00 2001 From: TinyOh Date: Sat, 16 Mar 2019 13:22:32 +0800 Subject: [PATCH] fix(api): enable BM --- samples/tutorials/data/get_points.cc | 2 ++ samples/tutorials/intermediate/get_depth_and_points.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/tutorials/data/get_points.cc b/samples/tutorials/data/get_points.cc index 0ac59d7..5523767 100644 --- a/samples/tutorials/data/get_points.cc +++ b/samples/tutorials/data/get_points.cc @@ -27,6 +27,8 @@ 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/intermediate/get_depth_and_points.cc b/samples/tutorials/intermediate/get_depth_and_points.cc index 349a767..805d806 100644 --- a/samples/tutorials/intermediate/get_depth_and_points.cc +++ b/samples/tutorials/intermediate/get_depth_and_points.cc @@ -156,7 +156,7 @@ int main(int argc, char *argv[]) { api->ConfigStreamRequest(request); api->SetOptionValue(Option::IR_CONTROL, 80); - + api->SetDisparityComputingMethodType(DisparityComputingMethod::BM); api->EnableStreamData(Stream::DISPARITY_NORMALIZED); api->EnableStreamData(Stream::POINTS); api->EnableStreamData(Stream::DEPTH);