Main Content

editLabelGroup

Modify label group name in label definition creator object for lidar workflow

Since R2020b

    Description

    editLabelGroup(ldc,labelName,groupName) modifies the group name of the specified label identified by 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','Group','Transport')

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

    addLabel(ldc,'Car','Cuboid','Group','Four Wheeler')

    Display the label definition creator object.

    ldc
    ldc = 
    labelDefinitionCreatorLidar contains the following labels:
    
    	Vehicle with 0 attributes and belongs to Transport group.	(info)
    	Car with 0 attributes and belongs to Four Wheeler group.	(info)
    
    For more details about attributes, use the info method.
    

    Change the group of the Car label from Four Wheeler to Transport.

    editLabelGroup(ldc,'Car','Transport')
    ldc
    ldc = 
    labelDefinitionCreatorLidar contains the following labels:
    
    	Vehicle with 0 attributes and belongs to Transport group.	(info)
    	Car with 0 attributes and belongs to Transport group.	(info)
    
    For more details about attributes, use the info method.
    

    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 modify.

    Group name, specified as a character vector or string scalar. This sets the group to which the function assigns the label specified by the labelName argument.

    Version History

    Introduced in R2020b