Main Content


Convert block subscripts to ROI limits

Since R2022a



roi = blocksub2roi(bpc,blocksub) converts the subscripts of a block to the ROI limits of that block in the blockedPointCloud object bpc.


collapse all

Create a blocked point cloud from a LAZ file.

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

Convert the subscripts of a block to the ROI limits of that block.

roi = blocksub2roi(bpc,[2 2 1]);

Display the ROI limits of the block.

   1.0e+06 *

    0.4298    0.4298    3.6799    3.6799    0.0001    0.0001

Input Arguments

collapse all

Blocked point cloud, specified as a blockedPointCloud object.

Block subscripts, specified as a three-element row vector of positive integers.

Example: [2 3 1]

Output Arguments

collapse all

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

Version History

Introduced in R2022a