资源简介
各向异性滤波的matlab程序适用于一维、二维和三维。

代码片段和文件信息
function diff_sig = anisodiff1D(sig num_iter delta_t kappa option)
%ANISODIFF1D Conventional anisotropic diffusion
% DIFF_SIG = ANISODIFF1D(SIG NUM_ITER DELTA_T KAPPA OPTION) perfoms
% conventional anisotropic diffusion (Perona & Malik) upon 1D signals.
% A 1D network structure of 2 neighboring nodes is considered for diffusion
% conduction.
%
% ARGUMENT DEscriptION:
% SIG - input column vector (Nx1).
% NUM_ITER - number of iterations.
% DELTA_T - integration constant (0 <= delta_t <= 1/3).
% Usually due to numerical stability this
% parameter is set to its maximum value.
% KAPPA - gradient modulus threshold that controls the conduction.
% OPTION - conduction coefficient functions proposed by Perona & Malik:
% 1 - c(xt) = exp(-(nablaI/kappa).^2)
% privileges high-contrast edges over low-contrast ones.
% 2 - c(xt) = 1./(1 + (nablaI/kappa).^2)
% privileges wide regions over smaller ones.
%
% OUTPUT DEscriptION:
% DIFF_SIG - (diffused) signal with the largest scale-space parameter.
%
% Example
% -------------
% s = exp(-(-10:0.1:10).^2/2.5)‘ + rand(length(-10:0.1:10)1);
% num_iter = 15;
% delta_t = 1/3;
% kappa = 30;
% option = 2;
% ad = anisodiff1D(snum_iterdelta_tkappaoption);
% figure subplot 121 plot(s) axis([0 200 0 2]) subplot 122 plot(ad) axis([0 200 0 2])
%
% See also anisodiff2D anisodiff3D.
% References:
% P. Perona and J. Malik.
% Scale-Space and Edge Detection Using Anisotropic Diffusion.
% IEEE Transactions on Pattern Analysis and Machine Intelligence
% 12(7):629-639 July 1990.
%
% G. Grieg O. Kubler R. Kikinis and F. A. Jolesz.
% Nonlinear Anisotropic Filtering of MRI Data.
% IEEE Transactions on Medical Imaging
% 11(2):221-232 June 1992.
%
% MATLAB implementation based on Peter Kovesi‘s anisodiff(.):
% P. D. Kovesi. MATLAB and Octave Functions for Computer Vision and Image Processing.
% School of Computer Science & Software Engineering
% The University of Western Australia. Available from:
% .
%
% Credits:
% Daniel Simoes Lopes
% ICIST
% Instituto Superior Tecnico - Universidade Tecnica de Lisboa
% danlopes (at) civil ist utl pt
% http://www.civil.ist.utl.pt/~danlopes
%
% May 2007 original version.
% Convert input signal to double.
sig = double(sig);
% PDE (partial differential equation) initial condition.
diff_sig = sig;
% Center point distance.
dx = 1;
% 1D convolution masks - finite differences.
hW = [1 -1 0]‘;
hE = [0 -1 1]‘;
% Anisotropic diffusion.
for t = 1:num_iter
% Finite differences. [imfilter(..‘conv‘) can be replaced by
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3650 2007-05-15 00:32 anisodiff_Perona-Malik\anisodiff1D.m
文件 4901 2007-05-15 00:32 anisodiff_Perona-Malik\anisodiff2D.m
文件 11335 2007-05-15 00:32 anisodiff_Perona-Malik\anisodiff3D.m
- 上一篇:相关干涉仪测向方法matlab仿真.rar
- 下一篇:Comsol模拟循环流化床
相关资源
- 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实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论