|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- }0 w, m" W0 F/ h" g
一、简介6 R. N2 S* e# [
; e0 p" q3 P6 M8 n0 ?
图像分割就是把图像分成若干个特定的、具有独特性质的区域并提出感兴趣目标的技术和过程。它是由图像处理到图像分析的关键步骤。现有的图像分割方法主要分以下几类:基于阈值的分割方法、基于区域的分割方法、基于边缘的分割方法以及基于特定理论的分割方法等。从数学角度来看,图像分割是将数字图像划分成互不相交的区域的过程。图像分割的过程也是一个标记过程,即把属于同一区域的像素赋予相同的编号。
, K4 b6 f$ f3 x# j- d; R$ ^% @1 {( E& R" ~8 y& H! J1 c7 O) n
2 }( K) H4 I6 _1 N- _, s
二、源代码
& B3 K' j6 e1 x8 F- D" e7 u( x2 f& Y- J+ l/ Q8 V
9 c# g! N! z2 ]
- 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& @0 Z: P9 z- \. v . X4 E( [) O/ Z$ a H7 {# C& m
: a$ ]8 B2 G# o3 S: E2 N$ j三、运行结果
8 w# v" v4 r$ `/ r1 Y$ w6 g2 R6 Y, ?2 P; W% k
; O: v5 S' p8 u* i: J- S% W9 k- E' s1 K/ I& ?& T
' o2 r# e+ `- j: c; ?
" k$ {9 b: B9 I' Z+ x+ u
6 l$ h$ ^& A% f5 [3 ~ |
|