summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/segmLearn.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/ovision/see/segmLearn.cc')
-rw-r--r--2005/i/robert/src/ovision/see/segmLearn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/2005/i/robert/src/ovision/see/segmLearn.cc b/2005/i/robert/src/ovision/see/segmLearn.cc
index 627f656..b2a0a83 100644
--- a/2005/i/robert/src/ovision/see/segmLearn.cc
+++ b/2005/i/robert/src/ovision/see/segmLearn.cc
@@ -173,9 +173,9 @@ SegmLearn::findColorNN (const unsigned char *x, const bool testOutputMax) const
/// @param *x pointeur vers un tableau contenant une valeur RGB
/// @param testOutputMax choix de l'utilisation d'un sueil maxi pour la sortie pour éviter qu'une couleur trop différente soit attribuer à une autre couleur
unsigned char
-SegmLearn::giveColor (const unsigned char *x, const bool testOutputMax, const bool nodeProcess)
+SegmLearn::giveColor (const unsigned char *x, const bool testOutputMax, const bool nodeProcess, const bool lumFlag)
{
- if (lumPos_ >= 0) addLum (x[lumPos_]);
+ if (lumFlag && (lumPos_ >= 0)) addLum (x[lumPos_]);
if (nodeProcess)
return index_ [findColorNN (x, testOutputMax)];
else