|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
( v+ Z1 U/ _* z7 [( n一、简介
5 L( C" [- Z4 o; j+ l- a/ I' \& Y! m, H5 i' f3 W8 s( m k* J4 ?& @
图像分割就是把图像分成若干个特定的、具有独特性质的区域并提出感兴趣目标的技术和过程。它是由图像处理到图像分析的关键步骤。现有的图像分割方法主要分以下几类:基于阈值的分割方法、基于区域的分割方法、基于边缘的分割方法以及基于特定理论的分割方法等。从数学角度来看,图像分割是将数字图像划分成互不相交的区域的过程。图像分割的过程也是一个标记过程,即把属于同一区域的像素赋予相同的编号。
9 @0 Z7 K! Q$ V9 J7 b4 x8 ~# |0 R2 O, g! L) D
f [& D9 D5 D/ i g. P
二、源代码# m3 ^: p! n1 x, T1 t- ~3 ~
; P. T, L% P% O; ?; q! K2 {
+ V3 V7 k, M% u' y- D% n
- 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
- : u: K4 f3 [6 O3 s+ e6 c* `. U, K+ `1 C
[" w* G9 E7 G/ K* {( z
4 N. n- B! y6 |& M6 G8 g# v7 W
三、运行结果( _+ R$ n: V4 p1 Z- k0 f
( @& v& Q! n% s8 S4 Z" J# _; \
+ C1 ~" ?# p$ N( g ~$ n$ x2 k
1 H* M3 Q U+ d! h- x, Q7 p3 |0 S
, I! c1 h: `: [1 S/ L. f
a. T8 N2 V! O0 h ]6 a
7 Q* l* B0 L, s: _1 ~7 e4 B/ ~ |
|