From 021119a896a65c3846230363b6253a97f010bd37 Mon Sep 17 00:00:00 2001 From: Luc Absil Date: Thu, 7 May 2015 16:14:23 +0000 Subject: [PATCH] Un petit commentaire ne fait jamais de mal filtreHue.cpp edited online with Bitbucket --- src/filtreHue.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filtreHue.cpp b/src/filtreHue.cpp index 7867f62..d2d9250 100644 --- a/src/filtreHue.cpp +++ b/src/filtreHue.cpp @@ -17,6 +17,8 @@ class Callback { BOOST_FOREACH (const Point& pt, msg->points) { uint8_t min, max, c; + + //Recherche du min et du max des coefficients R,G,B if (pt.r >= pt.g) { if (pt.g >= pt.b) { max = pt.r @@ -40,7 +42,7 @@ class Callback { } c = max - min; - + assert(c > 0); assert(max > pt.r); assert(max > pt.g); @@ -50,7 +52,7 @@ class Callback { assert(min < pt.b); - + pcl->height = 1; pcl->width = pcl->points.size(); publisher.publish(pcl);