二、图像分割简介

理论知识参考:【基础教程】基于matlab图像处理图像分割【含Matlab源码 191期】

三、部分源代码

function varargout = ImageGUI(varargin)
% IMAGEGUI MATLAB code for ImageGUI.fig
% IMAGEGUI, by itself, creates a new IMAGEGUI or raises the existing
% singleton*.
%
% H = IMAGEGUI returns the handle to a new IMAGEGUI or the handle to
% the existing singleton*.
%
% IMAGEGUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in IMAGEGUI.M with the given input arguments.
%
% IMAGEGUI('Property','Value',...) creates a new IMAGEGUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before ImageGUI_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to ImageGUI_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 ImageGUI

% Copyright 2011 The MathWorks, Inc.

% Last Modified by GUIDE v2.5 09-Jun-2015 20:18:33

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @ImageGUI_OpeningFcn, ...
'gui_OutputFcn', @ImageGUI_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end

四、运行结果

【图像分割】基于matlab GUI彩色图像分割【含Matlab源码 204期】_ide

【图像分割】基于matlab GUI彩色图像分割【含Matlab源码 204期】_图像分割_02

五、matlab版本及参考文献

1 matlab版本

2014a

2 参考文献

[1] 蔡利梅.MATLAB图像处理——理论、算法与实例分析[M].清华大学出版社,2020.

[2]杨丹,赵海滨,龙哲.MATLAB图像处理实例详解[M].清华大学出版社,2013.

[3]周品.MATLAB图像处理与图形用户界面设计[M].清华大学出版社,2013.

[4]刘成龙.精通MATLAB图像处理[M].清华大学出版社,2015.

[5]赵勇,方宗德,庞辉,王侃伟.基于量子粒子群优化算法的最小交叉熵多阈值图像分割[J].计算机应用研究. 2008,(04)