%{
将ORL人脸数据库的pgm格式批量转换为jpg格式
%}
clc;
% clear all;
for i=1:40
for j=1:10
image=imread(strcat(‘E:\pic\att_faces\s‘,...
int2str(i),‘\‘,int2str(j),‘.pgm‘));
imwrite(image,strcat(‘E:\pic\att_faces\s‘,...
int2str(i),‘\‘,int2str(j),‘.jpg‘));
end
disp(strcat(‘s‘,int2str(i),‘转换结束.‘));
end
disp(‘批量转换结束.‘);本文出自 “10628473” 博客,请务必保留此出处http://10638473.blog.51cto.com/10628473/1836681
用Matlab将ORL人脸数据库的pgm格式批量转换为jpg格式
原文:http://10638473.blog.51cto.com/10628473/1836681