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

1 回表示 (過去 30 日間)
Markus
Markus 2013 年 9 月 4 日
編集済み: Walter Roberson 2016 年 5 月 25 日
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 Center および File ExchangePoint Cloud Processing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by