point cloud to surface/mesh , interpolation within a certain distance.

2 次查看(过去 30 天)
hei,
i have an irregular point cloud and want to creat a DEM. i tried this with griddata. however, griddata interpolates also in between gaps.
is it possible to create a surface grid with the option to interpolate just within a certain distance. - i tried point2cloud which does this, but results in a triangular net.
in the figure below i tried to clarify the problem. i have the point cloud (blue circles) and the interpolated surface.
i appreaciate the help.
  2 个评论
Markus
Markus 2013-9-4
in the meantime i tried to get it with triscatteredinterp function.
i still get interpolation in places where no interpolation should be.
Markus
Markus 2013-9-4
编辑:Walter Roberson 2016-5-25
load('cloudData.mat')
x = jun12scan04(:,1);
y = jun12scan04(:,2);
z = jun12scan04(:,3);
% Construct the interpolant:
F = TriScatteredInterp(x,y,z);
% Evaluatethe interpolant at the locations (qx, qy). Thecorresponding value at these locations is qz:
sx=min(x); % Gemeinsame Grenzwerte beider Wolken
hx=max(x);
sy=min(y);
hy=max(y);
[qx,qy] = meshgrid(sx:d:hx,sy:d:hy);
qz = F(qx,qy);
surf(qx,qy,qz);
axis equal
shading interp
hold on;
plot3(x,y,z,'o');

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by