diff --git a/Classification/examples/Classification/example_ethz_random_forest.cpp b/Classification/examples/Classification/example_ethz_random_forest.cpp index 423056b12e8..961c63b41ac 100644 --- a/Classification/examples/Classification/example_ethz_random_forest.cpp +++ b/Classification/examples/Classification/example_ethz_random_forest.cpp @@ -32,19 +32,9 @@ typedef Classification::Point_set_feature_generator int main (int argc, char** argv) { std::string filename = "data/b9_training.ply"; - bool use_opencv = false; if (argc > 1) - { - if (std::string(argv[1]) == "-cv") - { - use_opencv = true; - if (argc > 2) - filename = argv[2]; - } - else - filename = argv[1]; - } + filename = argv[1]; std::ifstream in (filename.c_str(), std::ios::binary); Point_set pts; diff --git a/Classification/examples/Classification/example_opencv_random_forest.cpp b/Classification/examples/Classification/example_opencv_random_forest.cpp index f14eb20b303..3f8971389e3 100644 --- a/Classification/examples/Classification/example_opencv_random_forest.cpp +++ b/Classification/examples/Classification/example_opencv_random_forest.cpp @@ -32,19 +32,9 @@ typedef Classification::Point_set_feature_generator int main (int argc, char** argv) { std::string filename = "data/b9_training.ply"; - bool use_opencv = false; if (argc > 1) - { - if (std::string(argv[1]) == "-cv") - { - use_opencv = true; - if (argc > 2) - filename = argv[2]; - } - else - filename = argv[1]; - } + filename = argv[1]; std::ifstream in (filename.c_str(), std::ios::binary); Point_set pts;