anything for oriented bounding box?

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

anything for oriented bounding box?

rescue_and_pcl
Hi.
I am just wondering if there is any code in PCL for fitting an oriented bounding box for a point cloud. For example, if you segment the point cloud to some primitives and then for each primitive (plane, cylinder, cylinder, ...) you can find an oriented bounding box.
Reply | Threaded
Open this post in threaded view
|

Re: anything for oriented bounding box?

Radu B. Rusu
Administrator
This has already been discussed on the mailing list. Did you try using the search functionality? Even naively searching
for "oriented bounding box pcl" on any search engine returns the right results ;)

Cheers,
Radu.
--
http://openperception.org

On 01/22/2013 06:02 PM, rescue_and_pcl wrote:

> Hi.
> I am just wondering if there is any code in PCL for fitting an oriented
> bounding box for a point cloud. For example, if you segment the point cloud
> to some primitives and then for each primitive (plane, cylinder, cylinder,
> ...) you can find an oriented bounding box.
>
>
>
> --
> View this message in context: http://www.pcl-users.org/anything-for-oriented-bounding-box-tp4025633.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
Reply | Threaded
Open this post in threaded view
|

Re: anything for oriented bounding box?

Guido
In reply to this post by rescue_and_pcl
I already ran into this problem.
As there is no ready-to-use function in pcl, you have two options for oriented bounding boxes:

Using pcl::PCA and compute the OBB from the eigenvectors. However avoid the "reconstruction" and "projection" methods of the pcl::PCA class. I couldn't get them to work and some other people avoid them.

Another option is using this code which computes OBBs efficiently and is easy to use.

If you find another solution, please share it. At least I, may be interested in it.

Best regards,

Guido