Points Order

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

Points Order

MC
Hi ,

I'm wondering how to iterate through set of points as usual manner like this:

for i in range(0,rows):
   for j in range(0,cols):
      image[i,j]...

When I use PointCloud iterator, it iterate according to the order of pcd file.(unordered) But I want x-y to increase as the loop proceeds.

Any help is greatly appreciated.
Thank you

--
Mahmut ÇAVDAR


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Points Order

Jochen Sprickerhof
Administrator
Hi Mahmut,

* Mahmut Cavdar <[hidden email]> [2015-04-06 20:38]:

> I'm wondering how to iterate through set of points as usual manner like
> this:
>
> *for i in range(0,rows):*
> > *   for j in range(0,cols):*
> > *      image[i,j]...*
> >
>
> When I use PointCloud iterator, it iterate according to the order of pcd
> file.(unordered) But I want x-y to increase as the loop proceeds.
You want an organized point cloud. Read:

http://pointclouds.org/documentation/tutorials/pcd_file_format.php

Cheers Jochen

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment