资源简介
MATLAB 实现 人脸识别 光照归一化 算法
MATLAB 实现 人脸识别 光照归一化 算法
代码片段和文件信息
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This code has been written in 2008 by me Gholamreza Anbarjafari %
% (Shahab). You can use this code for any research and academic purposes %
% as far as you refer to the following work: %
% Hasan Demirel and Gholamreza Anbarjafari “HSI based Colour Image %
% Equalization using Iterative nth Root and nth Power“ 5th International %
% Conference on Electrical and Computer Systems (EECS?8) Nov 27-28 %
% 2008 Lefke North Cyprus. %
% %
% Feel free to contact us for any furthur information: %
% {hasan.demirel shahab.jafari}@emu.edu.tr %
% http://faraday.ee.emu.edu.tr/shahab %
% http://faraday.ee.emu.edu.tr/hdemirel %
% (c) Demirel and Anbarjafari -2008 %
% %
% The iterative proposed method for equalization is based on achieving a %
% normalized image with mean of 0.5 in R G and B channels. %
% one can easily calculate the PSNR using the calcpsnr commend avaiable in%
% this address: http://www.mathworks.com/matlabcentral/fileexchange/22241 %
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc
clear all
i=imread(‘illu3_1.jpg‘);
id=i;
id=im2double(id);
[hsv]=rgb2hsv(id);
v=im2double(v);
m=mean(mean(v));
while (abs(m-0.5)>0.1)
if m<0.5
v=(v).^(1-m);
else
v=v.^(1/(1-m));
end
m=mean(mean(v));
end
ID(::1)=h;ID(::2)=s;ID(::3)=v;
idhsv=hsv2rgb(ID);
id1=im2double(imread(‘illu3.jpg‘));
clear i;
i=uint8(idhsv*255);
id_cool=idhsv;
idr=idhsv(::1);idg=idhsv(::2);idb=idhsv(::3);
m=mean(mean(idr));
while (abs(m-0.5)>0.1)
if m<0.5
idr=(idr).^(1-m);
else
idr=idr.^(1/(1-m));
end
m=mean(mean(idr));
end
m=mean(mean(idg));
while (abs(m-0.5)>0.1)
if m<0.5
idg=(idg).^(1-m);
else
idg=idg.^(1/(1-m));
end
m=mean(mean(idg));
end
m=mean(mean(idb));
while (abs(m-0.5)>0.1)
if m<0.5
idb=(idb).^(1-m);
else
idb=idb.^(1/(1-m));
end
m=mean(mean(idb));
end
idr_cool=id_cool(::1);idg_cool=id_cool(::2);idb_cool=id_cool(::3);
cnt1=1;mm=mean(mean(idr_cool));
while (abs(mm-0.5)>0.00009)
idr_cool=idr_cool.^(log(0.5)/log(mm));
mm=mean(mean(idr_cool));
end
mm=mean(mean(idg_cool));
while (abs(mm-0.5)>0.00009)
idg_cool=idg_cool.^(log(0.5)/log(mm));
mm=mean(mean(idg_cool));
end
mm=mean(mean(idb_cool));
while (abs(mm-0.5)>0.00009)
idb_cool=idb_cool.^(log(0.5)/log(mm));
mm=mean(mean(idb_cool));
end
ieqr=im2double(histeq(i(::
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 69571 2008-01-12 03:18 illu3.jpg
文件 367564 2008-01-12 17:45 illu3_1.jpg
文件 3512 2008-12-21 14:27 Some_Equalization.m
- 上一篇:matlab计算DH矩阵源码.7z
- 下一篇:DIRICHLET PROCESS
相关资源
- matlab计算DH矩阵源码.7z
- 用迎风离散格式解对流方程(matlab)
- 基于Matlab GUI的串口通信编程
- BP神经网络用于轴承故障分类
- MATLAB动态规划源码
- 被动调Q激光器MATLAB仿真
- 神经网络matlab程序
- 二维singer滤波
- Matlab+GUIDE使用总结--Matlab+GUI界面
- SVPWM整流器matlab仿真
- 自己用matlab写的jpeg压缩,解压程序
- matlab中实现遗传算法求解旅行商问题
- isight调用matlab
- 利用matlab实现H-infinity鲁棒控制
- 强化学习matlab代码
- 光伏电池输出特性曲线MATLAB代码
- 基于LMS算法的均衡器MATLAB实现代码
- 蚁群、粒子群、GA、TS等算法解决Job
- matlab关于商场人数的泊松随机过程仿
- 脉冲编码调制PCM调制与解调
- 64QAM调制解调
- matlab遗传算法程序以求解函数的极值
- 毕业论文 基于matlab的PSK通信系统仿真
- matlab 代码实现 信号 数字 变频
- KUKA六关节机器人matlab仿真
- hurst指数的MATLAB实现
- PSO-RBF的MATLAB程序实现
- 商人过河MATLAB.rar
- MatlabR2017aWin64Crack.rar
- Student_5_BDS_Positioning.m
评论
共有 条评论