summaryrefslogtreecommitdiff
path: root/2005/i/robert/src
diff options
context:
space:
mode:
authorgaillaro2005-04-23 19:27:10 +0000
committergaillaro2005-04-23 19:27:10 +0000
commitefcb9205cacf2f8ddf56bc2622bff1c5189ce5cd (patch)
tree128166ff22a3cb644fc68755e8cd1986c04dfd18 /2005/i/robert/src
parentfb075a07e3347a357e18b7df3795909b0d6f4918 (diff)
remplacement des chemins vers fichiers de configs / images
Diffstat (limited to '2005/i/robert/src')
-rw-r--r--2005/i/robert/src/ovision/see/colorTable.hh6
-rw-r--r--2005/i/robert/src/ovision/see/oconfig.cc4
-rw-r--r--2005/i/robert/src/ovision/see/oconfig.hh10
-rw-r--r--2005/i/robert/src/ovision/see/test_cam.cc4
-rw-r--r--2005/i/robert/src/ovision/see/test_colortable.cc4
-rw-r--r--2005/i/robert/src/ovision/see/test_group.cc6
-rw-r--r--2005/i/robert/src/ovision/see/test_hotelling.cc2
-rw-r--r--2005/i/robert/src/ovision/see/test_img.cc4
-rw-r--r--2005/i/robert/src/ovision/see/test_magnifier.cc4
-rw-r--r--2005/i/robert/src/ovision/see/test_segm.cc2
10 files changed, 23 insertions, 23 deletions
diff --git a/2005/i/robert/src/ovision/see/colorTable.hh b/2005/i/robert/src/ovision/see/colorTable.hh
index e8e95a5..894fc90 100644
--- a/2005/i/robert/src/ovision/see/colorTable.hh
+++ b/2005/i/robert/src/ovision/see/colorTable.hh
@@ -34,15 +34,15 @@ class ColorTable
public:
/// Constructeur
- ColorTable (const char *filename = "rc/colortable.z");
+ ColorTable (const char *filename = "../runtime/rc/colortable.z");
/// Destructeur
virtual ~ColorTable ();
/// Cree un tableau des couleurs segmentées pour ne plus faire de calcul
void create(const int nbOutput, const bool testOutputMax = false);
/// Cree un fichier de ColorTable
- void save (const char *filename = "rc/colortable.z") const;
+ void save (const char *filename = "../runtime/rc/colortable.z") const;
/// Charge un fichier de ColorTable
- bool load (const char *filename = "rc/colortable.z");
+ bool load (const char *filename = "../runtime/rc/colortable.z");
/// Constantes
static const int colorTabSize = 256;
static const int colorTabSize2 = colorTabSize*colorTabSize;
diff --git a/2005/i/robert/src/ovision/see/oconfig.cc b/2005/i/robert/src/ovision/see/oconfig.cc
index 60f38e1..804a125 100644
--- a/2005/i/robert/src/ovision/see/oconfig.cc
+++ b/2005/i/robert/src/ovision/see/oconfig.cc
@@ -21,8 +21,8 @@ OConfig::OConfig(const char *filename)
{
instance = this;
load (filename);
- loadNNFile ("rc/poids");
- loadDistFile ("rc/dist");
+ loadNNFile ("../runtime/rc/poids");
+ loadDistFile ("../runtime/rc/dist");
}
/// Destructor
diff --git a/2005/i/robert/src/ovision/see/oconfig.hh b/2005/i/robert/src/ovision/see/oconfig.hh
index 54dbfec..2e77792 100644
--- a/2005/i/robert/src/ovision/see/oconfig.hh
+++ b/2005/i/robert/src/ovision/see/oconfig.hh
@@ -45,7 +45,7 @@ class OConfig
public:
/// Constructeur
- OConfig (const char *filename = "rc/vision.conf");
+ OConfig (const char *filename = "../runtime/rc/vision.conf");
/// Destructeur
~OConfig (void);
@@ -95,9 +95,9 @@ class OConfig
/// temps avant que le marqueur de la balle commence a descendre si elle est partie vers le bas
int ball_bottom_time_out;
/////////////////////////////// GROUP ////////////////////////////////////////////////////////////////
- /// liste des objects à rechercher
+ /// liste des objects à reche../runtime/rcher
std::vector<ObjectColor> groupColor;
- /// distance des sauts pour la recherche des balles
+ /// distance des sauts pour la reche../runtime/rche des balles
int jumpPointDist;
/// tableau de correspondances des couleurs RGB
unsigned char *color;
@@ -141,7 +141,7 @@ class OConfig
double skittleScoreBendRatio;
/// Chargement de poids pour le reseau de neurone
- void loadNNFile (const char *filePath = "rc/poids");
+ void loadNNFile (const char *filePath = "../runtime/rc/poids");
/// Creation d'un fichier de poids pour le reseau de neurones
void createNNFile (const char *file, int nbOutput) const;
/// Creatio du fichier de la table de distance
@@ -150,7 +150,7 @@ class OConfig
void loadDistFile (const char *filename);
static OConfig* getInstance () {return instance;}
/// Charge les fichiers de conf
- void load (const char *filename = "rc/vision.conf");
+ void load (const char *filename = "../runtime/rc/vision.conf");
};
diff --git a/2005/i/robert/src/ovision/see/test_cam.cc b/2005/i/robert/src/ovision/see/test_cam.cc
index 193d8d2..f7dd315 100644
--- a/2005/i/robert/src/ovision/see/test_cam.cc
+++ b/2005/i/robert/src/ovision/see/test_cam.cc
@@ -21,7 +21,7 @@ int main(int argc, char **argv)
{
// Initialisation des classes
Img img;
- OConfig config("rc/vision.conf");
+ OConfig config;
// Acquisition de l'image et sauvegarde
if (argv[1]) ;
else
@@ -31,6 +31,6 @@ int main(int argc, char **argv)
vid.calibrate ();
img.load (vid);
}
- img.writeRaw ("shots/toto.yuv");
+ img.writeRaw ("../runtime/shots/toto.yuv");
}
diff --git a/2005/i/robert/src/ovision/see/test_colortable.cc b/2005/i/robert/src/ovision/see/test_colortable.cc
index b803093..6c9f57e 100644
--- a/2005/i/robert/src/ovision/see/test_colortable.cc
+++ b/2005/i/robert/src/ovision/see/test_colortable.cc
@@ -27,7 +27,7 @@ main(int argc, char **argv)
OConfig *oconfig_;
try
{
- oconfig_ = new OConfig ("rc/vision.conf");
+ oconfig_ = new OConfig;
}
catch (std::string &e)
{
@@ -42,7 +42,7 @@ main(int argc, char **argv)
// Création de l'image segmentée
segm.segmImg (&img);
img.doImg ();
- img.writeRaw ("shots/segm.rgb");
+ img.writeRaw ("../runtime/shots/segm.rgb");
return 0;
}
diff --git a/2005/i/robert/src/ovision/see/test_group.cc b/2005/i/robert/src/ovision/see/test_group.cc
index bcd4ae2..a9b4d94 100644
--- a/2005/i/robert/src/ovision/see/test_group.cc
+++ b/2005/i/robert/src/ovision/see/test_group.cc
@@ -21,7 +21,7 @@ main(int argc, char **argv)
OConfig *oconfig_;
try
{
- oconfig_ = new OConfig ("rc/vision.conf");
+ oconfig_ = new OConfig;
}
catch (std::string &e)
{
@@ -29,7 +29,7 @@ main(int argc, char **argv)
return 1;
}
ImgInterface img;
- img.loadRaw ("shots/test.rgb", Image::rgb, 360, 296);
+ img.loadRaw ("../runtime/shots/test.rgb", Image::rgb, 360, 296);
SegmLearn segm;
segm.buildNN (oconfig_->nnNbColor, Segm::loadFromFile);
Group group(&img, &segm);
@@ -50,6 +50,6 @@ main(int argc, char **argv)
std::vector<Zone> &test = group.getZoneList ();
img.doGroupImg (test);
img.doImg (img.getTabSegm ());
- img.writeRaw ("shots/group.rgb", img.getTabOut ());
+ img.writeRaw ("../runtime/shots/group.rgb", img.getTabOut ());
}
diff --git a/2005/i/robert/src/ovision/see/test_hotelling.cc b/2005/i/robert/src/ovision/see/test_hotelling.cc
index 5288e73..3f2bfbc 100644
--- a/2005/i/robert/src/ovision/see/test_hotelling.cc
+++ b/2005/i/robert/src/ovision/see/test_hotelling.cc
@@ -17,7 +17,7 @@ main(int argc, char **argv)
OConfig *oconfig_;
try
{
- oconfig_ = new OConfig ("rc/vision.conf");
+ oconfig_ = new OConfig;
}
catch (std::string &e)
{
diff --git a/2005/i/robert/src/ovision/see/test_img.cc b/2005/i/robert/src/ovision/see/test_img.cc
index 065db70..c67098f 100644
--- a/2005/i/robert/src/ovision/see/test_img.cc
+++ b/2005/i/robert/src/ovision/see/test_img.cc
@@ -12,11 +12,11 @@
int main(int argc, char **argv)
{
ImgInterface img;
- OConfig config("rc/vision.conf");
+ OConfig config;
// Chargement de l'image
img.loadRaw (argv[1], Image::rgb, 360, 296);
// Inversion de l'image
img.mirror ();
- img.writeRaw ("shots/toto.rgb");
+ img.writeRaw ("../runtime/shots/toto.rgb");
}
diff --git a/2005/i/robert/src/ovision/see/test_magnifier.cc b/2005/i/robert/src/ovision/see/test_magnifier.cc
index bee1398..91eabd0 100644
--- a/2005/i/robert/src/ovision/see/test_magnifier.cc
+++ b/2005/i/robert/src/ovision/see/test_magnifier.cc
@@ -22,7 +22,7 @@ main(int argc, char **argv)
OConfig *oconfig_;
try
{
- oconfig_ = new OConfig ("rc/vision.conf");
+ oconfig_ = new OConfig;
}
catch (std::string &e)
{
@@ -30,7 +30,7 @@ main(int argc, char **argv)
return 1;
}
Img img;
- img.loadRaw ("shots/test.rgb", Image::rgb, 360, 296);
+ img.loadRaw ("../runtime/shots/test.rgb", Image::rgb, 360, 296);
SegmLearn segm;
segm.buildNN (oconfig_->nnNbColor, Segm::loadFromFile);
Group group (&img, &segm);
diff --git a/2005/i/robert/src/ovision/see/test_segm.cc b/2005/i/robert/src/ovision/see/test_segm.cc
index 3321852..f7df860 100644
--- a/2005/i/robert/src/ovision/see/test_segm.cc
+++ b/2005/i/robert/src/ovision/see/test_segm.cc
@@ -27,6 +27,6 @@ int main(int argc, char **argv)
// Création de l'image segmentée
img.doImg ();
- img.writeRaw ("shots/segm.rgb", img.getTabOut ());
+ img.writeRaw ("../runtime/shots/segm.rgb", img.getTabOut ());
}