Hello,
I am new to mayavi and I am trying to use mayavi in python to visualize
a point cloud. I have a colored point cloud (PointCloud<PointXYZRGB>)
stored in a numpy array of shape (40000, 4). The first three columns of
this array are the position in 3D space (x, y, z) and the last column is
RGB color packed in one using the following formulation-
// pack r/g/b into rgb
uint8_t r = 255, g = 0, b = 0; // Example: Red color
uint32_t rgb = ((uint32_t)r << 16 | (uint32_t)g << 8 | (uint32_t)b);
Hence, the point cloud contains 40,000 points in which each point has a
color assigned to it.
I want to know if it is possible to visualize it using mayavi python?
Any sample code will be appreciated more.
-
Thanks
Ravi
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users