当前位置:网站首页>[image denoising] image denoising based on regularization with matlab code
[image denoising] image denoising based on regularization with matlab code
2022-06-12 18:56:00 【Matlab scientific research studio】
1 brief introduction
Image denoising has always been an important issue in image processing , Degraded images have great limitations on the further application of images . Mathematically speaking , Image denoising is an inverse problem , For image processing with fuzzy kernel, it is an ill posed inverse problem , At present, the most important and effective method to solve the inverse problem is the regularization method . The main idea of the regularization method is to introduce a regularization operator that approximates the operator of the original ill posed problem and then approximates the solution of the original ill posed problem , That is, the solution obtained by the regularization method is unique , It is a good approximation of the original and inverse problem .
2 Part of the code
%%%% The gradient of 0 Directly solve four kinds of regularities %%%%%%clear all;close all;x0 = double(imread('groundtruth\monarch.tif')); % Import groundtruthg0 = double(imread('degraded\monarch_n_0.1.tif')); % Import noisy image g0k = fspecial('gaussian',19,2);% Given Gaussian fuzzy kernellamda = 0.8; % Regularization coefficient 0.8[row column] = size(g0); % Get image dimension% Image 2-D Fourier transform discretizationK = fft2(k,row,column); % Gaussian kernelG = fft2(g0); % Noisy image% Difference matrixl1=[0 0 0;-1 1 0;0 0 0];l2=[0 -1 0;0 1 0;0 0 0];% Fourier transform to frequency domain 530*530 MatrixLx = fft2(l1,row,column);Ly = fft2(l2,row,column);%%%%%%%%%% Using two-dimensional Fourier transform and zero gradient, the four regularities are solved directly %%%%%%%%%%%L1 Regular :%x_iteration = ifft2((K'.*G-lamda)./(K'.*K));%L2 Regular :%x_iteration = ifft2(((K'.*G)./(K'.*K+2*lamda));%TV Regular :%x_iteration = ifft2((K'.*G-lamda*Lx'-lamba*Ly')./(K'.*K));%TV-L2 Regular :x_iteration = ifft2((K'.*G)./(K'.*K-2*lamda*(Lx.^2)-2*lamda*(Ly.^2)));%%%%%%%%%%% Show reconstructed picture %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%figure;colormap gray; % Grayingsubplot(221);image(x0);title('GroundTruth');subplot(222);imagesc(g0);title('Degrade:0.1');subplot(224);imagesc(x_iteration);title('TV denoising:0.1');%%%%%%%%%%%% Index calculation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%[aa,bb] = size(x0);d_p = 9; % Avoid boundary effect impact assessment , Get rid of the reconstructed outer circleimg1 = x_iteration(d_p:aa-d_p+1,d_p:bb-d_p+1); % Rebuild pictureimg2 = x0(d_p:aa-d_p+1,d_p:bb-d_p+1); %groundtruthpsnr_result = psnr(img1,img2)[mssim, ~] = ssim_index(img1,img2)
3 Simulation results



4 reference
[1] Li Qingqing . Research on image denoising model based on regularization method [D]. Wuhan University of technology , 2013.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .
边栏推荐
- 232-ch579m learning and development Ethernet routine TCP server (project application package, LAN or WAN test)
- 数据库全量SQL分析与审计系统性能优化之旅
- A small case with 666 times performance improvement illustrates the importance of using indexes correctly in tidb
- Cookie & Session & kaptcha验证码
- Experiment 10 Bezier curve generation - experiment improvement - interactive generation of B-spline curve
- leetcode:5259. 计算应缴税款总额【简单模拟 + 看看在哪个区间】
- How to modify the authorization of sina Weibo for other applications
- Common methods and examples of defect detection based on Halcon
- Enhanced version of unit test code displayed by SAP e-commerce cloud Spartacus UI checkout spinner
- dumi 搭建文档型博客
猜你喜欢

kali局域网ARP欺骗(arpspoof)并监听(mitmproxy)局域内其它主机上网记录

How to download Vega in China

leetcode:6094. 公司命名【分组枚举 + 不能重复用set交集 + product笛卡儿积(repeat表示长度)】

liunx部署Seata(Nacos版)

数据库全量SQL分析与审计系统性能优化之旅

Go package import mode member visibility

什么是网络代理

chrome浏览器解决跨域问题

no available service ‘null‘ found, please make sure registry config correct

Research Report on the overall scale, major manufacturers, major regions, products and applications of Electric Screwdrivers in the global market in 2022
随机推荐
Experiment 10 Bezier curve generation - experiment improvement - control point generation of B-spline curve
【历史上的今天】6 月 12 日:美国进入数字化电视时代;Mozilla 的最初开发者出生;3Com 和美国机器人公司合并
leetcode:6094. 公司命名【分组枚举 + 不能重复用set交集 + product笛卡儿积(repeat表示长度)】
Leetcode 416. 分割等和子集
攻防世界(web篇)---supersqli
leetcode:5270. Minimum path cost in Grid [simple level DP]
Two months later, my second listing anniversary [June 2, 2022]
How to break the black screen after cleaning the dust and applying silicone grease on the laptop?
lua记录
数据库全量SQL分析与审计系统性能优化之旅
A journey of database full SQL analysis and audit system performance optimization
间隔两个月,我的第二次上榜纪念日【2022.6.2】
Observe the page of the website
uniapp使用阿里图标
Experiment 10 Bezier curve generation - experiment improvement - interactive generation of B-spline curve
RHCA回忆录---CL280介绍
Leetcode 494. 目标和
The practice of machine learning in meituan distribution system: restoring the real world with technology - Notes
Common methods and examples of defect detection based on Halcon
io.seata.common.exception.FrameworkException: can not connect to services-server.