Skip to content

Commit

Permalink
Swap pragma and for statement
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Dec 24, 2020
1 parent 3406ed7 commit 21d940b
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 21d940b

Please sign in to comment.