资源简介
可以直接运行的matlab程序,很好用,开源代码,直接运行效果很好,也可以根据自己的需要进行改进。很棒的!

代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% SNAKE DEMO ver 1.0 beta
%
% Interface by
%
% Dejan Tomazevic (e-mail dejan.tomazevic@kiss.uni-lj.si) 10/2/98
% Copyright (c) 1998 by Dejan Tomazevic
% BIPROG Faculty of Electrical Engineering University of Ljubljana
%
% Snake and GVF functions by
% Chenyang Xu and Jerry L. Prince 6/17/97
% Copyright (c) 1996-97 by Chenyang Xu and Jerry L. Prince
% Image Analysis and Communications Lab Johns Hopkins University
%
%
% This program was written during Dejan Tomazevic visit Johns Hopkins University in
% purpose to show the use of traditional snakes and GVF snakes M fuctions.
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%% PROGRAM BEGINS %%%%%%%%%%
%%%%%%% INICIALIZATIONA %%%%%%%%%%%%%%
clear;
% Add the tools to the current path
p = path;%返回matlab的搜索路径
path(p ‘./snake;./subf‘);%把snakesubf两个路径加入matlab的搜索路径
%%%%%%%%%%%%% define global variables %%%%%%%%%%%%%%%%%%%
%%%% image processing variables
global Image1; % original image
global sigma;
global mu; %?
global alpha beta gamma kappa dmin dmax; % parameters for the snake
global NoGVFIterations; % number of GVF iterations
global NoSnakeIterations; % number of Snake iterations
global SchangeInFieldType;
global VectorFieldButt; % define the type of vector filed
global SnakeON; % indicate if snake is visible
global IncSnakeRadius; % inicializaton snake radius
global CircleOn; % inicalization snake will be circle
global SnakeDotsON; % 1 if snake dots should be displeyed
global GradientOn; % 1 if gradient is applayed with blur
global XSnake YSnake; % conture of the snake
global XSnakeInc YSnakeInc; % initialization conture of the snake
sigma=0;%高斯平滑的参数
mu=0.1;
alpha=0.05;
beta=0;
gamma=1;
kappa=0.6;
dmin=0.5;
dmax=2;
SchangeInFieldType=1;
NoGVFIterations=80;
NoSnakeIterations=40;
VectorFieldButt(1)=1; % standard field
VectorFieldButt(2)=0; % GVF filed
VectorFieldButt(3)=1; % normalized GVF
SnakeON=0; % snake is not drown on the picture at the begining
IncSnakeRadius=0.5;
CircleOn=1;
SnakeDotsON=1;
GradientOn=0;
%%%% interface variables
global VectorOfLocalMenuHD; %vector of local objects that can be arased
VectorOfLocalMenuHD=[];
global HDmainf; %main figure handle
global HDorigPic; %original picture axes handle
global HDbluredPic; %blured picture axes handle
global HDvectorFPic; %handle of vector field picture
global HDhelpAxes; %handle of help window
global HDhelpSlider1 HDhelpSlider2; %handle of the slider for help text
global HDvectorOfTexthd; % vector of help text handels
global xsize ysize; %size of the picture
global HDMenuAxes; %Axes for the help
global HDSnakeLine; %vector of Handles of Snake lines on the picture
global
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 31456 1998-10-02 08:33 snake_demo\head.jpg
文件 3828 2010-02-19 09:58 snake_demo\sdemo.asv
文件 3909 2010-05-18 11:34 snake_demo\sdemo.m
文件 7776 2010-05-06 16:48 snake_demo\unti
文件 3924 2010-05-06 16:53 snake_demo\unti
文件 47490 1999-01-06 13:49 snake_demo\images\chest.pgm
文件 1064 1998-09-30 09:50 snake_demo\images\heart.mat
文件 25615 1998-09-29 10:01 snake_demo\images\heart.pgm
文件 4248 1998-09-30 09:58 snake_demo\images\heart2.mat
文件 4056 1998-10-01 06:18 snake_demo\images\heart3.mat
文件 65594 1999-01-06 13:32 snake_demo\images\new.pgm
文件 2792 1998-09-30 10:26 snake_demo\images\room.mat
文件 4109 1997-08-28 12:32 snake_demo\images\room.pgm
文件 2928 1998-09-30 09:43 snake_demo\images\room2.mat
文件 2928 1998-09-30 09:44 snake_demo\images\room3.mat
文件 3304 1998-10-01 06:20 snake_demo\images\u64.mat
文件 4109 1997-08-28 12:32 snake_demo\images\U64.pgm
文件 2952 1998-10-07 04:51 snake_demo\images\u642.mat
文件 916 2000-04-12 20:06 snake_demo\snake\BoundMirrorEnsure.m
文件 699 2000-04-12 20:06 snake_demo\snake\BoundMirrorExpand.m
文件 488 2000-04-12 20:06 snake_demo\snake\BoundMirrorShrink.m
文件 1096 1997-08-28 12:32 snake_demo\snake\Contents.m
文件 608 1997-08-28 12:32 snake_demo\snake\dt.m
文件 500 1997-08-28 12:32 snake_demo\snake\gaussianBlur.m
文件 255 1997-08-28 12:32 snake_demo\snake\gaussianMask.m
文件 895 1998-10-08 10:23 snake_demo\snake\GGVF.m
文件 1660 2010-02-20 22:14 snake_demo\snake\GVF.m
文件 257 1998-09-30 06:08 snake_demo\snake\imdisp.m
文件 3256 1997-08-28 12:32 snake_demo\snake\rawread.m
文件 1536 1998-10-07 05:15 snake_demo\snake\rawwrite.m
............此处省略39个文件信息
- 上一篇:蚁群算法求最短路径1
- 下一篇:自适应控制——带遗忘因子的递推最小二乘法
相关资源
- 串行级联cpm系统MATLAB仿真
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
评论
共有 条评论