Main Content

getRegion

Class: lidar.blocked.Adapter
Namespace: lidar.blocked

Read arbitrary region of blocked point cloud

Since R2022a

Description

[ptCloud,pointAttributes] = getRegion(obj,roi) returns all points of the point cloud ptCloud in the region specified by roi. The method also returns additional point attribute information, pointAttributes, if the input is a LAZ or LAS file.

Input Arguments

expand all

Adapter object, specified as an instance of an adapter class that is subclassed from the lidar.blocked.Adapter class.

ROI limits of the block, specified as a six-element row vector in the order [xmin xmax ymin ymax zmin zmax], defining the range of the block.

Output Arguments

expand all

Point cloud, returned as a pointCloud object.

Point attributes, returned as a lidarPointAttributes object.

Version History

Introduced in R2022a