The possible cause of the error could be that you are Calling an object method without an object as the first input.
Make sure that Computer Vision Toolbox is installed and the function changeFilePaths is called on the groundTruth object.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!