1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 08:44:11 +08:00

Merge pull request #1055 from Sahloul:bugs/surface_matching/parallel_for

This commit is contained in:
Alexander Alekhin
2017-03-09 10:05:16 +00:00

View File

@@ -645,7 +645,12 @@ void PPF3DDetector::match(const Mat& pc, std::vector<Pose3DPtr>& results, const
Pose3DPtr pose(new Pose3D(alpha, refIndMax, maxVotes));
pose->updatePose(rawPose);
poseList.push_back(pose);
#if defined (_OPENMP)
#pragma omp critical
#endif
{
poseList.push_back(pose);
}
#if defined (_OPENMP)
free(accumulator);