Main Content

create

Create label definitions table from label definition creator object for multisignal workflow

Since R2020a

Description

example

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.

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
       Name        SignalType    LabelType     Group                                  Description                                 LabelColor     Hierarchy  
    ___________    __________    _________    ________    ____________________________________________________________________    __________    ____________

    {'Vehicle'}    Image         Rectangle    {'None'}    {'Bounding box for the vehicle. Use this label for cars and buses.'}    {0x0 char}    {1x1 struct}
    {'Vehicle'}    PointCloud    Cuboid       {'None'}    {'Bounding box for the vehicle. Use this label for cars and buses.'}    {0x0 char}    {1x1 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