Main Content

create

R2026b

(To be removed) Create label definitions table from label definition creator object for multisignal workflow

create will be removed in a future release. Use the labelDefinitionCreatorMultiSensor (Point Cloud Toolbox) object instead. For information on updating your code, see Version History.

Description

labelDefs = create(ldc) creates a label definitions table, labelDefs, from the labelDefinitionCreatorMultisignal object ldc. You can import the labelDefs table into the Ground Truth Labeler app to label ground truth data.

example

Examples

collapse all

Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

Add a label called 'Vehicle'. Specify the label type as 'Rectangle' and add a description to the label.

addLabel(ldc,'Vehicle','Rectangle','Description','Bounding box for the vehicle. Use this label for cars and buses.')

Add an attribute 'IsCar' to the label 'Vehicle'. Specify the attribute type as 'logical' with the value true and add a description for the attribute.

addAttribute(ldc,'Vehicle','IsCar','logical',true,'Description','Type of vehicle')

Add an attribute 'IsBus' to the label 'Vehicle'. Specify the attribute type as 'logical' with the value false and add a description for the attribute.

addAttribute(ldc,'Vehicle','IsBus','logical',false,'Description','Type of vehicle')

Create a label definitions table from the definitions stored in the object.

labelDefs = create(ldc)
labelDefs = 2×7 table
    'Vehicle'    0    0    'None'    'Bounding box for the vehicle. Use this label for cars and buses.'    ''    1×1 struct
    'Vehicle'    1    5    'None'    'Bounding box for the vehicle. Use this label for cars and buses.'    ''    1×1 struct

Input Arguments

collapse all

Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal object. The object defines the labels, sublabels, and attributes used for generating the label definitions table labelDefs.

Output Arguments

collapse all

Label definitions, returned as a table with up to eight columns. The possible columns are Name, SignalType, LabelType, Group, Description, LabelColor, PixelLabelID, and Hierarchy. This table specifies the definitions of labels, sublabels, and attributes for labeling ground truth data. For more details, see LabelDefinitions property of groundTruthMultisignal object.

Version History

Introduced in R2020a

collapse all

See Also

Objects

Functions