I am trying to fit a plane to a set of point cloud. I tried using Point Cloud Library (PCL) & it works well. What I need to know is that how can I obtain the coefficients a,b,c of the fitted plane (ax+by+cz+1=0). Is there any straightforward way? I got some insights from here: 3D Least Squares Plane
相关问题
- PCL Point Feature Histograms - binning
- C++ CMake FLANN failing when building pcl in vs201
- error LNK2001 when including “pcl_visualizer.h”
- Why are the min and max vectors for pcl::CropBox 4
- Eigen with PointCloud (PCL)
相关文章
- How to find corner points of any object in point c
- PCL: Scale two Point-Clouds to the same size
- OpenCV and PCL conflict?
- How can I change RGB values of pcl::PointXYZRGBA?
- Create a pcl::PointCloud::Ptr from a pcl::PointClo
- Robustly estimate Polynomial geometric transformat
- How to read .ply file using PCL
- Point Cloud Library with Visual Studio 2017
See the following planar segmentation tutorial:
http://pointclouds.org/documentation/tutorials/planar_segmentation.php
Note in particular the use of the
pcl::ModelCoefficients
data structure.Allocation:
Use:
Meaning:
coefficients->values[0]/coefficients->values[3]
is your a.coefficients->values[1]/coefficients->values[3]
is your b.coefficients->values[2]/coefficients->values[3]
is your c.See also:
http://docs.pointclouds.org/1.7.0/structpcl_1_1_model_coefficients.html