Main Content

lidarLabelType

Lidar label type enumerations for labeling

Since R2022a

Description

The lidarLabelType enumeration enables you to specify the voxel labels used in the Lidar Labeler app. When creating label definitions by using a labelDefinitionCreatorLidar object, use this enumerations to create label definitions of voxel type. When selecting labels from a groundTruthLidar object, use these enumerations to select labels of voxel type.

Creation

Description

example

lidarLabelType('Voxel') creates a voxel region of interest (ROI) label type for labeling point cloud data. You can also use the programmatic format, lidarLabelType.Voxel.

Object Functions

isROIDetermine if label types are ROI labels
isSceneDetermine if label types are Scene labels

Examples

collapse all

Create a lidar label definition creator object.

ldc = labelDefinitionCreatorLidar();

Add labels named "Road", "Bike" with the label types specified as line, cuboid, respectively.

addLabel(ldc,'Road',labelType.Line);
addLabel(ldc,'Bike',labelType.Cuboid);

Create voxel labels named as "Car" and "Tree".

addLabel(ldc,'Car',lidarLabelType.Voxel);
addLabel(ldc,'Tree',lidarLabelType.Voxel);

Display the details of the definitions stored in the lidar label definition creator object.

ldc
ldc = 
labelDefinitionCreatorLidar contains the following labels:

	Road with 0 attributes and belongs to None group.	(info)
	Bike with 0 attributes and belongs to None group.	(info)
	Car with 0 attributes and belongs to None group.	(info)
	Tree with 0 attributes and belongs to None group.	(info)

For more details about attributes, use the info method.

Version History

Introduced in R2022a