read
Description
Examples
Read Data and Metadata from blockedPointCloudDatastore
Create a blocked point cloud.
pcfile = fullfile(toolboxdir("lidar"),"lidardata", ... "las","aerialLidarData.laz"); bpc = blockedPointCloud(pcfile,[300 300]);
Create a blockedPointCloudDatastore
from the blocked point cloud.
bpcds = blockedPointCloudDatastore(bpc);
Read data and metadata from the blockedPointCloudDatastore
. Display the metadata.
while hasdata(bpcds) [data,info] = read(bpcds); disp(info) end
ROI: [4.2975e+05 4.3005e+05 3.6798e+06 3.6801e+06 72.7900 125.8200] BlockSub: [1 1 1] PCNumber: 1 PointAttributes: [1x1 lidarPointAttributes] BlockSize: [300 300 53.0300] ROI: [4.3005e+05 4.3035e+05 3.6798e+06 3.6801e+06 72.7900 125.8200] BlockSub: [2 1 1] PCNumber: 1 PointAttributes: [1x1 lidarPointAttributes] BlockSize: [300 300 53.0300]
Input Arguments
bpcds
— Blocked point cloud datastore
blockedPointCloudDatastore
object
Blocked point cloud datastore, specified as a
blockedPointCloudDatastore
object.
Output Arguments
b
— Data from blockedPointCloudDatastore
cell array
Data from the blockedPointCloudDatastore
, returned as a cell
array of block data. The length of the cell array is equal to the value of the
ReadSize
property of the
blockedPointCloudDatastore
object.
info
— Metadata from blockedPointCloudDatastore
structure
Metadata from the blockedPointCloudDatastore
, returned as a
structure with these fields. If the value of the ReadSize
property of
the blockedPointCloudDatastore
object is greater than 1, these fields
are arrays.
Field | Description |
---|---|
ROI | ROI of the block, specified as a six-element numeric row vector in the order [xmin xmax ymin ymax zmin zmax]. |
| Block subscripts of the current block. |
PCNumber | Index into the |
PointAttributes | Attributes for each point, specified as a |
BlockSize | Value of the |
Version History
Introduced in R2022aR2024b: Read subscripts of current block
The function returns the subscripts of the current block in the info
output
argument.
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)