Skip to content

Commit

Permalink
Merge pull request IntelRealSense#8066 from PeterBowman/fix-kinfu-for
Browse files Browse the repository at this point in the history
Place OMP pragma before for statement in rs-kinfu app
  • Loading branch information
ev-mp authored Jan 17, 2021
2 parents a250f1e + 21d940b commit 840231f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/opencv/kinfu/rs-kinfu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint16_t*>(const_cast<void*>(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;
Expand Down

0 comments on commit 840231f

Please sign in to comment.