changeFilePaths
Description
Add-On Required: This feature requires the Hyperspectral Imaging Library for Image Processing Toolbox add-on.
changes the file paths stored in the unresolvedFilePaths = changeFilePaths(gTruth,alternateFilePaths)DataSource property of the groundTruthSpectralImage object gTruth. The
alternateFilePaths argument specifies both the current file path and
the path to which to change it. The function returns any unresolved paths in
unresolvedFilePaths. An unresolved path is a current path not found
in gTruth or an alternative path not found on your machine. In both
cases, unresolvedFilePaths returns only the corresponding current
path.
Use this function to update groundTruthSpectralImage objects if you
move their data sources to a new folder. If you receive
groundTruthSpectralImage objects that were created on a different
computer, use this function to point to the data location on your local machine.
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