Main Content

editAttributeDescription

Modify attribute description in label definition creator object for lidar workflow

Since R2020b

    Description

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

    example

    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');

    Add a Color attribute to the Vehicle label.

    addAttribute(ldc,'Vehicle','Color','String','Red')

    Display the created attribute.

    info(ldc,'Vehicle/Color')
                Name: "Color"
                Type: String
        DefaultValue: 'Red'
         Description: ' '
    

    Modify the attribute description.

    editAttributeDescription(ldc,'Vehicle','Color','Color of the vehicle in RGB format - [1 0 0]')

    Display the attribute details to confirm the updated description field.

    info(ldc,'Vehicle/Color')
                Name: "Color"
                Type: String
        DefaultValue: 'Red'
         Description: 'Color of the vehicle in RGB format - [1 0 0]'
    

    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 with which the attribute is associated.

    Attribute name, specified as a character vector or string scalar. This identifies the attribute to modify.

    Description, specified as a character vector or string scalar. This sets the new description for the attribute specified by the attributeName.

    Version History

    Introduced in R2020b