ヘルプ センターヘルプ センター
LAS または LAZ ファイルへの点群データの書き込み
R2022a 以降
writePointCloud(lasWriter,ptCloud)
writePointCloud(lasWriter,ptCloud,ptAttributes)
writePointCloud(lasWriter,ptCloud) は、lasFileWriter オブジェクト lasWriter を使用して、空でないアンオーガナイズド pointCloud オブジェクト ptCloud から LAS または LAZ ファイルに点群データを書き込みます。
lasWriter
ptCloud
lasFileWriter
pointCloud
例
writePointCloud(lasWriter,ptCloud,ptAttributes) は、ptAttributes で指定された点の属性を追加で LAS または LAZ ファイルに書き込みます。
ptAttributes
すべて折りたたむ
LAZ ファイルのデータにアクセスするための lasFileReader オブジェクトを作成します。
lasFileReader
fileName = fullfile(toolboxdir("lidar"),"lidardata", ... "las","aerialLidarData2.las"); lasReader = lasFileReader(fileName);
関数 readPointCloud を使用して、点群データと点の属性を LAZ ファイルから読み取ります。
readPointCloud
[ptCloud,pointAttributes] = readPointCloud(lasReader, ... Classification=3:6, ... Attributes=["GPSTimeStamp","ScanAngle"]);
点群データを LAS ファイルに格納するための lasFileWriter オブジェクトを作成します。
lasWriter = lasFileWriter("points",PointDataFormat=1);
植生と建物に関連する点を LAZ ファイルに書き込みます。
writePointCloud(lasWriter,ptCloud,pointAttributes);
LAS または LAZ ファイル ライター。lasFileWriter オブジェクトとして指定します。
点群。アンオーガナイズド pointCloud オブジェクトとして指定します。
点群から無効な点を削除し、オーガナイズド点群をアンオーガナイズド点群に変換するには、関数removeInvalidPointsを使用します。
removeInvalidPoints
lidarPointAttributes
点の属性。lidarPointAttributes オブジェクトとして指定します。lidarPointAttributes オブジェクトの未指定のフィールドは既定値に設定されます。LaserReturn フィールドと NumReturns フィールドの既定値は 1 です。それ以外の ptCloud オブジェクトおよび PtAttributes オブジェクトで定義される点のプロパティは、いずれも既定では 0 になります。
LaserReturn
NumReturns
1
PtAttributes
0
R2022a で導入
pcwrite
pcshow
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office