File: example_deprecated_conversion.cpp

package info (click to toggle)
cgal 6.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 141,840 kB
  • sloc: cpp: 797,081; ansic: 203,398; sh: 490; python: 411; makefile: 286; javascript: 174
file content (20 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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;
}