summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/genct.cc
diff options
context:
space:
mode:
authorgaillaro2005-04-23 19:59:25 +0000
committergaillaro2005-04-23 19:59:25 +0000
commit9d894a3adfcb6cea19f159bfe3de58ae8bce77a1 (patch)
tree5efd81b50306ef42f4ad0baa3e3827be22bb7b35 /2005/i/robert/src/ovision/see/genct.cc
parentefcb9205cacf2f8ddf56bc2622bff1c5189ce5cd (diff)
programme pour generer la colortable
Diffstat (limited to '2005/i/robert/src/ovision/see/genct.cc')
-rw-r--r--2005/i/robert/src/ovision/see/genct.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/2005/i/robert/src/ovision/see/genct.cc b/2005/i/robert/src/ovision/see/genct.cc
new file mode 100644
index 0000000..aae2530
--- /dev/null
+++ b/2005/i/robert/src/ovision/see/genct.cc
@@ -0,0 +1,36 @@
+// genct.cc
+// robert - Programme du robot APBteam
+// Copyright (C) 2005 Olivier Gaillard
+
+#include <iostream>
+#include <vector>
+#include <string>
+
+#include "segmLearn.hh"
+#include "colorTable.hh"
+#include "oconfig.hh"
+
+int
+main(int argc, char **argv)
+{
+ /////////////////////////////////////////////////////////////////////////////////////////
+ /// Initialisation des classes
+ OConfig *oconfig_;
+ try
+ {
+ oconfig_ = new OConfig;
+ }
+ catch (std::string &e)
+ {
+ std::cerr << e << std::endl;
+ return 1;
+ }
+ ColorTable tab;
+ /////////////////////////////////////////////////////////////////////////////////////////
+ /// Création de la table
+ tab.create (oconfig_->nnNbColor, true);
+ tab.save ();
+ return 0;
+}
+
+