Skip to content

Commit

Permalink
Change default alpha value to 255.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbuettner committed Oct 13, 2015
1 parent ef3cf53 commit ef55903
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions common/include/pcl/impl/point_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
{
Expand All @@ -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);
Expand All @@ -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)
Expand All @@ -656,7 +658,7 @@ namespace pcl
r = _r;
g = _g;
b = _b;
a = 0;
a = 255;
label = _label;
}

Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ef55903

Please sign in to comment.