create
Create label definitions table from label definition creator object for multisignal workflow
Since R2020a
Syntax
Description
creates a label definitions table, labelDefs
= create(ldc
)labelDefs
, from the labelDefinitionCreatorMultisignal
object ldc
. You can import
the labelDefs
table into the
Ground Truth Labeler app to label ground truth data.
Examples
Create Label Definitions Table from Label Definition Creator Object for Multisignal Workflow
Create an empty labelDefinitionCreatorMultisignal
object.
ldc = labelDefinitionCreatorMultisignal;
Add a label called 'Vehicle'
. Specify the label type as 'Rectangle'
and add a description to the label.
addLabel(ldc,'Vehicle','Rectangle','Description','Bounding box for the vehicle. Use this label for cars and buses.')
Add an attribute 'IsCar'
to the label 'Vehicle'
. Specify the attribute type as 'logical'
with the value true
and add a description for the attribute.
addAttribute(ldc,'Vehicle','IsCar','logical',true,'Description','Type of vehicle')
Add an attribute 'IsBus'
to the label 'Vehicle'
. Specify the attribute type as 'logical'
with the value false
and add a description for the attribute.
addAttribute(ldc,'Vehicle','IsBus','logical',false,'Description','Type of vehicle')
Create a label definitions table from the definitions stored in the object.
labelDefs = create(ldc)
labelDefs=2×7 table
Name SignalType LabelType Group Description LabelColor Hierarchy
___________ __________ _________ ________ ____________________________________________________________________ __________ ____________
{'Vehicle'} Image Rectangle {'None'} {'Bounding box for the vehicle. Use this label for cars and buses.'} {0x0 char} {1x1 struct}
{'Vehicle'} PointCloud Cuboid {'None'} {'Bounding box for the vehicle. Use this label for cars and buses.'} {0x0 char} {1x1 struct}
Input Arguments
ldc
— Label definition creator for multisignal workflow
labelDefinitionCreatorMultisignal
object
Label definition creator for the multisignal workflow, specified as a labelDefinitionCreatorMultisignal
object. The object defines the labels,
sublabels, and attributes used for generating the label definitions table
labelDefs
.
Output Arguments
labelDefs
— Label definitions
table
Label definitions, returned as a table with up to eight columns. The possible
columns are Name, SignalType,
LabelType, Group,
Description, LabelColor,
PixelLabelID, and Hierarchy. This table
specifies the definitions of labels, sublabels, and attributes for labeling ground truth
data. For more details, see LabelDefinitions property of groundTruthMultisignal
object.
Version History
Introduced in R2020a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)