You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lzcchl It is possible that you get different results because something in PCL changed. It is also possible that you get different results because you used different compiler versions (VS2019 or VS2022).
What are the plane coefficients that are printed in each case? Are both a good fit for the plane in your point cloud?
Can you perhaps test with more PCL versions (PCL 1.12.0, PCL 1.12.1, PCL 1.13.0) and check with which PCL version the results changed?
Looking at the number of inliers, the results with PCL 1.13.1 are better. With PCL 1.11.1, the covariance matrix computation while refining/optimizing the plane coefficients was inaccurate because the points in your cloud are quite far away from the origin. This was fixed in the pull request I linked above. So use PCL 1.13.1, the results are more precise.
Hi, There is a code with two results when using two PCL versions, please, is that something change?
code
#include
#include <Eigen/Core>
#include <opencv2/opencv.hpp>
#include <pcl/common/angles.h>
#include <pcl/common/impl/pca.hpp>
#include <pcl/common/common.h> // for getMinMax3D()
#include <pcl/common/eigen.h>
#include <pcl/common/centroid.h>
#include <pcl/common/geometry.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/io/ply_io.h>
#include <pcl/io/obj_io.h>
#include <pcl/segmentation/sac_segmentation.h> //基于采样一致性分割的类的头文件
int main()
{
using namespace std;
using namespace cv;
cout << "begin" << endl;
}
this is the data.
cloudRgbPtr.zip
The text was updated successfully, but these errors were encountered: