From 21d940bc931731f7f66bb156ae11bf02bd43c153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20=C5=81ukawski?= Date: Thu, 24 Dec 2020 21:14:45 +0100 Subject: [PATCH] Swap pragma and for statement https://github.com/IntelRealSense/librealsense/issues/5776 --- wrappers/opencv/kinfu/rs-kinfu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/opencv/kinfu/rs-kinfu.cpp b/wrappers/opencv/kinfu/rs-kinfu.cpp index c9f17dcb7c..cfc265f945 100644 --- a/wrappers/opencv/kinfu/rs-kinfu.cpp +++ b/wrappers/opencv/kinfu/rs-kinfu.cpp @@ -259,8 +259,8 @@ int main(int argc, char **argv) d = temporal.process(d); // Set depth values higher than clipping_dist to 0, to avoid unnecessary noise in the pointcloud -#pragma omp parallel for schedule(dynamic) //Using OpenMP to try to parallelise the loop uint16_t* p_depth_frame = reinterpret_cast(const_cast(d.get_data())); +#pragma omp parallel for schedule(dynamic) //Using OpenMP to try to parallelise the loop for (int y = 0; y < h; y++) { auto depth_pixel_index = y * w;