getCornerPoints
説明
例
直方体モデルの角の点を取得
作成関数 cuboidModel
を使用して直方体モデル オブジェクトを作成し、直方体モデルの角の点を 3 次元座標として取得します。
点群データをワークスペースに読み取ります。
ptCloudIn = pcread('highwayScene.pcd');
直方体モデルを cuboidModel
オブジェクトとして定義します。
params = [11.4873085 8.59969 -1.613766 3.6712 1.3220,...
1.75755 0 0 0.017451];
model = cuboidModel(params);
直方体モデルの角の点を取得します。
points = getCornerPoints(model)
points = 8×3
13.3227 9.2612 -0.7350
9.6515 9.2601 -0.7350
9.6519 7.9381 -0.7350
13.3231 7.9392 -0.7350
13.3227 9.2612 -2.4925
9.6515 9.2601 -2.4925
9.6519 7.9381 -2.4925
13.3231 7.9392 -2.4925
各列は直方体モデルの 8 つの頂点の "x"、"y"、および "z" の座標を表します。各行は角の点を表します。
入力引数
model
— 直方体モデル
cuboidModel
オブジェクト
直方体モデル。cuboidModel
オブジェクトとして指定します。
出力引数
points
— 角の点の 3 次元座標
8 行 3 列の実数値の行列
角の点の 3 次元座標。8 行 3 列の実数値の行列として返されます。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2020b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)