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

2 views (last 30 days)
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 Comments
Markus
Markus on 4 Sep 2013
in the meantime i tried to get it with triscatteredinterp function.
i still get interpolation in places where no interpolation should be.
Markus
Markus on 4 Sep 2013
Edited: Walter Roberson on 25 May 2016
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');

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!