Main Content

Read Point Cloud Data from LAZ File

Create a lasFileReader object for a LAZ file. Then, use the readPointCloud function to read point cloud data from the LAZ file and generate a pointCloud object.

Create a lasFileReader object to access the LAZ file data.

path = fullfile(toolboxdir('lidar'),'lidardata', ...
lasReader = lasFileReader(path);

Read point cloud data from the LAZ file using the readPointCloud function.

ptCloud = readPointCloud(lasReader);

Visualize the point cloud.