fix(api): enable BM

This commit is contained in:
TinyOh 2019-03-16 13:22:32 +08:00
parent b9a8eea7be
commit 0061061130
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,8 @@ int main(int argc, char *argv[]) {
if (!ok) return 1;
api->ConfigStreamRequest(request);
api->SetDisparityComputingMethodType(DisparityComputingMethod::BM);
api->EnableStreamData(Stream::POINTS);
api->Start(Source::VIDEO_STREAMING);

View File

@ -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);