CGAL 6.2 - Classification: Classification/example_deprecated_conversion.cpp

CGAL 6.2 - Classification

Loading...
Searching...
No Matches
Classification/example_deprecated_conversion.cpp
#include <CGAL/Classification/ETHZ/Random_forest_classifier.h>
#include <cstdlib>
#include <fstream>
int main (int argc, char** argv)
{
if (argc != 3)
std::cerr << "Usage: " << argv[0] << " input.gz output.bin" << std::endl;
else
{
std::ifstream ifile (argv[1], std::ios_base::binary);
std::ofstream ofile (argv[2], std::ios_base::binary);
CGAL::Classification::ETHZ::Random_forest_classifier::
convert_deprecated_configuration_to_new_format(ifile, ofile);
}
return EXIT_SUCCESS;
}
CGAL::Classification::ETHZ::Random_forest_classifier::convert_deprecated_configuration_to_new_format
static void convert_deprecated_configuration_to_new_format(std::istream &input, std::ostream &output)
converts a deprecated configuration (in compressed ASCII format) to a new configuration (in binary fo...
Definition: Random_forest_classifier.h:341