Skip to content

Commit

Permalink
Merge pull request #20 from HeDo88TH/parameters-cleanup-fixes
Browse files Browse the repository at this point in the history
Removed eval-result parameter and fixed output behaviour
  • Loading branch information
pierotofy authored May 8, 2023
2 parents 5f2383c + 7c2d24d commit e0256f9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pcclassify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>()->default_value("false"))
("s,skip", "Do not apply these classification labels (comma separated) and leave them as-is", cxxopts::value<std::vector<int>>())
("e,eval", "If the input point cloud is labeled, enable accuracy evaluation", cxxopts::value<bool>()->default_value("false"))
("eval-result", "Write evaluation results cloud to ply file", cxxopts::value<std::string>()->default_value(""))
("stats-file", "Write evaluation statistics to json file", cxxopts::value<std::string>()->default_value(""))
("h,help", "Print usage")
;
Expand Down Expand Up @@ -101,7 +100,6 @@ int main(int argc, char **argv) {
std::cout << "Features: " << features.size() << std::endl;

const auto eval = result["eval"].as<bool>();
const auto evalResult = result["eval-result"].as<std::string>();
const auto statsFile = result["stats-file"].as<std::string>();
const auto regRadius = result["reg-radius"].as<double>();
const auto color = result["color"].as<bool>();
Expand All @@ -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;
Expand Down

0 comments on commit e0256f9

Please sign in to comment.