使用点云的实体对象
Solid object using point cloud
我正在使用matlab做一个3D人脸识别和验证项目。人脸特征点图我已经做过了。但我想将我的点云填充到一个实体对象中。我该怎么做?
这是我的代码:
load('myOne.mat');
figure(3)
plot3(myOne(:,1),myOne(:,2),myOne(:,3),'r.');
%3D face building
shp = alphaShape(myOne(:,1),myOne(:,2),myOne(:,3),1,'HoleThreshold',15);
plot(shp)
title('3D surface from point cloud')
例如,您可以从 github 下载 MyRobustCrust.m(作者:Luigi Giaccari)。
然后做
[t,tnorm]=MyRobustCrust(myOne(:, 1:3));
hold on;
title('Output Triangulation','fontsize',14);
axis equal;
trisurf(t,myOne(:,1),myOne(:,2),myOne(:,3),'facecolor','c','edgecolor','b');
给你
注意事项:
该文件曾经存在于 Matlab FileExchange 上,但现在不存在了。我不知道,为什么会这样,我认为为了安全起见,最好在使用前联系作者。
我正在使用matlab做一个3D人脸识别和验证项目。人脸特征点图我已经做过了。但我想将我的点云填充到一个实体对象中。我该怎么做?
这是我的代码:
load('myOne.mat');
figure(3)
plot3(myOne(:,1),myOne(:,2),myOne(:,3),'r.');
%3D face building
shp = alphaShape(myOne(:,1),myOne(:,2),myOne(:,3),1,'HoleThreshold',15);
plot(shp)
title('3D surface from point cloud')
例如,您可以从 github 下载 MyRobustCrust.m(作者:Luigi Giaccari)。
然后做
[t,tnorm]=MyRobustCrust(myOne(:, 1:3));
hold on;
title('Output Triangulation','fontsize',14);
axis equal;
trisurf(t,myOne(:,1),myOne(:,2),myOne(:,3),'facecolor','c','edgecolor','b');
给你
注意事项:
该文件曾经存在于 Matlab FileExchange 上,但现在不存在了。我不知道,为什么会这样,我认为为了安全起见,最好在使用前联系作者。