メインコンテンツ

editGroupName

R2026b

Change group name in multi-sensor label definition creator

Since R2026b

Description

editGroupName(ldc,oldname,newname) changes the group name from oldname to newname. This function changes the group name in all the label definitions that have the oldname.

Examples

collapse all

Rename a label group in a labelDefinitionCreatorMultiSensor object so that the new name applies to all labels in the group.

Create an empty labelDefinitionCreatorMultiSensor object.

ldc = labelDefinitionCreatorMultiSensor;

Add labels named "Car" and "Truck" in a group named "Vehicle".

addLabel(ldc,"Car",labelType.Rectangle,Group="Vehicle");
addLabel(ldc,"Truck",labelType.Rectangle,Group="Vehicle");

Change the "Vehicle" group name to "FourWheeler".

editGroupName(ldc,"Vehicle","FourWheeler");

Display the details of the updated labelDefinitionCreatorMultiSensor object.

ldc
ldc =
labelDefinitionCreatorMultiSensor contains the following labels:

	Car with 0 sublabels and 0 attributes and belongs to FourWheeler group.	(info)
	Truck with 0 sublabels and 0 attributes and belongs to FourWheeler group.	(info)

For more details about attributes and sublabels, use the info method.

Input Arguments

collapse all

Label definition creator for the multi-sensor workflow, specified as a labelDefinitionCreatorMultiSensor object.

Old group name, specified as a character vector or string scalar that uniquely identifies the group name you want to modify.

New group name, specified as a character vector or string scalar that identifies the new group name.

Version History

Introduced in R2026b