ipDir = '../Dataset/photos'; isDir = '../Dataset/sketches';files_p = dir([ipDir '*.jpg']); files_s = dir([isDir '*.jpg']);tmp1=imread([ipDir files_p(1).name]); Index exceeds matrix dimensions.Error in createTrainingData_color (line 13) tmp1=imread([ipDir files_p(1).name]);
I am getting the above error. Please help me.
I am getting the error while reading the images.
Best Answer