close all
clc
clear all
ptCloud = pcread('./04.pcd');
[model,inlierIndices,outlierIndices,meanError] = pcfitplane(ptCloud,0.005, 'MaxNumTrials',10000);
dd=ptCloud.Location*model.Parameters(1:3).'+model.Parameters(4);
hist(dd,50)
4*std(dd)
meanError_all=mean(dd)
02-28
575

08-25
1150

01-15
1247

08-06
665
