hyper.labeler.loading.SpectralImageSource
Description
Add-On Required: This feature requires the Hyperspectral Imaging Library for Image Processing Toolbox add-on.
A SpectralImageSource object defines the source of spectral image
data. Use this object to specify the data sources for a groundTruthSpectralImage object.
Note
The Hyperspectral Imaging Library for Image Processing Toolbox™ requires desktop MATLAB®, as MATLAB Online™ and MATLAB Mobile™ do not support the library.
Creation
When you export labels from a Spectral Image Labeler app image session, the
DataSourceproperty of the exportedgroundTruthSpectralImageobject contains aSpectralImageSourceobject.To create a
SpectralImageSourceobject programmatically, such as when programmatically creating agroundTruthSpectralImageobject, use thehyper.labeler.loading.SpectralImageSourcefunction.
Description
creates a dataSource = hyper.labeler.loading.SpectralImageSource(source)SpectralImageSource object for loading the spectral image data
stored in the file specified by source.
Input Arguments
Output Arguments
Properties
Examples
Version History
Introduced in R2026a