Main Content

editGroupName

Change group name in label definition creator for lidar workflow

    Description

    example

    editGroupName(ldc,oldname,newname) changes the existing group name oldname to the specified group name newname. This function changes the group name for all label definitions that have the group name oldname.

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

    Display information about the label.

    info(ldc,'Vehicle')
               Name: "Vehicle"
               Type: Cuboid
         LabelColor: {''}
              Group: "None"
         Attributes: []
        Description: ' '
    

    Edit the group name of the label.

    editGroupName(ldc,'None','Transport')

    Display the information of the label. Confirm that the Group field is updated.

    info(ldc,'Vehicle')
               Name: "Vehicle"
               Type: Cuboid
         LabelColor: {''}
              Group: "Transport"
         Attributes: []
        Description: ' '
    

    Input Arguments

    collapse all

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

    Existing group name, specified as a character vector or string scalar. This identifies group name to modify. The group name must already exist within the specified label definition creator object.

    New group name, specified as a character vector or string scalar. This sets the new group name.

    Introduced in R2020b