主要内容

create

R2026b

Create label definitions table from multi-sensor label definition creator

Since R2026b

Description

labelDefs = create(ldc) creates a label definitions table, labelDefs, from the labelDefinitionCreatorMultiSensor object ldc. You can import the labelDefs table into the Multi-Sensor Labeler app to label ground truth data.

example

Examples

collapse all

Create a label definitions table from a labelDefinitionCreatorMultiSensor object that you can import into the Multi-Sensor Labeler app.

Create an empty labelDefinitionCreatorMultiSensor object.

ldc = labelDefinitionCreatorMultiSensor;

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

Input Arguments

collapse all

Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultiSensor 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, SemanticLabelID, and Hierarchy. This table specifies the definitions of labels, sublabels, and attributes for labeling ground truth data. For more details, see LabelDefinitions property of groundTruthMultiSensor object.

Version History

Introduced in R2026b