mirror of https://github.com/CGAL/cgal
Merge pull request #7177 from afabri/Classification-vary_file_names-GF
Classification: Write to different files and change degree of fair()
This commit is contained in:
commit
bc42dfc4ef
|
|
@ -140,7 +140,7 @@ int main (int argc, char** argv)
|
|||
classifier.save_configuration(fconfig);
|
||||
|
||||
// Write result
|
||||
std::ofstream f ("classification.ply");
|
||||
std::ofstream f ("classification_ethz_random_forest.ply");
|
||||
f.precision(18);
|
||||
f << pts;
|
||||
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ int main (int argc, char** argv)
|
|||
}
|
||||
|
||||
// Write result
|
||||
std::ofstream f ("classification.ply");
|
||||
std::ofstream f ("classification_opencv_random_forest.ply");
|
||||
f.precision(18);
|
||||
f << pts;
|
||||
|
||||
|
|
|
|||
|
|
@ -474,7 +474,8 @@ int main (int argc, char** argv)
|
|||
for (Mesh::Halfedge_index hi : holes)
|
||||
if (hi != outer_hull)
|
||||
CGAL::Polygon_mesh_processing::triangulate_refine_and_fair_hole
|
||||
(dtm_mesh, hi, CGAL::Emptyset_iterator(), CGAL::Emptyset_iterator());
|
||||
(dtm_mesh, hi, CGAL::Emptyset_iterator(), CGAL::Emptyset_iterator(),
|
||||
CGAL::parameters::fairing_continuity(0));
|
||||
|
||||
// Save DTM with holes filled
|
||||
std::ofstream dtm_filled_ofile ("dtm_filled.ply", std::ios_base::binary);
|
||||
|
|
@ -736,7 +737,7 @@ int main (int argc, char** argv)
|
|||
points.range(label_map)).mean_intersection_over_union() << std::endl;
|
||||
|
||||
// Save the classified point set
|
||||
std::ofstream classified_ofile ("classified.ply");
|
||||
std::ofstream classified_ofile ("classification_gis_tutorial.ply");
|
||||
CGAL::IO::set_binary_mode (classified_ofile);
|
||||
classified_ofile << points;
|
||||
classified_ofile.close();
|
||||
|
|
|
|||
Loading…
Reference in New Issue