Converting point cloud to a grid

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

Converting point cloud to a grid

ILikeCookies
I have a point cloud and i want to convert it to a grid, which for every X,Y coordinate there will be Z height.

So i need to find for every X,y coordinate in the cloud 10 nearest neighbors , interpolate them and find the needed height.

I want to use KD tree to find 10 nearest neighbors , but i want him to search only by X,Y and not Z (because i want to find the 10 closest point to (x,y,0) only by (x,y) , even if there a point which is very high, i want him to find it instead of finding distant points on the x,y plane.

Can i make him do that ?
Reply | Threaded
Open this post in threaded view
|

Re: Converting point cloud to a grid

aichim
Administrator
Hi,

You have 2 options:
        * convert your cloud to PointCloud<PointUV> and put it in the kdtree
        * skip the PCL wrapper of FLANN and use FLANN structures directly to do your custom job.


Cheers,
Alex

On May 2, 2013, at 8:15 AM, ILikeCookies <[hidden email]> wrote:

> I have a point cloud and i want to convert it to a grid, which for every X,Y
> coordinate there will be Z height.
>
> So i need to find for every X,y coordinate in the cloud 10 nearest neighbors
> , interpolate them and find the needed height.
>
> I want to use KD tree to find 10 nearest neighbors , but i want him to
> search only by X,Y and not Z (because i want to find the 10 closest point to
> (x,y,0) only by (x,y) , even if there a point which is very high, i want him
> to find it instead of finding distant points on the x,y plane.
>
> Can i make him do that ?
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Converting-point-cloud-to-a-grid-tp4027631.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

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