pointcloudから任意の点を削除する
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
カラーの点群データ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;
をもつ点群データ
Réponse acceptée
Atsushi Ueno
le 4 Mar 2024
Modifié(e) : Atsushi Ueno
le 5 Mar 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 commentaires
Atsushi Ueno
le 6 Mar 2024
それはたまたま上手い具合になる条件だっただけだと思います。
LocationとColorを関連付けず別々に操作すると、意図した動作とならないおそれがあります。
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur LIDAR および点群の処理 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!