I want to display 3D points with YELLOW color in .pcd
file format (Documentation of .pcd) . Use below C# code to retrieve PCD color format from YELLOW color (R: 255, G:255, B: 0).
byte red = 255;
byte green = 255;
byte blue = 0;
int rgb = ((int)red) << 16 | ((int)green) << 8 | ((int)blue);
float rgb2 = (float)rgb;
Then the value returned is rgb2 = 1.677696E+7
And save the points to PCD file like (x, y, z, 1.677696E+7)
.
I use PCD viewer to display the points but the color is not YELLOW as I am expecting ?
Is anything wrong with the viewer?