selectLabelsByGroup
Description
Add-On Required: This feature requires the Hyperspectral Imaging Library for Image Processing Toolbox add-on.
returns a new gTruthNew = selectLabelsByGroup(gTruth,labelGroups)groundTruthSpectralImage object, gTruthNew, with the same
data as gTruth, but with label data for the labels in only the groups
specified by labelGroups.
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