Main Content

editGroupName

Change group name in label definition creator object for multisignal workflow

Description

example

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

Examples

collapse all

Create an emptylabelDefinitionCreatorMultisignalobject.

ldc = labelDefinitionCreatorMultisignal;

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'FourWheeler'.

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

Display the details of the updatedlabelDefinitionCreatorMultisignalobject.

ldc
ldc = labelDefinitionCreatorMultisignal 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 multisignal workflow, specified as alabelDefinitionCreatorMultisignalobject.

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

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

Version History

介绍了R2020a