lidar.blocked.Adapter Class
Namespace: lidar.blocked
Adapter interface for blockedPointCloud
objects
Since R2022a
Description
The lidar.blocked.Adapter
class specifies the interface for block-based
reading and writing of data. Classes that inherit from this interface can be used with blockedPointCloud
objects, enabling block-based stream processing of data.
To implement this class, you must:
Inherit from the
lidar.blocked.Adapter
class. Your class definition must have this format, whereMyAdapter
is the name of your custom adapter class.classdef MyAdapter < lidar.blocked.Adapter ... end
Define the three required methods for reading point cloud data from disk:
openToRead
,getInfo
, andgetRegion
.Optionally, define methods that enable additional reading and writing capabilities.
Optionally, for single-file destinations, define an
Extension
property that specifies the file extension to use when automatically creating a destination location. The property value must be a string, such as"las"
. For adapters that store data in a folder, do not add this property, or specify the value of the property as empty ([]
).
The lidar.blocked.Adapter
class is a handle
class.
Methods
Tips
The toolbox includes several built-in adapters that subclass from the
Adapter
class. All these adapters support both read and write
operations.
Version History
Introduced in R2022a