Pcl_ objects separated by square box to __PCL

Source: Internet
Author: User

Box selection itself is still very simple, as long as the division of each object after the point of the focus of the cloud, and then draw a frame, here I also added a PCA, the rectangular frame in accordance with the object point of the main axis of the direction of the adjustment, mainly reference to the http://pointclouds.org/ Documentation/tutorials/moment_of_inertia.php wrote here in detail, the main process is:

First, the covariance matrix of the point cloud is computed, and its eigenvalues and vectors are extracted. You can assume that the resulting eigenvector is normalized and always form the right-hand coordinate system (the main eigenvector represents the x-axis, and the secondary vector represents the z axis). In the next step, the iterative process occurs. Rotate the main eigenvector in each iteration. The rotation order is always the same and is performed around other eigenvectors, which provides the invariance of the rotation of the point cloud. Thereafter, we will refer to this rotational main vector as the current axis.


The box selection for the referenced article is this:



In the end, my results are:




Here my code is very redundant ... But my code ability is also general, do not post out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.