larsmans / python-pcl

Python bindings to the pointcloud library (pcl)
http://strawlab.github.com/python-pcl/
Other
0 stars 2 forks source link

Color issues #6

Closed c-martinez closed 9 years ago

c-martinez commented 9 years ago

Colour information seems to be lost in the process

Example

import pcl
import numpy as np

points = np.array([[1,1,1, 10, 20, 30]] * 10)
pc = pcl.PointCloudXYZRGB(points.astype(np.float32))
pc[0]

Output

Out: (1.0, 1.0, 1.0, 33.0, 65.0, 224.0)

Expected

Out: (1.0, 1.0, 1.0, 10.0, 20.0, 30.0)
c-martinez commented 9 years ago

Fixed!