diff --git a/common/include/pcl/impl/point_types.hpp b/common/include/pcl/impl/point_types.hpp index 1d70ec91560..d97722115cb 100644 --- a/common/include/pcl/impl/point_types.hpp +++ b/common/include/pcl/impl/point_types.hpp @@ -339,7 +339,8 @@ namespace pcl inline RGB () { - r = g = b = a = 0; + r = g = b = 0; + a = 255; } friend std::ostream& operator << (std::ostream& os, const RGB& p); @@ -614,7 +615,8 @@ namespace pcl { x = y = z = 0.0f; data[3] = 1.0f; - r = g = b = a = 0; + r = g = b = 0; + a = 255; } inline PointXYZRGB (uint8_t _r, uint8_t _g, uint8_t _b) { @@ -623,7 +625,7 @@ namespace pcl r = _r; g = _g; b = _b; - a = 0; + a = 255; } friend std::ostream& operator << (std::ostream& os, const PointXYZRGB& p); @@ -646,7 +648,7 @@ namespace pcl x = y = z = 0.0f; data[3] = 1.0f; r = g = b = 0; - a = 0; + a = 255; label = 255; } inline PointXYZRGBL (uint8_t _r, uint8_t _g, uint8_t _b, uint32_t _label) @@ -656,7 +658,7 @@ namespace pcl r = _r; g = _g; b = _b; - a = 0; + a = 255; label = _label; } @@ -934,7 +936,8 @@ namespace pcl { x = y = z = 0.0f; data[3] = 1.0f; - r = g = b = a = 0; + r = g = b = 0; + a = 255; normal_x = normal_y = normal_z = data_n[3] = 0.0f; curvature = 0; } @@ -1587,7 +1590,8 @@ namespace pcl x = y = z = 0.0f; data[3] = 1.0f; normal_x = normal_y = normal_z = data_n[3] = 0.0f; - rgba = 0; + r = g = b = 0; + a = 255; radius = confidence = curvature = 0.0f; }