Contenido principal

editLabelGroup

R2026b

Assign label to different group in multi-sensor label definition creator

Since R2026b

Description

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

example

Examples

collapse all

Assign a label to a different group in a labelDefinitionCreatorMultiSensor object and verify the change.

Create an empty labelDefinitionCreatorMultiSensor object.

ldc = labelDefinitionCreatorMultiSensor;

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 multi-sensor workflow, specified as a labelDefinitionCreatorMultiSensor 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 new group for the label specified by labelName.

Version History

Introduced in R2026b