Skip to content

Commit 7c2d24d

Browse files
committed
Removed eval-result parameter and fixed output behaviour
1 parent 5f2383c commit 7c2d24d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pcclassify.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ int main(int argc, char **argv) {
2121
("u,unclassified", "Only classify points that are labeled as unclassified and leave the others untouched", cxxopts::value<bool>()->default_value("false"))
2222
("s,skip", "Do not apply these classification labels (comma separated) and leave them as-is", cxxopts::value<std::vector<int>>())
2323
("e,eval", "If the input point cloud is labeled, enable accuracy evaluation", cxxopts::value<bool>()->default_value("false"))
24-
("eval-result", "Write evaluation results cloud to ply file", cxxopts::value<std::string>()->default_value(""))
2524
("stats-file", "Write evaluation statistics to json file", cxxopts::value<std::string>()->default_value(""))
2625
("h,help", "Print usage")
2726
;
@@ -101,7 +100,6 @@ int main(int argc, char **argv) {
101100
std::cout << "Features: " << features.size() << std::endl;
102101

103102
const auto eval = result["eval"].as<bool>();
104-
const auto evalResult = result["eval-result"].as<std::string>();
105103
const auto statsFile = result["stats-file"].as<std::string>();
106104
const auto regRadius = result["reg-radius"].as<double>();
107105
const auto color = result["color"].as<bool>();
@@ -117,12 +115,9 @@ int main(int argc, char **argv) {
117115
regRadius, color, unclassified, eval, skip, statsFile);
118116
}
119117
#endif
120-
121-
if (eval && !evalResult.empty())
122-
{
123-
savePointSet(*pointSet, evalResult);
124-
}
125118

119+
savePointSet(*pointSet, outputFile);
120+
126121
}
127122
catch (std::exception &e) {
128123
std::cerr << "Error: " << e.what() << std::endl;

0 commit comments

Comments
 (0)