diff --git a/recognition/include/pcl/recognition/face_detection/rf_face_detector_trainer.h b/recognition/include/pcl/recognition/face_detection/rf_face_detector_trainer.h index b5247bc8487..2729db06578 100644 --- a/recognition/include/pcl/recognition/face_detection/rf_face_detector_trainer.h +++ b/recognition/include/pcl/recognition/face_detection/rf_face_detector_trainer.h @@ -34,8 +34,8 @@ namespace pcl float HEAD_ST_DIAMETER_; float larger_radius_ratio_; std::vector > head_center_votes_; - std::vector, Eigen::aligned_allocator > head_center_votes_clustered_; - std::vector, Eigen::aligned_allocator > head_center_original_votes_clustered_; + std::vector > > head_center_votes_clustered_; + std::vector > > head_center_original_votes_clustered_; std::vector > angle_votes_; std::vector uncertainties_; std::vector > head_clusters_centers_; diff --git a/recognition/src/face_detection/rf_face_detector_trainer.cpp b/recognition/src/face_detection/rf_face_detector_trainer.cpp index ac190d6aa15..ca97053d72e 100644 --- a/recognition/src/face_detection/rf_face_detector_trainer.cpp +++ b/recognition/src/face_detection/rf_face_detector_trainer.cpp @@ -108,7 +108,7 @@ void pcl::RFFaceDetectorTrainer::faceVotesClustering() ind.push_back (static_cast(i)); votes_indices.push_back (ind); - std::vector < Eigen::Vector3f > votes_in_cluster; + std::vector < Eigen::Vector3f, Eigen::aligned_allocator > votes_in_cluster; votes_in_cluster.push_back (center_vote); head_center_original_votes_clustered_.push_back (votes_in_cluster);