row_step of tmp_output should depend on size of tmp_output

This commit is contained in:
Tim Clephas
2021-09-22 19:50:29 +02:00
parent e8edafb8ff
commit 5a975e7cc1
+1 -1
View File
@@ -293,7 +293,7 @@ private:
pcl::concatenatePointCloud(*output, *cloud2, *tmp_output); pcl::concatenatePointCloud(*output, *cloud2, *tmp_output);
#endif #endif
//Make sure row_step is the sum of both //Make sure row_step is the sum of both
tmp_output->row_step = output->row_step + cloud2->row_step; tmp_output->row_step = tmp_output->width * tmp_output->point_step;
output = tmp_output; output = tmp_output;
} }