-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Your Environment
- PCL Version: the master branch
Context
See the code
pcl/common/include/pcl/impl/point_types.hpp
Lines 504 to 509 in 9467b94
inline PointXYZL () | |
{ | |
x = y = z = 0.0f; | |
data[3] = 1.0f; | |
label = 0; | |
} |
pcl/common/include/pcl/impl/point_types.hpp
Lines 659 to 666 in 9467b94
inline PointXYZRGBL () | |
{ | |
x = y = z = 0.0f; | |
data[3] = 1.0f; | |
r = g = b = 0; | |
a = 255; | |
label = 255; | |
} |
pcl/common/include/pcl/impl/point_types.hpp
Lines 1034 to 1041 in 9467b94
inline PointXYZLNormal () | |
{ | |
x = y = z = 0.0f; | |
data[3] = 1.0f; | |
normal_x = normal_y = normal_z = data_n[3] = 0.0f; | |
label = 0; | |
curvature = 0; | |
} |
Expected Behavior
label
should be initialized to the same value across different types.
Current Behavior
It is 0 in PointXYZL
and PointXYZLNormal
but 255 in PointXYZRGBL
.
Code to Reproduce
See the code above.
Possible Solution
Change it to 0 for PointXYZRGBL
since 255 does not make sense.