Download a ZIP file containing an E57 file, and then unzip the file.
zipFile = matlab.internal.examples.downloadSupportFile("lidar","data/e57ParkingLot.zip");
saveFolder = fileparts(zipFile);
e57FileName = [saveFolder filesep 'parkingLot.e57'];
if ~exist(e57FileName,"file")
unzip(zipFile,saveFolder)
end
Create an e57FileReader object.
e57Reader = e57FileReader(e57FileName);
Inspect the values of the NumPointClouds and PointCloudIndex properties of the e57Reader object.
disp(e57Reader.NumPointClouds);
19
disp(e57Reader.PointCloudIndex);
1
Read the last point cloud from the E57 file and verify that the readPointCloud object function advances the PointCloudIndex property to the next value after NumPointClouds.