selectLabelsByLabelName
R2026bDescription
selects labels specified by gtLabel = selectLabelsByLabelName(gTruth,labelNames)labelNames from a groundTruthMultiSensor
object, gTruth. The function returns a corresponding
groundTruthMultiSensor object, gtLabel, that
contains only the selected labels. If gTruth is a vector of
groundTruthMultiSensor objects, then the function returns a vector of
corresponding groundTruthMultiSensor objects that contain only the selected
labels.
Examples
Input Arguments
Output Arguments
Limitations
Selecting pixel labels or semantic point labels by label name is not supported. However, you can select all labels of these types. Use the
selectLabelsByLabelTypefunction, specifying the label type as alabelType.PixelLabelorlabelType.SemanticPointLabelenumeration.Selecting sublabels by label name is not supported.
Version History
Introduced in R2026b