Hello, i want to check noise level in image. The original code is only read 1 file and check the noise level of the image. Assume that i have more than one images and i want to execute all in one time. How to read all the image? I have tried this but it show the error below.
imagefiles = dir('Test\*.jpg'); nfiles = length(imagefiles); % Number of files found
for ii = 1 : nfiles% diary('output2.txt');
% diary on;
currentfilename = imagefiles(ii).name; currentimage = imread(currentfilename); images{ii} = currentimage; img = double(imread(currentfilename)); nlevel = NoiseLevel(img); fprintf('noise level: %f \n\n', nlevel);end% diary off;
The error is shown like below :
Thank you…
Best Answer