资源简介

BSCB数字图像修复算法,用matlab编写,可以直接运行

资源截图

代码片段和文件信息

function CHANGE=changei(Iijtnum)
%changei是像素表示沿着等照线的变化的函数,这里没有用到拉普拉斯算子,用的是改进算子ASG,tnum 表示的 rgb通道
%x=laplacei(Ii+1j)-laplacei(Ii-1j);
%y=laplacei(Iij+1)-laplacei(Iij-1);
%x=double(I(i+2j)+I(i+1j+1)+I(i+1j-1)-4*I(i+1j)+4*I(i-1j)-I(i-2j)-I(i-1j+1)-I(i-1j-1));
%y=double(I(i+1j+1)+I(i-1j+1)+I(ij+2)-4*I(ij+1)+4*I(ij-1)-I(i+1j-1)-I(i-1j-1)-I(ij-2));
Ix=0.5*(mavg(Mmavg(I(i+2jtnum)I(i+1jtnum)I(ijtnum))max(I(i+1j+1tnum)I(i+1jtnum))max(I(i+1j-1tnum)I(i+1jtnum)))-mavg(Mmavg(I(i-2jtnum)I(i-1jtnum)I(ijtnum))max(I(i-1j+1tnum)I(i-1jtnum))max(I(i-1j-1tnum)I(i-1jtnum))));
Iy=0.5*(mavg(Mmavg(I(ij+2tnum)I(ij+1tnum)I(ijtnum))max(I(i+1j+1tnum)I(ij+1tnum))max(I(i-1j+1tnum)I(ij+1tnum)))-mavg(Mmavg(I(ij-2tnum)I(ij-1t

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        957  2010-12-15 16:10  BSCB inpainting\changei.asv

     文件        957  2010-12-15 16:10  BSCB inpainting\changei.m

     文件        637  2010-12-15 16:10  BSCB inpainting\changem.asv

     文件        658  2010-12-15 16:10  BSCB inpainting\changem.m

     文件        372  2010-12-15 16:10  BSCB inpainting\curvature.asv

     文件        372  2010-12-15 16:10  BSCB inpainting\curvature.m

     文件      34262  2010-12-15 16:10  BSCB inpainting\D.bmp

     文件      62284  2010-12-15 16:10  BSCB inpainting\DD.jpg

     文件        418  2010-12-15 16:10  BSCB inpainting\diffuse.asv

     文件        489  2010-12-15 16:10  BSCB inpainting\diffuse.m

     文件        390  2010-12-15 16:10  BSCB inpainting\direction.asv

     文件        391  2010-12-15 16:10  BSCB inpainting\direction.m

     文件       1886  2010-12-15 16:10  BSCB inpainting\ds.asv

     文件        212  2010-12-15 16:10  BSCB inpainting\inpainting.asv

     文件        212  2010-12-15 16:10  BSCB inpainting\inpainting.m

     文件     786486  2013-06-01 15:41  BSCB inpainting\jiuguo.bmp

     文件     810054  2010-12-15 16:11  BSCB inpainting\jiuguo1.bmp

     文件     786486  2013-06-01 15:41  BSCB inpainting\jiuguomid.bmp

     文件        141  2010-12-15 16:11  BSCB inpainting\Laplace.asv

     文件        149  2010-12-15 16:11  BSCB inpainting\laplacei.asv

     文件        148  2010-12-15 16:11  BSCB inpainting\laplacei.m

     文件       7269  2010-12-15 16:11  BSCB inpainting\main_inpainting.asv

     文件       7482  2013-06-01 15:41  BSCB inpainting\main_inpainting.m

     文件        167  2010-12-15 16:11  BSCB inpainting\mavg.asv

     文件        194  2010-12-15 16:11  BSCB inpainting\mavg.m

     文件        190  2010-12-15 16:11  BSCB inpainting\Mmavg.m

     文件        224  2010-12-15 16:11  BSCB inpainting\mse.asv

     文件        356  2010-12-15 16:11  BSCB inpainting\mse.m

     文件     786486  2010-09-25 21:21  BSCB inpainting\Peppers.bmp

     文件     263222  2010-09-25 21:29  BSCB inpainting\Peppers_mask.bmp

............此处省略8个文件信息

评论

共有 条评论