Main Content

editLabelDescription

Modify label description in label definition creator for lidar workflow

    Description

    example

    editLabelDescription(ldc,labelName,description) modifies the description of the specified label labelName. The label must be contained within the labelDefinitionCreatorLidar object ldc.

    Examples

    collapse all

    Create an empty labelDefinitionCreatorLidar object.

    ldc = labelDefinitionCreatorLidar;

    Add a Cuboid label, Vehicle, to the label definition creator object.

    addLabel(ldc,'Vehicle','Cuboid')

    Modify the description of the Vehicle label.

    editLabelDescription(ldc,'Vehicle','Use this label for cars and buses.')

    Display the label information. Confirm that the Description field has been updated.

    info(ldc,'Vehicle')
               Name: "Vehicle"
               Type: {[Cuboid]}
         LabelColor: {''}
              Group: "None"
         Attributes: []
        Description: 'Use this label for cars and buses.'
    

    Input Arguments

    collapse all

    Label definition creator for the lidar workflow, specified as a labelDefinitionCreatorLidar object.

    Label name, specified as a character vector or string scalar. This identifies the label to update.

    Description, specified as a character vector or string scalar. This sets the new description for the label specified by the labelName argument.

    Version History

    Introduced in R2020b