用Matlab将ORL人脸数据库的pgm格式批量转换为jpg格式-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

用Matlab将ORL人脸数据库的pgm格式批量转换为jpg格式

%{
	将ORL人脸数据库的pgm格式批量转换为jpg格式
%}
	clc;	
   % clear all;
	for i=1:40
for j=1:10
	p_w_picpath=imread(strcat('E:\pic\att_faces\s',...
int2str(i),'\',int2str(j),'.pgm'));
	imwrite(p_w_picpath,strcat('E:\pic\att_faces\s',...
	int2str(i),'\',int2str(j),'.jpg'));
	end
	disp(strcat('s',int2str(i),'转换结束.'));
	end
disp('批量转换结束.');

文章题目:用Matlab将ORL人脸数据库的pgm格式批量转换为jpg格式
本文地址:http://kswsj.cn/article/ggddoi.html

其他资讯