From d1432e2745646800ac732f89d364b9a92d6bdf1b Mon Sep 17 00:00:00 2001 From: TinyOh Date: Mon, 14 Jan 2019 15:25:51 +0800 Subject: [PATCH] fix(cam models): sample enable bug and remove unused include --- CMakeLists.txt | 14 +++++++------- .../tutorials/intermediate/get_depth_and_points.cc | 1 + src/mynteye/api/processor/rectify_processor.h | 2 -- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 745ba70..b491d07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -236,15 +236,15 @@ if(WITH_API) src/mynteye/api/processor/depth_processor_ocv.cc src/mynteye/api/processor/rectify_processor_ocv.cc ) + if(WITH_CAM_MODELS) + list(APPEND MYNTEYE_SRCS + src/mynteye/api/processor/depth_processor.cc + src/mynteye/api/processor/points_processor.cc + src/mynteye/api/processor/rectify_processor.cc + ) + endif() endif() -if(WITH_CAM_MODELS) - list(APPEND MYNTEYE_SRCS - src/mynteye/api/processor/depth_processor.cc - src/mynteye/api/processor/points_processor.cc - src/mynteye/api/processor/rectify_processor.cc - ) -endif() if(NOT WITH_GLOG) list(APPEND MYNTEYE_SRCS src/mynteye/miniglog.cc) endif() diff --git a/samples/tutorials/intermediate/get_depth_and_points.cc b/samples/tutorials/intermediate/get_depth_and_points.cc index 5a2d5d8..ea3901f 100644 --- a/samples/tutorials/intermediate/get_depth_and_points.cc +++ b/samples/tutorials/intermediate/get_depth_and_points.cc @@ -158,6 +158,7 @@ int main(int argc, char *argv[]) { api->SetOptionValue(Option::IR_CONTROL, 80); api->EnableStreamData(Stream::DISPARITY_NORMALIZED); + api->EnableStreamData(Stream::POINTS); api->EnableStreamData(Stream::DEPTH); api->Start(Source::VIDEO_STREAMING); diff --git a/src/mynteye/api/processor/rectify_processor.h b/src/mynteye/api/processor/rectify_processor.h index 9721a38..5929dfc 100644 --- a/src/mynteye/api/processor/rectify_processor.h +++ b/src/mynteye/api/processor/rectify_processor.h @@ -25,9 +25,7 @@ #include "mynteye/device/device.h" #include #include -#include #include -#include #include #include #include