From 1d7f80b0c5480e565d761a01d6dc201f52e98583 Mon Sep 17 00:00:00 2001 From: Philipp Hasper Date: Wed, 26 Nov 2014 10:58:57 +0100 Subject: [PATCH] SurfaceMatching: OpenMP indices Fixes compiler error: "index variable in OpenMP 'for' statement must have signed integral type" --- modules/surface_matching/src/ppf_match_3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/surface_matching/src/ppf_match_3d.cpp b/modules/surface_matching/src/ppf_match_3d.cpp index 7c468481f..18f7efe3d 100644 --- a/modules/surface_matching/src/ppf_match_3d.cpp +++ b/modules/surface_matching/src/ppf_match_3d.cpp @@ -375,7 +375,7 @@ void PPF3DDetector::clusterPoses(std::vector poseList, int numPoses, #pragma omp parallel for #endif // uses weighting by the number of votes - for (size_t i=0; i(poseClusters.size()); i++) { // We could only average the quaternions. So I will make use of them here double qAvg[4]={0}, tAvg[3]={0}; @@ -426,7 +426,7 @@ void PPF3DDetector::clusterPoses(std::vector poseList, int numPoses, #if defined _OPENMP #pragma omp parallel for #endif - for (size_t i=0; i(poseClusters.size()); i++) { // We could only average the quaternions. So I will make use of them here double qAvg[4]={0}, tAvg[3]={0};