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] 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] 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]. |
PCNumber | Index into the |
PointAttributes | Attributes for each point, specified as a |
BlockSize | Value of the |
Version History
Introduced in R2022a
See Also
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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)