i try below code, but it show error at 'thisimage' variable. whats the problem.
clc;close all;clear;OutputFolder = 'D:\Datasets\handwritten-signatures\sample_Signature\edited'; % Set as needed [EDITED]
dinfo = dir('D:\Datasets\handwritten-signatures\sample_Signature\genuine\*.png');% image extension
for K = 1 : length(dinfo) thisimage = dinfo(K).name; Img = imread(thisimage); Y = imshow(Img); Gray = rgb2gray(Img); i = imresize(Img, [227, 227], 'bilinear'); imwrite(i, fullfile(OutputFolder, thisimage)); % [EDITED]
end
Best Answer