Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Markus
Markus am 4 Sep. 2013
Bearbeitet: Walter Roberson am 25 Mai 2016
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 Kommentare
Markus
Markus am 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 am 4 Sep. 2013
Bearbeitet: Walter Roberson am 25 Mai 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');

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by