%file=dir('D:\dataset\temp');
file=dir('D:\dataset\INRIAPerson\test_64x128_H96\pos');for i=3:length(file)% path= strcat('D:\dataset\temp\',file(i).name); path= strcat('D:\dataset\INRIAPerson\test_64x128_H96\pos\',file(i).name); file(i).name I=imread(path); I2=imresize(I,[160 96]); imwrite(I2,path);end