Commit e6d9f4fa authored by artificiel's avatar artificiel
Browse files

EuclidianExtractor: regle le probleme de overload

passage de "while" a "if" et retrait de la clause min 10 points (a voir si cette clause peut etre re-instauree)
parent 3f0dc33c
......@@ -61,8 +61,10 @@ class EuclidianExtractor : public ofThread
while (to_extract_.receive(cloud)) {
if (cloud->size() > 10) {
TS_START("EuclidianExtraction");
// if (cloud->size() > 10) {
// TS_START("EuclidianExtraction");
std::vector<pcl::PointIndices> cluster_indices;
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr supercloudFilteredRGBA;
......@@ -202,7 +204,7 @@ class EuclidianExtractor : public ofThread
}
}
/*
/*
2) pour chaque cloud non-associé:
on regarde les mesh restant
......@@ -234,9 +236,8 @@ class EuclidianExtractor : public ofThread
}
}
extracted_.send(fresh_clouds);
TS_STOP("EuclidianExtraction");
}
// TS_STOP("EuclidianExtraction");
// }
}
}
......@@ -247,8 +248,10 @@ class EuclidianExtractor : public ofThread
bool receive()
{
while (extracted_.tryReceive(extracted_clouds_)) {
if (extracted_.tryReceive(extracted_clouds_)) {
return true;
} else {
// ofLogNotice("EuclidianExtraction") << "nothing to receive";
}
return false;
}
......@@ -457,7 +460,6 @@ class EuclidianExtractor : public ofThread
shared_ptr<vector<shared_ptr<SmartCloud>>> extracted_clouds_;
ofParameterGroup parameters;
ofParameter<float> cluster_distance_tolerance;
ofParameter<float> cluster_minimum_points;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment