mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +08:00
Fix reallocation issue of raw poses vector
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user