exponenta event banner

removeLabel

Удалить метку из объекта создания определения метки

Синтаксис

Описание

пример

removeLabel(ldc,labelName) удаляет указанную метку из объекта создания определения метки ldc.

Примечание

При удалении метки также удаляются все атрибуты или подметки, связанные с этой меткой.

Примеры

свернуть все

Загрузите существующую таблицу определений меток в рабочую область.

labelDefFile = fullfile(toolboxdir('vision'),'visiondata','labelDefsWithAttributes.mat');
ld = load(labelDefFile)
ld = struct with fields:
    labelDefs: [4x4 table]

Создайте объект создания определения метки из таблицы определений меток.

ldc = labelDefinitionCreator(ld.labelDefs)
ldc = 
labelDefinitionCreator contains the following labels:

	Vehicle with 0 sublabels and 3 attributes and belongs to None group.	(info)
	Pedestrian with 0 sublabels and 0 attributes and belongs to None group.	(info)
	LaneMarker with 0 sublabels and 2 attributes and belongs to None group.	(info)
	TrafficLight with 1 sublabels and 0 attributes and belongs to None group.	(info)

For more details about attributes and sublabels, use the info method.

Удалите метку «Транспортное средство» из объекта создания определения метки.

removeLabel(ldc,'Vehicle')

Отображение подробных данных объекта создания определения метки для подтверждения того, что «Транспортное средство» удалено из определений метки.

ldc
ldc = 
labelDefinitionCreator contains the following labels:

	Pedestrian with 0 sublabels and 0 attributes and belongs to None group.	(info)
	LaneMarker with 0 sublabels and 2 attributes and belongs to None group.	(info)
	TrafficLight with 1 sublabels and 0 attributes and belongs to None group.	(info)

For more details about attributes and sublabels, use the info method.

Входные аргументы

свернуть все

Автор определения метки, указанный как labelDefinitionCreator объект.

Имя метки, указанное как вектор символа или скаляр строки, однозначно идентифицирующий метку, удаляемую из объекта создания определения метки.

См. также

Объекты

Функции

Представлен в R2018b