This property is read-only.
Label definitions, specified as a table. To
create this table, use one of these options.
In one of the labeling apps, create label definitions, and
then export them as part of a groundTruth
object.
Use a labelDefinitionCreator object to generate a label
definitions table. If you save this table to a MAT-file, you can
then load the label definitions into a labeling app session by
selecting Load > Label Definitions from the app toolstrip.
Create the label definitions table at the MATLAB command line.
This table describes the required and optional columns of the table specified in the
LabelDefinitions property.
ColumnDescriptionRequired or OptionalNameStrings or character vectors specifying the name of
each label definition.Required
TypelabelType
enumerations that specify the type of each label
definition, such as Rectangle or
Scene.Required
LabelColor1-by-3 row vectors of RGB triplets that specify the colors of the label
definitions. Values are in the range [0, 1]. The color
yellow (RGB triplet [1 1 0]) is reserved for the color
of selected labels in the labeling apps.Optional
When you define labels in a labeling app, you must
specify a color. Therefore, an exported label
definitions table always includes this
column.
When you create label
definitions using the
labelDefinitionCreator object
without specifying colors, the returned label
definitions table includes this column, but all
column values are empty.
PixelLabelIDScalars, column vectors, or M-by-3
matrices of integer-valued label IDs.
PixelLabelID specifies the pixel
label values used to represent a label definition. Pixel
label ID values must be between 0 and 255.Optional
When you define pixel labels in a labeling app or the
labelDefinitionCreator object,
the generated label definitions table includes this
column.
When creating a label
definitions table at the MATLAB command line, if you set
Type to
labelType.PixelLabel for any
label, then this column is required.
GroupStrings or character vectors specifying the group to
which each label definition belongs.Optional
If you create the label definitions table at the
MATLAB command line, you do not need to
include a Group
column.
If you export label definitions
from a labeling app or create them using a
labelDefinitionCreator object,
the label definitions table includes this column,
even if you did not specify groups. The app assigns
each label definition a Group
value of 'None'.
DescriptionStrings or character vectors that describe each label
definition.Optional
If you create the label definitions table at the
MATLAB command line, you do not need to
include a Description
column.
If you export label definitions
from a labeling app or create them using a
labelDefinitionCreator object,
the label definitions table includes this column,
even if you did not specify descriptions. The
Description for these label
definitions is an empty character
vector.
HierarchyStructures containing sublabel and attribute data for
each label definition. For an example of the
Hierarchy format, see Get Started with the Image Labeler or Get Started with the Video Labeler.Optional
In labeling apps, when you
define sublabels or attributes, the exported
groundTruth object includes this
column.
For example, consider a table with label definitions named Sky,
Vegetation, Lanes,
StopSign, and Vehicle, and that
was exported from the Video Labeler app.
The label definitions include pixel labels, so the table includes
a PixelLabelID column.
Two of the labels contain attributes, so the app created a
Hierarchy column that applies across all
label definitions.
The label definitions do not have assigned groups, so the
Group column is 'None' for
all label definitions.