资源简介
这是 m-Code DIPUM Toolbox v2.0.1 ,请注意是m文件而非p文件,配套该书:Digital Image Processing Using MATLAB, 2nd edition
更多信息访问:
http://www.imageprocessingplace.com/DIPUM_Toolbox_2/DIPUM_Toolbox_2.htm
PS:如果有条件还是支持正版吧。
代码片段和文件信息
function f = adpmedian(g Smax)
%ADPMEDIAN Perform adaptive median filtering.
% F = ADPMEDIAN(G SMAX) performs adaptive median filtering of
% image G. The median filter starts at size 3-by-3 and iterates
% up to size SMAX-by-SMAX. SMAX must be an odd integer greater
% than 1.
% Copyright 2002-2009 R. C. Gonzalez R. E. Woods and S. L. Eddins
% From the book Digital Image Processing Using MATLAB 2nd ed.
% Gatesmark Publishing 2009.
%
% Book web site: http://www.imageprocessingplace.com
% Publisher web site: http://www.gatesmark.com/DIPUM2e.htm
% SMAX must be an odd positive integer greater than 1.
if (Smax <= 1) || (Smax/2 == round(Smax/2)) || (Smax ~= round(Smax))
error(‘SMAX must be an odd integer > 1.‘)
end
% Initial setup.
f = g;
f(:) = 0;
alreadyProcessed = false(size(g));
% Begin filtering.
for k = 3:2:Smax
zmin = ordfilt2(g 1 ones(k k) ‘symmetric‘);
zmax = ordfilt2(g k * k ones(k k) ‘symmetric‘);
zmed = medfilt2(g [k k] ‘symmetric‘);
processUsingLevelB = (zmed > zmin) & (zmax > zmed) & ...
~alreadyProcessed;
zB = (g > zmin) & (zmax > g);
outputZxy = processUsingLevelB & zB;
outputZmed = processUsingLevelB & ~zB;
f(outputZxy) = g(outputZxy);
f(outputZmed) = zmed(outputZmed);
alreadyProcessed = alreadyProcessed | processUsingLevelB;
if all(alreadyProcessed(:))
break;
end
end
% Output zmed for any remaining unprocessed pixels. Note that this
% zmed was computed using a window of size Smax-by-Smax which is
% the final value of k in the loop.
f(~alreadyProcessed) = zmed(~alreadyProcessed);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-07 10:38 dipum_toolbox_2.0.1\
文件 3202 2014-03-04 19:10 dipum_toolbox_2.0.1\0_Read_Me_First.txt
文件 1667 2014-03-04 19:10 dipum_toolbox_2.0.1\adpmedian.m
文件 815 2014-03-04 19:10 dipum_toolbox_2.0.1\aggfcn.m
文件 1872 2014-03-04 19:10 dipum_toolbox_2.0.1\approxfcn.m
文件 760 2014-03-04 19:10 dipum_toolbox_2.0.1\average.m
文件 3734 2014-03-04 19:10 dipum_toolbox_2.0.1\bandfilter.m
文件 3041 2014-03-04 19:10 dipum_toolbox_2.0.1\bayesgauss.m
文件 832 2014-03-04 19:10 dipum_toolbox_2.0.1\bellmf.m
文件 3081 2014-03-04 19:10 dipum_toolbox_2.0.1\bound2eight.m
文件 2590 2014-03-04 19:10 dipum_toolbox_2.0.1\bound2four.m
文件 1892 2014-03-04 19:10 dipum_toolbox_2.0.1\bound2im.m
文件 2835 2014-03-04 19:10 dipum_toolbox_2.0.1\boundarydir.m
文件 3349 2014-03-04 19:10 dipum_toolbox_2.0.1\bsubsamp.m
文件 541 2014-03-04 19:10 dipum_toolbox_2.0.1\changeclass.m
文件 6152 2014-03-04 19:10 dipum_toolbox_2.0.1\cnotch.m
文件 2461 2014-03-04 19:10 dipum_toolbox_2.0.1\colorgrad.m
文件 2531 2014-03-04 19:10 dipum_toolbox_2.0.1\colorseg.m
文件 1283 2014-03-04 19:10 dipum_toolbox_2.0.1\compare.m
文件 1147 2014-03-04 19:10 dipum_toolbox_2.0.1\connectpoly.m
文件 8725 2014-03-04 19:10 dipum_toolbox_2.0.1\Contents.m
文件 906 2014-03-04 19:10 dipum_toolbox_2.0.1\conwaylaws.m
文件 1334 2014-03-04 19:10 dipum_toolbox_2.0.1\cornerprocess.m
文件 1228 2014-03-04 19:10 dipum_toolbox_2.0.1\covmatrix.m
文件 1942 2014-03-04 19:10 dipum_toolbox_2.0.1\cv2tifs.m
文件 930 2014-03-04 19:10 dipum_toolbox_2.0.1\defuzzify.m
文件 1697 2014-03-04 19:10 dipum_toolbox_2.0.1\dftfilt.m
文件 880 2014-03-04 19:10 dipum_toolbox_2.0.1\dftuv.m
文件 6729 2014-03-04 19:10 dipum_toolbox_2.0.1\diameter.m
文件 1628 2014-03-04 19:10 dipum_toolbox_2.0.1\endpoints.m
文件 8879 2014-03-04 19:10 dipum_toolbox_2.0.1\fchcode.m
............此处省略110个文件信息
- 上一篇:matlab图像处理算法
- 下一篇:minFunc.zip
相关资源
- MATLAB_FEM_ToolBox_examples
- SHINEtoolbox
- Spacecraft Control Toolbox.zip
- robotics toolbox 8.0工具箱
- 国外一大牛Petercorke 写得机器视觉工具
- EWT 经验小波分解 matlab工具箱 toolbox
-
FMI Toolbox for Matlab/Simuli
nk的安装和使 - intlab_v6.0工具箱+其使用说明Introducti
- matlab 极几何工具箱
- Matlab Toolbox Signal Processing
- RBMCDAbox - Matlab Toolbox of Rao-Blackwellize
- 谢菲尔德(Sheffield)遗传算法工具箱
- MATLAB 模糊逻辑工具箱Fuzzy Logic Toolbo
- MATLAB的SVM安装包drtoolbox_libsvm-3.17
- MATLAB聚类分析工具箱
- matlab robotics toolbox
- MATLAB Text Analytics Toolbox官方教程
- Zemax DDE toolbox for Matlab
- CCToolbox matlab
- matlab statsstatistics工具箱
- Matlab Neural Network Toolbox documentation.pd
- LabelMeToolbox-master
- matlab statistics learning toolbox
- NURBS Toolbox for Matlab
- ransac 的详细介绍以及matlabtoolbox的使用
- Matlab高阶统计量工具箱(高阶谱)H
- matlab robotics toolboox_10.2教程
- matlab toolbox for pca
- MapleToolboxforMATLAB-MapleToolboxforMATLAB操作
- MapleToolboxforMATLAB-Maple Toolbox for MATLAB演
评论
共有 条评论