From 6b6d5a489060b3ed76c3648f45be43576f7ad23a Mon Sep 17 00:00:00 2001 From: Hamdi Sahloul Date: Thu, 9 Mar 2017 17:23:48 +0900 Subject: [PATCH] Fix reallocation issue of raw poses vector --- .../include/opencv2/surface_matching/ppf_match_3d.hpp | 2 +- modules/surface_matching/src/ppf_match_3d.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/surface_matching/include/opencv2/surface_matching/ppf_match_3d.hpp b/modules/surface_matching/include/opencv2/surface_matching/ppf_match_3d.hpp index 05b252980..c72ef7bb5 100644 --- a/modules/surface_matching/include/opencv2/surface_matching/ppf_match_3d.hpp +++ b/modules/surface_matching/include/opencv2/surface_matching/ppf_match_3d.hpp @@ -166,7 +166,7 @@ private: bool matchPose(const Pose3D& sourcePose, const Pose3D& targetPose); - void clusterPoses(std::vector poseList, int numPoses, std::vector &finalPoses); + void clusterPoses(std::vector& poseList, int numPoses, std::vector &finalPoses); bool trained; }; diff --git a/modules/surface_matching/src/ppf_match_3d.cpp b/modules/surface_matching/src/ppf_match_3d.cpp index 5c6361c8a..c82749a5b 100644 --- a/modules/surface_matching/src/ppf_match_3d.cpp +++ b/modules/surface_matching/src/ppf_match_3d.cpp @@ -327,7 +327,7 @@ bool PPF3DDetector::matchPose(const Pose3D& sourcePose, const Pose3D& targetPose return (phirotation_threshold && dNorm < this->position_threshold); } -void PPF3DDetector::clusterPoses(std::vector poseList, int numPoses, std::vector &finalPoses) +void PPF3DDetector::clusterPoses(std::vector& poseList, int numPoses, std::vector &finalPoses) { std::vector poseClusters;