how do i get the path to my image in a folder ?
% Directory
directory = 'C:\Datasets\nyu\train\';% Filenames
image_rgb_filenames = dir(strcat(directory,'image_02\','*.jpg'));image_depth_filenames = dir(strcat(directory,'depth\','*.png'));
Because image_rgb_filenames(1).name returns me the name of the file, not the path to it with the name of the file.
Best Answer