editLabelGroup
Modify label group name in label definition creator object for multisignal workflow
Since R2020a
Description
editLabelGroup(
modifies the group name that corresponds to the label identified by
ldc
,labelName
,groupName
)labelName
. The label must be associated with the labelDefinitionCreatorMultisignal
object ldc
.
Examples
Modify Group Name for Labels in Label Definition Creator Object for Multisignal Workflow
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
ldc
— Label definition creator for multisignal workflow
labelDefinitionCreatorMultisignal
object
Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal
object.
labelName
— Label name
character vector | string scalar
Label name, specified as a character vector or string scalar that uniquely
identifies the label that corresponds to the groupName
you want to
modify.
groupName
— Group name
character vector | string scalar
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
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)