removeSublabel
Remove sublabel from label in label definition creator object for multisignal workflow
Since R2020a
Description
removeSublabel(
removes the specified sublabel from the indicated label. This label must be associated with
the ldc
,labelName
,sublabelName
)labelDefinitionCreatorMultisignal
object ldc
.
Note
Removing a sublabel also removes any attributes associated with that sublabel.
Examples
Remove Sublabel from Label in Label Definition Creator Object for Multisignal Workflow
Create an empty labelDefinitionCreatorMultisignal
object.
ldc = labelDefinitionCreatorMultisignal;
Add a label with the name 'TrafficLight'
. Specify the type of label as 'Rectangle'
and add a description. Adding a 'Rectangle'
also adds a 'Cuboid'
entry to the label definitions table.
addLabel(ldc,'TrafficLight',labelType.Rectangle,'Description','Bounding boxes for traffic light')
Add sublabels called 'RedLight'
, 'GreenLight'
and 'YellowLight'
to the label 'TrafficLight'
. Specify the type of the sublabels as 'Rectangle'
.
addSublabel(ldc,'TrafficLight','RedLight','Rectangle') addSublabel(ldc,'TrafficLight','GreenLight','rect') addSublabel(ldc,'TrafficLight','YellowLight',labelType.Rectangle)
Display information about the label 'TrafficLight' using the object function info
, to confirm that the sublabels have been added to the label definitions.
info(ldc,'TrafficLight')
Name: "TrafficLight" SignalType: Image LabelType: Rectangle Group: "None" LabelColor: {''} Attributes: [] Sublabels: ["RedLight" "GreenLight" "YellowLight"] Description: 'Bounding boxes for traffic light' Name: "TrafficLight" SignalType: PointCloud LabelType: Cuboid Group: "None" LabelColor: {''} Attributes: [] Sublabels: ["RedLight" "GreenLight" "YellowLight"] Description: 'Bounding boxes for traffic light'
Remove the sublabel 'YellowLight' from the label 'TrafficLight'.
removeSublabel(ldc,'TrafficLight','YellowLight')
Display information about the label 'TrafficLight' using the object function info
, to confirm that the sublabel 'YellowLight' has been removed from the label definitions.
info(ldc,'TrafficLight')
Name: "TrafficLight" SignalType: Image LabelType: Rectangle Group: "None" LabelColor: {''} Attributes: [] Sublabels: ["RedLight" "GreenLight"] Description: 'Bounding boxes for traffic light' Name: "TrafficLight" SignalType: PointCloud LabelType: Cuboid Group: "None" LabelColor: {''} Attributes: [] Sublabels: ["RedLight" "GreenLight"] Description: 'Bounding boxes for traffic light'
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 with which the sublabel is associated.
sublabelName
— Sublabel name
character vector | string scalar
Sublabel name, specified as a character vector or string scalar that identifies the
sublabel to be removed from the indicated label labelName
.
Version History
Introduced in R2020a
See Also
Objects
Functions
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)