|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
! n& R. E c' k0 V, _一、简介
6 T m _. a5 G2 E# e9 ]+ E0 t) b7 j7 w8 G
图像分割就是把图像分成若干个特定的、具有独特性质的区域并提出感兴趣目标的技术和过程。它是由图像处理到图像分析的关键步骤。现有的图像分割方法主要分以下几类:基于阈值的分割方法、基于区域的分割方法、基于边缘的分割方法以及基于特定理论的分割方法等。从数学角度来看,图像分割是将数字图像划分成互不相交的区域的过程。图像分割的过程也是一个标记过程,即把属于同一区域的像素赋予相同的编号。( v" z9 P" C1 D% p0 e
; N. y! ? E) i! U2 f
1 k1 L/ ~' w' A6 l
二、源代码5 _) e7 b/ i- _0 ^4 o% z
' N/ ^. v+ u+ K" p5 n
' I5 w1 F9 u- h4 Y6 r8 q& \- 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
9 S" P" \9 T. v, _0 ]8 y 6 H8 P8 e5 D3 o2 @6 s8 B7 D4 E
8 ^0 R( }6 p q
三、运行结果
1 T* {2 D' h6 m1 \" z0 U( u1 I
0 W9 ^( I: X5 {( \. U# [. {& t4 R& [4 o
( T, x. g. t5 G- |
' x9 H9 H8 P1 t) s8 H3 T
6 e, h. h* T9 K |
|