%% Create Label Definitions Table
% Define label names.

Name = {'Car';'LeftLaneMarker';'RightLaneMarker';'Sunny'};

%
% Define label types.

Type = labelType({'Rectangle';'Line';'Line';'Scene'});

%
% Create label definitions.

labelDefs = table(Name,Type)

%
% List ROI label names.

roiLabelIndices = isROI(labelDefs.Type);
roiLabelNames = labelDefs.Name(roiLabelIndices)

%
% List scene label names.

sceneLabelIndices = isScene(labelDefs.Type);
sceneLabelNames = labelDefs.Name(sceneLabelIndices)

%
% Copyright 2012 The MathWorks, Inc.