pointcloudから任意の点を削除する
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
カラーの点群データAがあるとします。
Aから特定の領域を切り出して作成した点群をBとします。
残った領域(A−B)をカラー点群として保存したいのですが、どのようにすると良いでしょうか?
イメージは下記です。(x y z RGBで並んでいるとします)
A=pcread('test.ply');
A.Location= 1 2 3; 1 5 6; 1 8 9;
A.Color=20;30;40;
B=pcread('test2.ply');
B.location=1 2 3;
B.Color=20;
ほしい結果↓
Location=1 5 6; 1 8 9; Color=30;40;
をもつ点群データ
Akzeptierte Antwort
Atsushi Ueno
am 4 Mär. 2024
Bearbeitet: Atsushi Ueno
am 5 Mär. 2024
(追記)イメージの修正に伴い、回答も修正しました。
A.location = [1 2 3; 1 5 6; 1 8 9];
A.Color = [20;30;40];
B.location = [1 2 3];
B.Color = 20;
%ほしい結果↓ location=1 5 6; 1 8 9; Color=30;40;
setdiff(struct2table(A),struct2table(B),'rows')
3 Kommentare
Atsushi Ueno
am 6 Mär. 2024
それはたまたま上手い具合になる条件だっただけだと思います。
LocationとColorを関連付けず別々に操作すると、意図した動作とならないおそれがあります。
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu LIDAR および点群の処理 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!