From 7f9be5de80c3a3b4ced101e401d5a6af578b5eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Oberl=C3=A4nder?= Date: Sat, 17 Aug 2013 03:00:57 +0200 Subject: [PATCH] HSV to RGB color conversion: Fix scale when converting desaturated values. --- common/include/pcl/point_types_conversion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/include/pcl/point_types_conversion.h b/common/include/pcl/point_types_conversion.h index ad5bf7f212e..1f445ca8669 100644 --- a/common/include/pcl/point_types_conversion.h +++ b/common/include/pcl/point_types_conversion.h @@ -179,7 +179,7 @@ namespace pcl out.x = in.x; out.y = in.y; out.z = in.z; if (in.s == 0) { - out.r = out.g = out.b = static_cast (in.v); + out.r = out.g = out.b = static_cast (255 * in.v); return; } float a = in.h / 60;