Main Content

removeLabel

Remove label from label definition creator for lidar workflow

    Description

    example

    removeLabel(ldc,labelName) removes the specified label labeName from 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')

    Add a Cuboid label, Car, to the object.

    addLabel(ldc,'Car','Cuboid')

    Display the label definition creator object.

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

    Remove the 'Car' label and display the object to confirm that the label has been removed.

    removeLabel(ldc,'Car')
    ldc
    ldc = 
    labelDefinitionCreatorLidar contains the following labels:
    
    	Vehicle with 0 attributes and belongs to None 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 remove from the label definition creator object.

    Introduced in R2020b