资源简介
包含matlab图像处理小波变换所需的m文件和个人的部分注释。

代码片段和文件信息
function w = wave2gray(c s scale border)
%WAVE2GRAY Display wavelet decomposition coefficients.
% W = WAVE2GRAY(C S SCALE BORDER) displays and returns a
% wavelet coefficient image.
%
% EXAMPLES:
% wave2gray(c s); Display w/defaults.
% foo = wave2gray(c s); Display and return.
% foo = wave2gray(c s 4); Magnify the details.
% foo = wave2gray(c s -4); Magnify absolute values.
% foo = wave2gray(c s 1 ‘append‘); Keep border values.
%
% INPUTS/OUTPUTS:
% [C S] is a wavelet decomposition vector and bookkeeping
% matrix.
%
% SCALE Detail coefficient scaling
% ----------------------------------------------------------
% 0 or 1 Maximum range (default)
% 23... Magnify default by the scale factor
% -1 -2... Magnify absolute values by abs(scale)
%
% BORDER Border between wavelet decompositions
% ----------------------------------------------------------
% ‘absorb‘ Border replaces image (default)
% ‘append‘ Border increases width of image
%
% Image W: ------- ------ ------------ -------------------
% | | | |
% | a(n) | h(n) | |
% | | | |
% ------- ------ h(n-1) |
% | | | |
% | v(n) | d(n) | | h(n-2)
% | | | |
% ------- ------ ------------
% | | |
% | v(n-1) | d(n-1) |
% | | |
% -------------- ------------ -------------------
% | |
% | v(n-2) | d(n-2)
% | |
%
% Here n denotes the decomposition step scale and a h v d are
% approximation horizontal vertical and diagonal detail
% coefficients respectively.
% Copyright 2002-2004 R. C. Gonzalez R. E. Woods & S. L. Eddins
% Digital Image Processing Using MATLAB Prentice-Hall 2004
% $Revision: 1.6 $ $Date: 2003/11/21 15:01:44 $
% Check input arguments for reasonableness.
error(nargchk(2 4 nargin));
if (ndims(c) ~= 2) | (size(c 1) ~= 1)
error(‘C must be a row vector.‘); end
if (ndims(s) ~= 2) | ~isreal(s) | ~isnumeric(s) | (size(s2) ~= 2)
error(‘S must be a real numeric two-column array.‘); end
elements = prod(s 2);
if (length(c) < elements(end)) | ...
~(elements(1) + 3 * sum(elements(2:end - 1)) >= elements(end))
error([‘[C S] must be a standard wavelet ‘ ...
‘decomposition structure.‘]);
end
if (nargin > 2) & (~isreal(scale) | ~isnumeric(scale))
error(‘SCALE must be a real numeric scalar.‘);
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-02-02 21:07 小波变换m文件注释\
文件 5335 2014-02-19 17:08 小波变换m文件注释\wave2gray.m
文件 5102 2014-02-19 23:36 小波变换m文件注释\waveback.m
文件 940 2014-01-13 10:43 小波变换m文件注释\wavecopy.m
文件 1089 2014-01-13 10:43 小波变换m文件注释\wavecut.m
文件 4934 2014-08-10 14:47 小波变换m文件注释\wavefast.asv
文件 4934 2014-08-10 14:48 小波变换m文件注释\wavefast.m
文件 4889 2014-01-13 10:43 小波变换m文件注释\wavefilter.m
文件 1061 2014-01-13 10:43 小波变换m文件注释\wavepaste.m
文件 3842 2014-02-20 21:25 小波变换m文件注释\wavework.m
文件 696 2014-01-13 10:43 小波变换m文件注释\wavezero.m
- 上一篇:基于微博关注的明星社团划分模型
- 下一篇:捷联惯导仿真程序-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
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
- matlab正弦信号发生器的设计
- matlab程序用Hopfield网络解决TSP
评论
共有 条评论