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

Fix reallocation issue of raw poses vector

This commit is contained in:
Hamdi Sahloul
2017-03-09 17:23:48 +09:00
parent 53e34260b1
commit 6b6d5a4890
2 changed files with 2 additions and 2 deletions

View File

@@ -166,7 +166,7 @@ private:
bool matchPose(const Pose3D& sourcePose, const Pose3D& targetPose); bool matchPose(const Pose3D& sourcePose, const Pose3D& targetPose);
void clusterPoses(std::vector<Pose3DPtr> poseList, int numPoses, std::vector<Pose3DPtr> &finalPoses); void clusterPoses(std::vector<Pose3DPtr>& poseList, int numPoses, std::vector<Pose3DPtr> &finalPoses);
bool trained; bool trained;
}; };

View File

@@ -327,7 +327,7 @@ bool PPF3DDetector::matchPose(const Pose3D& sourcePose, const Pose3D& targetPose
return (phi<this->rotation_threshold && dNorm < this->position_threshold); return (phi<this->rotation_threshold && dNorm < this->position_threshold);
} }
void PPF3DDetector::clusterPoses(std::vector<Pose3DPtr> poseList, int numPoses, std::vector<Pose3DPtr> &finalPoses) void PPF3DDetector::clusterPoses(std::vector<Pose3DPtr>& poseList, int numPoses, std::vector<Pose3DPtr> &finalPoses)
{ {
std::vector<PoseCluster3DPtr> poseClusters; std::vector<PoseCluster3DPtr> poseClusters;