roi2blocksub
Convert ROI to block subscripts
Description
Examples
Get Block Subscripts from ROI
Create a blocked point cloud from a LAZ file.
pcfile = fullfile(toolboxdir("lidar"),"lidardata", ... "las","aerialLidarData.laz"); bpc = blockedPointCloud(pcfile,[50 50]);
Convert ROI limits to the block subscripts of the block contained within the ROI.
blocksubs = roi2blocksub(bpc,[429745.02 429775.02 ...
3679830.75 3679860.75 72.79 125.82]);
Display the block subscripts.
disp(blocksubs)
1 1 1
Input Arguments
bpc
— Blocked point cloud
blockedPointCloud
object
Blocked point cloud, specified as a blockedPointCloud
object.
roi
— ROI limits of the block
six-element row vector
ROI limits of the block, specified as a six-element row vector of form [xmin xmax ymin ymax zmin zmax], defining the range of the block.
Output Arguments
blocksubs
— Subscripts of blocks
K-by-3 integer-valued matrix
Subscripts of the blocks, returned as a K-by-3 integer-valued matrix. K is the number of blocks in the specified ROI. The elements of each row correspond to the X-, Y- and Z-axes respectively.
Version History
See Also
Apri esempio
Si dispone di una versione modificata di questo esempio. Desideri aprire questo esempio con le tue modifiche?
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)