diff --git a/pcclassify.cpp b/pcclassify.cpp index 954e4c8..a611774 100644 --- a/pcclassify.cpp +++ b/pcclassify.cpp @@ -21,7 +21,6 @@ int main(int argc, char **argv) { ("u,unclassified", "Only classify points that are labeled as unclassified and leave the others untouched", cxxopts::value()->default_value("false")) ("s,skip", "Do not apply these classification labels (comma separated) and leave them as-is", cxxopts::value>()) ("e,eval", "If the input point cloud is labeled, enable accuracy evaluation", cxxopts::value()->default_value("false")) - ("eval-result", "Write evaluation results cloud to ply file", cxxopts::value()->default_value("")) ("stats-file", "Write evaluation statistics to json file", cxxopts::value()->default_value("")) ("h,help", "Print usage") ; @@ -101,7 +100,6 @@ int main(int argc, char **argv) { std::cout << "Features: " << features.size() << std::endl; const auto eval = result["eval"].as(); - const auto evalResult = result["eval-result"].as(); const auto statsFile = result["stats-file"].as(); const auto regRadius = result["reg-radius"].as(); const auto color = result["color"].as(); @@ -117,12 +115,9 @@ int main(int argc, char **argv) { regRadius, color, unclassified, eval, skip, statsFile); } #endif - - if (eval && !evalResult.empty()) - { - savePointSet(*pointSet, evalResult); - } + savePointSet(*pointSet, outputFile); + } catch (std::exception &e) { std::cerr << "Error: " << e.what() << std::endl;