当前位置:网站首页>【图像去噪】基于偏微分方程(PDE)实现图像去噪附matlab代码
【图像去噪】基于偏微分方程(PDE)实现图像去噪附matlab代码
2022-06-12 06:41:00 【Matlab科研工作室】
1 简介
在工程应用中,图像信息通过数字图像系统进行处理、存储和传输等加工变换时,由于不可避免地受到噪声干扰,使得原始图像信息产生偏差和失真,给图像的后续处理带来不便,进而影响人们对图像视觉特性的认知程度。因此,为了改善图像的质量效果,提高人们对图像视觉特性的认知度,对图像噪声进行有效去除,降低噪声对图像信息的干扰是很有必要的。近年来,基于偏微分方程( partial differential equation,PDE) 的图像去噪方法在计算机视觉和图像处理等技术领域得到了广泛的重视,因为它在平滑噪声的同时,能够很好地使图像边缘纹理信息得到保持。

2 部分代码
%---------------------------------------------%% %clcclear all% I=imread('pentagram.bmp');%gray image% I=imread('lena1.bmp');% I=imread('cameraman.tif');I=double(I(25:125,70:170));I=imread('canal.gif');%gray noisy image% [I,map]=imread('ct_scan.bmp');I=ind2gray(I,map);% I=imread('haifa.bmp');%color imageI=double(I);[row,col,nchannel]=size(I);In=I;%加入(均值=0,方差=sigma)的高斯噪声(可选)sigma=15;if nchannel==1%gray imageIn=I+sigma*randn(row,col);elseif nchannel==3%color imageIn=I+sigma*randn(row,col,3);end%手工指定梯度阈值(for smooth&directional diffusion)K=15;%用robust_statistic自动估计梯度阈值(参Sapiro P231)% K=autoK(In)%画出影响函数曲线% plot_edgestop(K);%画出水平集曲线% figure;contour(In);axis ij;%扩散去噪edgestop='pm1';method='cat';niter=50;% It=smooth_diffusion(In,edgestop,method,'is',niter,K,I);% It=directional_diffusion(In,'tky','av2','is',niter,K,I);% figure;contour(It);axis ij;%画出水平集曲线% It=TV_denoise(In,'is',niter,0,0,I);%without fedality termIt=TV_denoise(In,'is',1,1,sigma,I);%with fedality term% It=order4_diffusion(In,edgestop,'is',niter,K,I);figure;subplot(131);imshow(uint8(I)); title('原图')subplot(132);imshow(uint8(In)); title('加噪图')subplot(133);imshow(uint8(It)); title('去噪图')% title(['SNR=',num2str(SNR(I,In))]);%信号噪声比:
3 仿真结果

4 参考文献
[1]杨迎春. 基于偏微分方程的图像去噪算法研究[D]. 中北大学, 2012.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- leetcode:剑指 Offer 63. 股票的最大利润【记录前缀最小和 or 无脑线段树】
- SQL 注入-盲注
- Highlight detection with pairwise deep ranking for first person video summary (thesis translation)
- Whether the modification of basic type and reference type is valid
- Multithreading (2) -- pipeline (2) -- synchronized underlying monitor, lightweight, biased lock, lock inflation
- android studio 利用数据库实现登录注册界面功能
- sql server2019安装到这步无法进行下一步了,如何解决?
- Redis supports data structure types
- 数据库语法相关问题,求解一个正确语法
- LeetCode-1405. Longest happy string
猜你喜欢

Bert Chinese classification model training + reasoning + deployment

Leetcode January 12 daily question 334 Increasing ternary subsequence
![Leetcode: offer 60 Points of N dice [math + level DP + cumulative contribution]](/img/2b/41bd6a213892062f4c12721b5d4e8d.png)
Leetcode: offer 60 Points of N dice [math + level DP + cumulative contribution]

【数据聚类】本专栏中涉及数据集、可视化及注意事项

VSCode常用插件

Codeforces Round #793 (Div. 2) A B C

Redis basic notes

5 ROS simulation modeling (4-navigation navigation simulation)

SQL injection based on error reporting

An error occurred while downloading the remote file The errormessage
随机推荐
The first day of June training - array
Redis basic notes
LeetCode-1576. Replace all question marks
Some operations of MATLAB array
Computer composition and design work06 - based on MIPS
5 ROS simulation modeling (4-navigation navigation simulation)
Delete the duplicate items in the ordered array -- force deduction question 26 (simple)
It only takes 10 minutes to understand the underlying principle of NiO
Apache POI import export excel file
Computer composition and design work06 —— 基于MIPS
Codeforces Round #793 (Div. 2) A B C
SQL injection - Union query
leetcode 300. Longest increasing subsequence
About session Getattribute, getattribute error
leetcode.39 --- 组合总和
leetcode 278. First wrong version
Vscode Common plug - in
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
张驰咨询:流程是一剂万能良药吗?
Solution: content type 'application/x-www-form-urlencoded; charset=UTF-8‘ not supported