diff --git a/samples/api/get_depth_with_region.cc b/samples/api/get_depth_with_region.cc index 9ea78b4..0bd075c 100644 --- a/samples/api/get_depth_with_region.cc +++ b/samples/api/get_depth_with_region.cc @@ -18,13 +18,6 @@ #include "mynteye/api.h" -#ifdef USE_OPENCV3 -#define WIN_FLAGS \ - cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL -#else -#define WIN_FLAGS cv::WINDOW_AUTOSIZE -#endif - namespace { class DepthRegion { @@ -163,9 +156,9 @@ int main(int argc, char *argv[]) { api->Start(Source::VIDEO_STREAMING); - cv::namedWindow("frame", WIN_FLAGS); - cv::namedWindow("depth", WIN_FLAGS); - cv::namedWindow("region", WIN_FLAGS); + cv::namedWindow("frame"); + cv::namedWindow("depth"); + cv::namedWindow("region"); DepthRegion depth_region(3); auto depth_info = []( diff --git a/samples/tutorials/intermediate/get_depth_and_points.cc b/samples/tutorials/intermediate/get_depth_and_points.cc index 754d39b..c137954 100644 --- a/samples/tutorials/intermediate/get_depth_and_points.cc +++ b/samples/tutorials/intermediate/get_depth_and_points.cc @@ -21,13 +21,6 @@ #include "util/cv_painter.h" #include "util/pc_viewer.h" -#ifdef USE_OPENCV3 -#define WIN_FLAGS \ - cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL -#else -#define WIN_FLAGS cv::WINDOW_AUTOSIZE -#endif - namespace { class DepthRegion { @@ -166,9 +159,9 @@ int main(int argc, char *argv[]) { api->Start(Source::VIDEO_STREAMING); - cv::namedWindow("frame", WIN_FLAGS); - cv::namedWindow("depth", WIN_FLAGS); - cv::namedWindow("region", WIN_FLAGS); + cv::namedWindow("frame"); + cv::namedWindow("depth"); + cv::namedWindow("region"); DepthRegion depth_region(3); auto depth_info = [](