removeLabel
R2026bDescription
removeLabel(
removes the specified label from the ldc,labelName)labelDefinitionCreatorMultiSensor object ldc.
Note
Removing a label also removes any sublabels or attributes associated with that label.
Examples
Remove a label from a labelDefinitionCreatorMultiSensor object created from an existing label
definitions table.
Load an existing label definitions table into the workspace.
labelDefFile = fullfile(toolboxdir("pointcloud"),"pcdata","labelDefsMultiSensor.mat"); ld = load(labelDefFile)
ld =
struct with fields:
labelDefs: [12×8 table]
Create a labelDefinitionCreatorMultiSensor object from the label definitions
table.
ldc = labelDefinitionCreatorMultiSensor(ld.labelDefs)
labelDefinitionCreatorMultiSensor contains the following labels: Car with 0 sublabels and 0 attributes and belongs to None group. (info) Face with 0 sublabels and 0 attributes and belongs to None group. (info) Lane with 0 sublabels and 0 attributes and belongs to None group. (info) Building with 0 sublabels and 0 attributes and belongs to None group. (info) Sky with 0 sublabels and 0 attributes and belongs to None group. (info) Road with 0 sublabels and 0 attributes and belongs to None group. (info) Truck with 0 sublabels and 0 attributes and belongs to None group. (info) RedLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) GreenLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) YellowLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) For more details about attributes and sublabels, use the info method.
Remove the label called "Car".
removeLabel(ldc,"Car");Display the details of the updated
labelDefinitionCreatorMultiSensor object to confirm that the label
has been removed.
ldc
ldc = labelDefinitionCreatorMultiSensor contains the following labels: Face with 0 sublabels and 0 attributes and belongs to None group. (info) Lane with 0 sublabels and 0 attributes and belongs to None group. (info) Building with 0 sublabels and 0 attributes and belongs to None group. (info) Sky with 0 sublabels and 0 attributes and belongs to None group. (info) Road with 0 sublabels and 0 attributes and belongs to None group. (info) Truck with 0 sublabels and 0 attributes and belongs to None group. (info) RedLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) GreenLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) YellowLight with 0 sublabels and 0 attributes and belongs to TrafficLight group. (info) For more details about attributes and sublabels, use the info method.
Input Arguments
Label definition creator for the multi-sensor workflow, specified as a labelDefinitionCreatorMultiSensor object.
Label name, specified as a character vector or string scalar that uniquely
identifies the label to be removed from the ldc object.
Version History
Introduced in R2026b
See Also
Objects
Functions
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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)