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 EDIT
gui_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});
end
if 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 firstfigure
handles.output = hObject;
% Update handles structure
guidata(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 structure
varargout{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 axes13 仿真结果

4 参考文献
[1]李秀梅, 张奇伟, and 应广之. "基于Matlab的图像去噪可视化系统设计." 杭州师范大学学报:自然科学版 11.6(2012):5.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。











