【图像去噪】基于均值+中值+空间+高斯滤波实现图像去噪含Matlab源码

本文介绍了一种基于Matlab设计的图像去噪可视化系统,研究了均值滤波、中值滤波、高斯滤波和维纳滤波等常见去噪方法,并通过PSNR指标量化其在处理高斯噪声、椒盐噪声和乘性噪声时的效果,为图像去噪提供直观的分析和选择依据。
摘要由CSDN通过智能技术生成

1 简介

设计了基于Matlab的图像去噪可视化系统,针对常见的高斯噪声,椒盐噪声,乘性噪声,讨论和比较了均值滤波,中值滤波,高斯滤波,维纳滤波等去噪方法,并利用峰值信噪比PSNR反映各种去噪方法对不同噪声干扰后图像的处理效果,为图像去噪提供了直观的分析.

2 部分代码

function varargout = firstfigure(varargin)% FIRSTFIGURE MATLAB code for firstfigure.fig%      FIRSTFIGURE, by itself, creates a new FIRSTFIGURE or raises the existing%      singleton*.%%      H = FIRSTFIGURE returns the handle to a new FIRSTFIGURE or the handle to%      the existing singleton*.%%      FIRSTFIGURE('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in FIRSTFIGURE.M with the given input arguments.%%      FIRSTFIGURE('Property','Value',...) creates a new FIRSTFIGURE or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before firstfigure_OpeningFcn gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to firstfigure_OpeningFcn via varargin.%%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one%      instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help firstfigure% Last Modified by GUIDE v2.5 12-Apr-2021 09:28:05% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @firstfigure_OpeningFcn, ...                   'gui_OutputFcn',  @firstfigure_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif nargout    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});else    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before firstfigure is made visible.function firstfigure_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% varargin   command line arguments to firstfigure (see VARARGIN)% Choose default command line output for firstfigurehandles.output = hObject;% Update handles structureguidata(hObject, handles);I=imread('rice.png');axes(handles.axes1);imshow(I);% UIWAIT makes firstfigure wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = firstfigure_OutputFcn(hObject, eventdata, handles) % varargout  cell array for returning output args (see VARARGOUT);% hObject    handle to figure% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout{1} = handles.output;% --- Executes on button press in Enter.function Enter_Callback(hObject, eventdata, handles)% hObject    handle to Enter (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)close(firstfigure); %想关闭的matlab界面名称set(noise_filter,'Visible','on');  %想打开的界面名称% --- Executes on button press in close.function close_Callback(hObject, eventdata, handles)% hObject    handle to close (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)close(gcf)% --- Executes during object creation, after setting all properties.function axes1_CreateFcn(hObject, eventdata, handles)% hObject    handle to axes1 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes1

3 仿真结果

4 参考文献

[1]李秀梅, 张奇伟, and 应广之. "基于Matlab的图像去噪可视化系统设计." 杭州师范大学学报:自然科学版 11.6(2012):5.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值