I want to read many images from a folder in the Matlab directory using imread() and then make different operations in every image individually , i wrote this code but it disagrees about (+k+):
num_file=1; file = dir('image.orig');num_file = numel(file);NF=num_file;Y=1;Z=1;images = cell(1,NF,T);T=cell(Y,Z,3); for k = 1:NF images{1,k}(Y,Z,3) = imread('C:Work\image.orig\'+k-1+'.JPEG');end
also, i want to save the matrix of each image in a cell array and i don't if what i wrote is right or not and i cannot have a permission to read from the folder, i checked the folder and found that it is read only, what do you think?
Thank you in advance
Best Answer