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

@ -27,6 +27,8 @@ int main(int argc, char *argv[]) {
auto &&request = api->SelectStreamRequest(&ok); auto &&request = api->SelectStreamRequest(&ok);
if (!ok) return 1; if (!ok) return 1;
api->ConfigStreamRequest(request); api->ConfigStreamRequest(request);
api->SetDisparityComputingMethodType(DisparityComputingMethod::BM);
api->EnableStreamData(Stream::POINTS); api->EnableStreamData(Stream::POINTS);

View File

@ -156,7 +156,7 @@ int main(int argc, char *argv[]) {
api->ConfigStreamRequest(request); api->ConfigStreamRequest(request);
api->SetOptionValue(Option::IR_CONTROL, 80); api->SetOptionValue(Option::IR_CONTROL, 80);
api->SetDisparityComputingMethodType(DisparityComputingMethod::BM);
api->EnableStreamData(Stream::DISPARITY_NORMALIZED); api->EnableStreamData(Stream::DISPARITY_NORMALIZED);
api->EnableStreamData(Stream::POINTS); api->EnableStreamData(Stream::POINTS);
api->EnableStreamData(Stream::DEPTH); api->EnableStreamData(Stream::DEPTH);