ply_directory = 'F:\点云三维重建代码\基于八叉树的点云搜索\点云数据';
% 获取目录下所有PLY文件
ply_files = dir(fullfile(ply_directory, '*.ply'));
% 读取并处理每个PLY文件
all_points = [];
all_iss_points = [];
all_fpfh_features = [];
for i = 1:length(ply_files)
filename = fullfile(ply_directory,ply_files(i).name);
pc=pcread(filename);
points=pc.location;
[points, iss_points] = the_octree_of_find_nearest_neighbors(points);
fpfh_features = compute_fpfh(points, iss_points);
all_points = [all_points; points];
all_iss_points = [all_iss_points; iss_points];
all_fpfh_features = [all_fpfh_features; fpfh_features];
end
代码报错,但我不会改,求大佬指点