Fix usage of concept Range (no resize() method, size should be taken care of by the user

This commit is contained in:
Simon Giraudot
2018-12-12 09:16:57 +01:00
parent ae169b9f9a
commit eeed92c94d
7 changed files with 16 additions and 16 deletions
@@ -146,7 +146,7 @@ int main (int argc, char** argv)
///////////////////////////////////////////////////////////////////
//! [Classify]
std::vector<std::size_t> label_indices;
std::vector<int> label_indices (pts.size(), -1);
CGAL::Real_timer t;
t.start();
@@ -200,7 +200,7 @@ int main (int argc, char** argv)
{
f << pts[i] << " ";
Label_handle label = labels[label_indices[i]];
Label_handle label = labels[std::size_t(label_indices[i])];
if (label == ground)
f << "245 180 0" << std::endl;
else if (label == vegetation)
@@ -114,7 +114,7 @@ int main (int argc, char** argv)
classifier.set_effect (b, my_feature, Classifier::PENALIZING);
std::cerr << "Classifying" << std::endl;
std::vector<std::size_t> label_indices(pts.size(), -1);
std::vector<int> label_indices(pts.size(), -1);
Classification::classify_with_graphcut<CGAL::Sequential_tag>
(pts, Pmap(), labels, classifier,
neighborhood.k_neighbor_query(12),