summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/colorTable.cc
diff options
context:
space:
mode:
authorgaillaro2005-04-24 14:19:12 +0000
committergaillaro2005-04-24 14:19:12 +0000
commitac2a19d063c278cf4aeb95dbce818034536ca53d (patch)
tree4ba766d83e962d0d932a8fcee546c4947457235b /2005/i/robert/src/ovision/see/colorTable.cc
parentb61c30486959f3838836fbafeb78c79ea0785683 (diff)
* ajout du programme pour l'apprentissage a partir de plusieurs images
* elimination du cercle au dessus de la quille
Diffstat (limited to '2005/i/robert/src/ovision/see/colorTable.cc')
-rw-r--r--2005/i/robert/src/ovision/see/colorTable.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/2005/i/robert/src/ovision/see/colorTable.cc b/2005/i/robert/src/ovision/see/colorTable.cc
index 6d0780f..2b37fcf 100644
--- a/2005/i/robert/src/ovision/see/colorTable.cc
+++ b/2005/i/robert/src/ovision/see/colorTable.cc
@@ -43,7 +43,7 @@ ColorTable::create (const int nbOutput_, const bool testOutputMax)
{
// Remplissage de la table
x[0]=i; x[1]=j; x[2]=k;
- data_[ i*colorTabSize2 + j*colorTabSize +k ] = segm.giveColor (x , testOutputMax);
+ data_[ i*colorTabSize2 + j*colorTabSize +k ] = segm.giveColor (x , testOutputMax, true);
}
}
@@ -71,7 +71,7 @@ ColorTable::load (const char *filename)
delete [] data_;
data_ = new unsigned char[colorTabSizeTotal];
/// Ouverture du fichier de couleurs
- gzFile file = gzopen (filename, "w+");
+ gzFile file = gzopen (filename, "r");
if (file)
{
std::cout << "ColorTable:: Chargement de la table" << std::endl;