selectLabelsByName
Description
Add-On Required: This feature requires the Hyperspectral Imaging Library for Image Processing Toolbox add-on.
returns a new gTruthNew = selectLabelsByName(gTruth,labelNames)groundTruthSpectralImage object gTruthNew with the same
data as gTruth, but with label data for only the labels specified by
labelNames.
Note
The Hyperspectral Imaging Library for Image Processing Toolbox™ requires desktop MATLAB®, as MATLAB Online™ and MATLAB Mobile™ do not support the library.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a