资源简介
matlab snake 算法,边界跟踪的一种算法
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% filter_function.m is a helper function for interate.m. To run snakes
% (active contours) with GUI see below. To go to the meat of the code see
% interate.m
%
% To run it with GUI
% 1. Type guide on the matlab prompt.
% 2. Click on “Go to Existing GUI“
% 3. Select the snk.fig file in the same directory as this file
% 4. Click the green arrow at the top to launch the GUI
%
% Once the GUI has been launched you can use snakes by
% 1. Click on “New Image“ and load an input image. Samples image are
% provided.
% 2. Set the smoothing parameter “sigma“ or leave it at its default value
% and click “Filter“. This will smooth the image.
% 3. As soon as you click “Filter“ cross hairs would appear and using
% them and left click of you mouse you can pick initial contour location
% on the image. A red circle would appead everywhere you click and in
% most cases you should click all the way around the object you want to
% segement. The last point must be picked using a right-click in order to
% stop matlab for asking for more points.
% 4. Set the various snake parameters (relative weights of energy terms
% in the snake objective function) or leave them with their default value
% and click “Iterate“ button. The snake would appear and move as it
% converges to its low energy state.
%
% Copyright (c) Ritwik Kumar Harvard University 2010
% www.seas.harvard.edu/~rkkumar
%
% This code implements 揝nakes: Active Contour Models?by Kass Witkin and
% Terzopolous incorporating Eline Eedge and Eterm energy factors. See the
% included report and the paper to learn more.
%
% If you find this useful also look at Radon-Like Features based
% segmentation in the following paper:
% Ritwik Kumar Amelio V. Reina & Hanspeter Pfister 揜adon-Like Features
% and their Application to Connectomics? IEEE Computer Society Workshop %
% on Mathematical Methods in Biomedical Image Analysis (MMBIA) 2010
% http://seas.harvard.edu/~rkkumar
% Its code is also available on MATLAB Central
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [smth] = filter_function(image sigma)
% This function smooths the image with a Gaussian filter of width sigma
smask = fspecial(‘gaussian‘ ceil(3*sigma) sigma);
smth = filter2(smask image ‘same‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-11-01 18:46 activeContoursSnakesDemo\
目录 0 2013-11-01 18:47 activeContoursSnakesDemo\activeContoursDemo\
文件 199 2010-07-02 21:23 activeContoursSnakesDemo\activeContoursDemo\README.txt
文件 4109 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\U64.pgm
文件 364184 2010-07-02 21:19 activeContoursSnakesDemo\activeContoursDemo\activeContours_Snakes.pdf
文件 47490 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\chest.pgm
文件 10028 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\circle.jpg
文件 2448 2010-07-02 21:21 activeContoursSnakesDemo\activeContoursDemo\filter_function.m
文件 2974 2010-07-02 21:21 activeContoursSnakesDemo\activeContoursDemo\getsnake.m
文件 25615 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\heart.pgm
文件 40658 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\img1 - 副本.tif
文件 40658 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\img1.tif
文件 34306 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\img2.tif
文件 4822 2010-07-02 21:21 activeContoursSnakesDemo\activeContoursDemo\interate.m
文件 65594 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\new.pgm
文件 4112 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\room.pgm
文件 5814 2010-07-02 20:29 activeContoursSnakesDemo\activeContoursDemo\snk.fig
文件 25966 2010-07-02 21:21 activeContoursSnakesDemo\activeContoursDemo\snk.m
文件 5000 2005-11-06 01:34 activeContoursSnakesDemo\activeContoursDemo\square.jpg
文件 1333 2010-07-02 21:45 activeContoursSnakesDemo\license.txt
相关资源
- FDTD(时域有限差分法)算法的Matlab源
- 自适应控制_程序m文件
- hmm的matlab源代码
- leach算法改进
- OMP算法MATLAB程序
- BGLL算法matlab实现 社区挖掘
- g_p算法求解关联维数
- CLEAN算法matlab代码
- 基于matlab遗传算法的数据拟合代码
- 配电网遍历算法.docx
- 双目立体视觉Census算法 matlab
- 双目立体视觉快速NCC算法 matlab
- 双目立体视觉彩色SAD算法matlab
- adaboost 演示demo基于Matlab,学习算法包
- 自适应遗传算法 求解函数最小值Mat
- OFDM中LS和DFT信道估计算法matlab程序实
- 蚁群算法优化PID参数
- 自适应粒子群算法
- MATLAB禁忌搜索算法求解TSP问题
- 室内定位三种经典算法Fang、Taylor、
- FDTD算法的Matlab源程序
- F5隐写算法matab源代码
- 点目标距离多普勒算法仿真
- 自己写的蚁群算法实验带GUI matlab写的
- uwb定位算法
- 扫描线算法填充多边形
- LDPC编码的BP译码算法的matlab程序
- ksvd算法代码
- 最小二乘匹配算法、matlab版
- PID 算法Matlab详解
评论
共有 条评论