Minor corrections

This commit is contained in:
Simon Giraudot
2017-05-04 09:37:10 +02:00
parent 417ceacec8
commit 165ad11219
10 changed files with 52 additions and 55 deletions
@@ -15,7 +15,7 @@ typedef CGAL::Identity_property_map<Point> Pmap;
namespace Classification = CGAL::Classification;
typedef Classification::Sum_of_weighted_features_classifier Classification_classifier;
typedef Classification::Sum_of_weighted_features_classifier Classifier;
typedef Classification::Point_set_neighborhood<Kernel, Point_range, Pmap> Neighborhood;
typedef Classification::Local_eigen_analysis Local_eigen_analysis;
@@ -95,17 +95,17 @@ int main (int argc, char** argv)
Feature_handle sphericity = features.add<Sphericity> (pts, eigen);
Classification_classifier classifier (labels, features);
Classifier classifier (labels, features);
std::cerr << "Setting weights" << std::endl;
classifier.set_weight(sphericity, 0.5);
classifier.set_weight(my_feature, 0.25);
std::cerr << "Setting up labels" << std::endl;
classifier.set_effect (a, sphericity, Classification_classifier::FAVORING);
classifier.set_effect (a, my_feature, Classification_classifier::FAVORING);
classifier.set_effect (b, sphericity, Classification_classifier::PENALIZING);
classifier.set_effect (b, my_feature, Classification_classifier::PENALIZING);
classifier.set_effect (a, sphericity, Classifier::FAVORING);
classifier.set_effect (a, my_feature, Classifier::FAVORING);
classifier.set_effect (b, sphericity, Classifier::PENALIZING);
classifier.set_effect (b, my_feature, Classifier::PENALIZING);
std::vector<std::size_t> label_indices;
Classification::classify_with_graphcut<CGAL::Sequential_tag>