changeFilePaths
Change file paths in ground truth data
Syntax
Description
changes the file paths stored in a unresolvedPaths = changeFilePaths(gTruth,alternativePaths)groundTruth object,
gTruth, based on pairs of current paths and alternative paths,
alternativePaths. If gTruth is a vector of
groundTruth objects, the function changes the file paths across all
objects. The function returns the unresolved paths in unresolvedPaths. An
unresolved path is any current path in
alternativePaths not found in gTruth or any
alternative path in alternativePaths not found at the specified path
location. In both cases, unresolvedPaths returns only the current
paths.
Use this function to update the file paths of ground truth data that changes folder locations. You can change file paths for the ground truth data source and pixel label data.
[
additionally returns unresolved folder paths unresolvedPaths,unresolvedFolderPaths] = changeFilePaths(gTruth,alternativePaths)unresolvedFolderPaths,
which lists the folder locations corresponding to the unresolved current paths returned in
unresolvedPaths. Use unresolvedFolderPaths to
identify unresolved paths at the folder level when unresolvedPaths
contains many files from the same folder. (since R2026a)