Main Content

editLabelGroup

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

Since R2020a

Description

editLabelGroup(ldc,labelName,groupName) modifies the group name that corresponds to the label identified by labelName. The label must be associated with the labelDefinitionCreatorMultisignal object ldc.

example

Examples

collapse all

Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

Add a label named 'Car' in a group named 'Vehicle'. Set the type of the label as 'Rectangle'. Adding a 'Rectangle' also adds a 'Cuboid' entry to the label definitions table.

addLabel(ldc,'Car','Rectangle','Group','Vehicle')

Display information about the group name of the label 'Car' using the object function info.

info(ldc,'Car')
           Name: "Car"
     SignalType: Image
      LabelType: Rectangle
          Group: "Vehicle"
     LabelColor: {''}
     Attributes: []
      Sublabels: []
    Description: ' '

           Name: "Car"
     SignalType: PointCloud
      LabelType: Cuboid
          Group: "Vehicle"
     LabelColor: {''}
     Attributes: []
      Sublabels: []
    Description: ' '

Add a label named 'Truck' to group named 'FourWheeler'. Set the type of the label as 'Rectangle'.

addLabel(ldc,'Truck',labelType.Rectangle,'Group','FourWheeler')

Move the 'Car' label into the 'FourWheeler' group.

editLabelGroup(ldc,'Car','FourWheeler')

Display information about the label 'Car' to confirm the group name of the label is changed from 'Vehicle' to 'FourWheeler' using the object function info.

info(ldc,'Car')
           Name: "Car"
     SignalType: Image
      LabelType: Rectangle
          Group: "FourWheeler"
     LabelColor: {''}
     Attributes: []
      Sublabels: []
    Description: ' '

           Name: "Car"
     SignalType: PointCloud
      LabelType: Cuboid
          Group: "FourWheeler"
     LabelColor: {''}
     Attributes: []
      Sublabels: []
    Description: ' '

Input Arguments

collapse all

Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal object.

Label name, specified as a character vector or string scalar that uniquely identifies the label that corresponds to the groupName you want to modify.

Group name, specified as a character vector or string scalar that identifies the group you want to modify, which corresponds to the label specified by labelName.

Version History

Introduced in R2020a