Main Content

lidar.labeler.loading.CustomPointCloudSource class

Package: lidar.labeler.loading
Superclasses: vision.labeler.loading.MultiSignalSource

Load point cloud data from custom sources into Lidar Labeler app

Description

The lidar.labeler.loading.CustomPointCloudSource class creates an interface for loading point cloud data from a custom source into the Lidar Labeler app. This class controls the parameters in the Select Point Cloud dialog box of the app when you set Source Type to Custom Point Cloud.

Select Custom Point Cloud Source

To access this dialog box, in the app, select Import > Add Point Cloud.

The lidar.labeler.loading.CustomPointCloudSource class is a handle class.

Creation

To create a CustomPointCloudSource object, write a custom reader function to read point cloud data from the data source. Save the file to any folder on the MATLAB® path. Alternatively, add the folder containing the file to the MATLAB path. Then, use the lidar.labeler.loading.CustomPointCloudSource function.

Description

customptCloudSource = lidar.labeler.loading.CustomPointCloudSource creates a CustomPointCloudSource object for loading a signal from custom source. To specify the data source and the parameters required to load the source, use the loadSource method.

Properties

expand all

Name of the type of source that this class loads, specified as a string scalar.

Attributes:

GetAccess
public
Constant
true
NonCopyable
true

Description of the functionality that this class provides, specified as a string scalar.

Attributes:

GetAccess
public
Constant
true
NonCopyable
true

Name of the data source, specified as a string scalar. Typically, SourceName is the name of the file from which the signal is loaded.

Attributes:

GetAccess
public
SetAccess
protected

Parameters for loading point cloud data from a custom source, specified as a structure.

This table describes the required and optional fields of the SourceParams structure.

FieldDescriptionRequired or Optional
Timestamps

Timestamps for the custom source, specified as a cell array containing a single duration vector of timestamps.

In the Select Point Cloud dialog box of the app, you can import the Timestamps parameter from a variable in the MATLAB workspace. The SourceParams property stores these timestamps in the Timestamps field.

Optional

Attributes:

GetAccess
public
SetAccess
protected

Names of the signals that can be loaded from the data source, specified as a string vector.

Attributes:

GetAccess
public
SetAccess
protected

Types of the signals that can be loaded from the data source, specified as a vector of vision.labeler.loading.SignalType enumerations. Each signal listed in the SignalName property is of the type in the corresponding position of SignalType.

Attributes:

GetAccess
public
SetAccess
protected

Timestamps of the signals that can be loaded from the data source, specified as a cell array of duration vectors. Each signal listed in the SignalName property has the timestamps in the corresponding position of Timestamp.

Attributes:

GetAccess
public
SetAccess
protected

Number of signals that can be read from the data source, specified as a nonnegative integer. NumSignals is equal to the number of signals in the SignalName property.

Attributes:

GetAccess
public
SetAccess
public
Dependent
true
NonCopyable
true

Methods

expand all

Introduced in R2021a