From fb075a07e3347a357e18b7df3795909b0d6f4918 Mon Sep 17 00:00:00 2001 From: gaillaro Date: Sat, 23 Apr 2005 18:58:44 +0000 Subject: * ajout détection des groupes de quilles * essai de detection des vis * detection verticalité --- 2005/i/robert/src/ovision/see/segmLearn.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2005/i/robert/src/ovision/see/segmLearn.cc') 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 -- cgit v1.2.3