savePNGFile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

savePNGFile

pcldev
This post has NOT been accepted by the mailing list yet.
I try to convert 2d point clouds( 3d point cloud that is projected to a plane) to an png image. But when I use savePNGFile i get an image that has dimension  (20000 x 1 ) which is useless. Can u give me advice how to use savePNGFile function. Or how can i conver the 2d point cloud to an image.
Reply | Threaded
Open this post in threaded view
|

Re: savePNGFile

Sergey
Administrator
Hi,

`savePNGFile()` works with organized point clouds, i.e. "image-like" point clouds
where the points are stored in a grid of a dimension `width x height`, rather
than a flat vector `width x 1`. You can get this sort of clouds from devices like
Kinect. The projected cloud you have is unorganized, therefore the result is non-
sense.

Regards,
Sergey