clear;clc;
%for qp=1:2:11
%qp = 11;
resolution = 3000/sqrt(10);%m精度:resolution=3000/sqrt(10) mm精度:resolution=30000
oriDataPath = '../compressedPath/PointCloudPLY'; %原始点云文件夹
predictDataPath = strcat('../reconstructedPath/reconstructedPointsCloud/',num2str(qp)); %解码点云文件夹
oriList = dir(fullfile(oriDataPath,'*.ply')); %ply文件需要有rgb信息
predictList = dir(fullfile(predictDataPath,'*.ply'));
for i = 1 : length(oriList)
oriName = strcat(oriDataPath,'/',oriList(i).name);
%resolution = calculate_P_bb(oriName);%边界框最大距离
predictName = strcat(predictDataPath,'/',predictList(i).name);
fprintf("calculate pointcloud: %s\n",oriList(i).name);
command = ['pc_error.exe ' ...
'-a ' oriName ...
' -b ' predictName ...
' -c ' ...
'-r ' num2str(resolution) ...
' --dropdups=2 ' ...
'neighborsProc=1 ' ...
'-d'];
dos(command);
end
%end
exit();
pc_error点云测试
最新推荐文章于 2025-01-17 23:45:42 发布