delete Xn,Yn and Zn points from point cloud that are equal to Xn, Yn and Zn point from another cloud

3 次查看(过去 30 天)
Hi all,
I got X,Y and Z point cloud, (4500x3 matrix) after plotting this figure I used the brushing tool to select some point of the data wich i saved in a new varriable. (600x3 matrix --> also x, y and z coördinates)
Now I want to delete the selected data from the original point cloud (4500x3 matrix) - (600x3 matrix) --> (3900x 3 matrix) so that al the data were for the (X & Y & Z) from the Original pointcloud = (x & y & z) of the selected point cloud are deleted.
Thanks in advance!

采纳的回答

Baltam
Baltam 2016-4-15
编辑:Baltam 2016-4-18
Suppose your variables are called
OriginalPointCloud % (4500x3)
BrushData % (600x3)
NewPointCloud = OriginalPointCloud;
NewPointCloud(ismember(OriginalPointCloud,BrushData,'rows')) = NaN;
Kind regards, Baltam
  4 个评论
Allan Uytterhoeven
Allan Uytterhoeven 2016-4-18
Just found the perfect solution!! >> A= [1 1 1; 2 2 2; 1 2 3; 2 5 6; 8 4 5]
A =
1 1 1
2 2 2
1 2 3
2 5 6
8 4 5
>> B= [ 1 1 1; 8 4 5]
B =
1 1 1
8 4 5
>> C=setdiff(A,B,'rows')
C =
1 2 3
2 2 2
2 5 6

请先登录,再进行评论。

更多回答(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