Main Content

gather

Collect blocks of blocked point cloud into workspace

Since R2022a

Description

example

ptCloud = gather(bpc) collects all the blocks of the blockedPointCloud object bpc, assembles them, and returns a single pointCloud object, ptCloud.

Examples

collapse all

Create a blocked point cloud from a LAZ file.

pcfile = fullfile(toolboxdir("lidar"),"lidardata", ...
  "las","aerialLidarData.laz");
bpc = blockedPointCloud(pcfile,[50 50]);

Collect the blocks of the blocked point cloud, and assemble them into a single point cloud in the workspace.

ptCloud = gather(bpc);

Plot the assembled point cloud.

pcshow(ptCloud.Location)

Figure contains an axes object. The axes object contains an object of type scatter.

Input Arguments

collapse all

Blocked point cloud, specified as a blockedPointCloud object.

Output Arguments

collapse all

Assembled point cloud, returned as a pointCloud object.

Version History

Introduced in R2022a