资源简介

对于不均匀图像的去阴影处理的matlab实现,可用。对于不均匀图像的去阴影处理的matlab实现,可用。

资源截图

代码片段和文件信息

function ln=localnormalize(IMsigma1sigma2)
%LOCALNORMALIZE A local normalization algorithm that uniformizes the local
%mean and variance of an image.
%  ln=localnormalize(IMsigma1sigma2) outputs local normalization effect of 
%  image IM using local mean and standard deviation estimated by Gaussian
%  kernel with sigma1 and sigma2 respectively.
%
%  Contributed by Guanglei Xiong (xgl99@mails.tsinghua.edu.cn)
%  at Tsinghua University Beijing China.
epsilon=1e-1;
halfsize1=ceil(-norminv(epsilon/20sigma1));
size1=2*halfsize1+1;
halfsize2=ceil(-norminv(epsilon/20sigma2));
size2=2*halfsize2+1;
gaussian1=fspecial(‘gaussian‘size1sigma1);
gaussian2=fspecial(‘gaussian‘size2sigma2);
num=IM-imfilter(IMgaussian1);
den=sqrt(imfilter(num.^2gaussian2));
ln=num./den;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-26 01:02  localnormalize_654504826\
     文件        6148  2018-02-26 01:02  localnormalize_654504826\.DS_Store
     目录           0  2018-02-26 01:02  __MACOSX\
     目录           0  2018-02-26 01:02  __MACOSX\localnormalize_654504826\
     文件         120  2018-02-26 01:02  __MACOSX\localnormalize_654504826\._.DS_Store
     文件         796  2005-08-17 12:16  localnormalize_654504826\localnormalize.m
     文件         216  2005-08-17 12:16  __MACOSX\localnormalize_654504826\._localnormalize.m
     文件         436  2005-08-17 12:16  localnormalize_654504826\README.txt
     文件         216  2005-08-17 12:16  __MACOSX\localnormalize_654504826\._README.txt
     文件         436  2005-08-17 12:16  localnormalize_654504826\README鍓湰.txt
     文件         216  2005-08-17 12:16  __MACOSX\localnormalize_654504826\._README鍓湰.txt
     文件         152  2005-08-17 12:06  localnormalize_654504826\testlocalnormalize.m
     文件         216  2005-08-17 12:06  __MACOSX\localnormalize_654504826\._testlocalnormalize.m
     文件         216  2018-02-26 01:02  __MACOSX\._localnormalize_654504826

评论

共有 条评论