资源简介
利用K-means算法,在matlab环境下实现图像处理,具有GUI界面,形象的展现各种K值处理的效果!希望对大家有所帮助
代码片段和文件信息
function varargout = kmeans4gui(varargin)
% KMEANS4GUI M-file for kmeans4gui.fig
% KMEANS4GUI by itself creates a new KMEANS4GUI or raises the existing
% singleton*.
%
% H = KMEANS4GUI returns the handle to a new KMEANS4GUI or the handle to
% the existing singleton*.
%
% KMEANS4GUI(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in KMEANS4GUI.M with the given input arguments.
%
% KMEANS4GUI(‘Property‘‘Value‘...) creates a new KMEANS4GUI or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before kmeans4gui_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to kmeans4gui_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 kmeans4gui
% Last Modified by GUIDE v2.5 05-Jun-2011 20:27:27
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @kmeans4gui_OpeningFcn ...
‘gui_OutputFcn‘ @kmeans4gui_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 kmeans4gui is made visible.
function kmeans4gui_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 kmeans4gui (see VARARGIN)
% Choose default command line output for kmeans4gui
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes kmeans4gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = kmeans4gui_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;
function edit1_Callback(hobject eventdata handles)
% hobject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MAT
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 162 2011-06-06 22:39 聚类作业\~$实验报告——黄振华.docx
文件 960454 2010-05-03 08:28 聚类作业\实验程序\064.bmp
文件 960454 2010-05-03 08:28 聚类作业\实验程序\085.bmp
文件 960454 2010-05-03 08:29 聚类作业\实验程序\088.bmp
文件 51802 2011-06-06 23:46 聚类作业\实验程序\kmeans4gui.asv
文件 19950 2011-06-06 11:12 聚类作业\实验程序\kmeans4gui.fig
文件 51990 2011-06-10 08:29 聚类作业\实验程序\kmeans4gui.m
文件 921654 2011-06-17 09:48 聚类作业\实验程序\kmeans_deal.bmp
文件 65325 2011-06-29 20:02 聚类作业\实验程序\kmeans_deal.png
文件 1258 2011-06-17 12:49 聚类作业\实验程序\Unti
文件 1258 2011-06-17 22:41 聚类作业\实验程序\Unti
文件 27683 2011-04-28 18:26 聚类作业\实验程序\路标1.jpg
文件 17789 2011-04-28 18:26 聚类作业\实验程序\路标2.jpg
目录 0 2011-06-17 22:26 聚类作业\实验程序
文件 32738816 2011-06-29 20:02 聚类作业\录像1.avi
文件 3099066 2011-06-29 19:56 聚类作业\聚类实验报告——黄振华.docx
目录 0 2011-06-29 20:04 聚类作业
----------- --------- ---------- ----- ----
39878115 17
评论
共有 条评论