Main Content

removeLabel

Remove label from label definition creator for lidar workflow

Since R2020b

    Description

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

    Version History

    Introduced in R2020b