%% Add Label Using Label Definition Creator for Multisignal Workflow
% Create an empty labelDefinitionCreatorMultisignal object.

ldc = labelDefinitionCreatorMultisignal;

% Add a label named 'Car'. Specify the type of label as 'Cuboid'. Adding a 'Cuboid' also adds a 'Rectangle' entry to the label definitions table.

addLabel(ldc,'Car','Cuboid');

% Add another label named 'StopSign' in a group named 'TrafficSign'. Specify the type of label as a 'Rectangle'. Adding 'Rectangle' also adds a 'Cuboid' entry to the label definitions table. Add a description to the label.

addLabel(ldc,'StopSign','Rectangle','Group','TrafficSign','Description','Bounding boxes for stop signs');

% Display the details of the updated labelDefinitionCreatorMultisignal object.

ldc

% Display information about the label 'Car' using the object function info.

info(ldc,'Car')

% Display information about the label 'StopSign' using the object function info.

info(ldc,'StopSign')

% Copyright 2019 The MathWorks, Inc.