IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 人工智能 -> 基于matlab GUI均值+中值+空间+高斯滤波图像去噪 -> 正文阅读

[人工智能]基于matlab GUI均值+中值+空间+高斯滤波图像去噪

基于matlab GUI均值+中值+空间+高斯滤波图像去噪

一、简介

基于matlab GUI均值+中值+空间+高斯滤波图像去噪

二、源代码


% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles)

% hObject ???handle to pushbutton1 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)

%选择图片,可以是以下格式(*这个符号是通配符,表示可以是任意长度的任意字符)

????[filename,pathname]=uigetfile({'*.*';'*.bmp';'*.jpg';'*.tif';'*.jpeg'},'选择图像');

????%将im定义成全局变量,这样在代码的任何位置都可以使用im了。

????global im;

????%如果没有输入路径,则弹出错误对话框

????if isequal(filename,0)||isequal(pathname,0)

??????errordlg('您还没有选取图片!!','程序员哥哥告诉你');

??????return;

????else

????????%合成路径+文件名

????????image=[pathname,filename];

????????%读取图像

????????im=imread(image);

????????%打开坐标,方便操作

????????set(handles.axes1,'HandleVisibility','ON');

????????%使用图像,操作在坐标axes1里

????????axes(handles.axes1);

????????%在坐标图axes1里显示原图像

????????imshow(im);

????????title('原始图像');

????end





% --- Executes on selection change in listbox1.

function listbox1_Callback(hObject, eventdata, handles)

% hObject ???handle to listbox1 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)



% Hints: contents = cellstr(get(hObject,'String')) returns listbox1 contents as cell array

% ???????contents{get(hObject,'Value')} returns selected item from listbox1





% --- Executes during object creation, after setting all properties.

function listbox1_CreateFcn(hObject, eventdata, handles)

% hObject ???handle to listbox1 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???empty - handles not created until after all CreateFcns called



% Hint: listbox controls usually have a white background on Windows.

% ??????See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

????set(hObject,'BackgroundColor','white');

end





% --- Executes on button press in radiobutton1.



function radiobutton1_Callback(hObject, eventdata, handles)

global gs;

global jy;

global zs;

global ps;

jy=0;

gs=1;

zs=0;

ps=0;





% hObject ???handle to radiobutton1 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)



% Hint: get(hObject,'Value') returns toggle state of radiobutton1





% --- Executes on button press in radiobutton2.

function radiobutton2_Callback(hObject, eventdata, handles)

global gs;

global jy;

global zs;

global ps;

jy=1;

gs=0;

zs=0;

ps=0;





% hObject ???handle to radiobutton2 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)



% Hint: get(hObject,'Value') returns toggle state of radiobutton2





% --- Executes on button press in radiobutton3.

function radiobutton3_Callback(hObject, eventdata, handles)

global gs;

global jy;

global zs;

global ps;

jy=0;

gs=0;

zs=1;

ps=0;





% hObject ???handle to radiobutton3 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)



% Hint: get(hObject,'Value') returns toggle state of radiobutton3





% --- Executes on selection change in listbox2.

function listbox2_Callback(hObject, eventdata, handles)

% hObject ???handle to listbox2 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)



% Hints: contents = cellstr(get(hObject,'String')) returns listbox2 contents as cell array

% ???????contents{get(hObject,'Value')} returns selected item from listbox2





% --- Executes during object creation, after setting all properties.

function listbox2_CreateFcn(hObject, eventdata, handles)

% hObject ???handle to listbox2 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???empty - handles not created until after all CreateFcns called



% Hint: listbox controls usually have a white background on Windows.

% ??????See ISPC and COMPUTER.

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))

????set(hObject,'BackgroundColor','white');

end





% --- Executes on button press in radiobutton4.

function radiobutton4_Callback(hObject, eventdata, handles)

% hObject ???handle to radiobutton4 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)

global zzl;

global jzl;

global kjl;

global gsl;

jzl=1;

zzl=0;

kjl=0;

gsl=0;



% Hint: get(hObject,'Value') returns toggle state of radiobutton4





% --- Executes on button press in radiobutton5.

function radiobutton5_Callback(hObject, eventdata, handles)

% hObject ???handle to radiobutton5 (see GCBO)

% eventdata ?reserved - to be defined in a future version of MATLAB

% handles ???structure with handles and user data (see GUIDATA)

global zzl;

global jzl;

global kjl;

global gsl;

jzl=0;

zzl=1;

kjl=0;

gsl=0;

% Hint: get(hObject,'Value') returns toggle state of radiobutton5

三、运行结果

  人工智能 最新文章
2022吴恩达机器学习课程——第二课(神经网
第十五章 规则学习
FixMatch: Simplifying Semi-Supervised Le
数据挖掘Java——Kmeans算法的实现
大脑皮层的分割方法
【翻译】GPT-3是如何工作的
论文笔记:TEACHTEXT: CrossModal Generaliz
python从零学(六)
详解Python 3.x 导入(import)
【答读者问27】backtrader不支持最新版本的
上一篇文章      下一篇文章      查看所有文章
加:2021-10-19 11:52:51  更:2021-10-19 11:53:49 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/27 8:20:53-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码