matlab中wavedec2,说说wavedec2函数【图】

matlab中wavedec2,说说wavedec2函数【图】说说wavedec2函数【图】08-10栏目:技术TAG:wavedec2wavedec2http://maiqiuzhizhu.blog.sohu.com/110325150.htmlcopyrightjhua.orgwavedec2函数:copyrightjhua.org1.功能:实现图像(即二维信号)的多层分解.https://www.jhua.org多层,即多尺度.www.jhua…

大家好,又见面了,我是你们的朋友全栈君。

说说wavedec2函数【图】

08-10栏目:技术

TAG:wavedec2

wavedec2

http://maiqiuzhizhu.blog.sohu.com/110325150.html copyright jhua.org

wavedec2函数:

copyright jhua.org

1.功能:实现图像(即二维信号)的多层分解.

https://www.jhua.org

多层,即多尺度. www.jhua.org

2.格式:[c,s]=wavedec2(X,N,’wname’) www.jhua.org

[c,s]=wavedec2(X,N,Lo_D,Hi_D)(我不讨论它) jhua.org

3.参数说明:对图像X用wname小波基函数实现N层分解,

copyright www.jhua.org

这里的小波基函数应该根据实际情况选择,具体选择办法可以搜之.输出为c,s.

copyright jhua.org

c为各层分解系数,s为各层分解系数长度,也就是大小. www.jhua.org

4.c的结构:c=[A(N)|H(N)|V(N)|D(N)|H(N-1)|V(N-1)|D(N-1)|H(N-2)|V(N-2)|D(N-2)|…|H(1)|V(1)|D(1)]

copyright www.jhua.org

可见,c是一个行向量,即:1*(size(X)),(e.g,X=256*256,then c大小为:1*(256*256)=1*65536) www.jhua.org

A(N)代表第N层低频系数,H(N)|V(N)|D(N)代表第N层高频系数,分别是水平,垂直,对角高频,以此类推,到H(1)|V(1)|D(1). https://www.jhua.org

s的结构:是储存各层分解系数长度的,即第一行是A(N)的长度,第二行是H(N)|V(N)|D(N)|的长度,第三行是 www.jhua.org

H(N-1)|V(N-1)|D(N-1)的长度,倒数第二行是H(1)|V(1)|D(1)长度,最后一行是X的长度(大小)

copyright jhua.org

那么S有什么用呢? copyright www.jhua.org

s的结构:是储存各层分解系数长度的,即第一行是A(N)的长度(其实是A(N)的原矩阵的行数和列数),

www.jhua.org

第二行是H(N)|V(N)|D(N)|的长度,

www.jhua.org

第三行是

www.jhua.org

H(N-1)|V(N-1)|D(N-1)的长度, copyright jhua.org

倒数第二行是H(1)|V(1)|D(1)长度, www.jhua.org

最后一行是X的长度(大小) copyright www.jhua.org

fbec3320fdcb6ed00d7debad08b2b7c7.png

jhua.org

从上图可知道:cAn的长度就是32*32,cH1、cV1、cD1的长度都是256*256。 https://www.jhua.org

到此为止,你可能要问C的输出为什么是行向量?

jhua.org

1、没有那一种语言能够动态输出参数的个数,更何况C语言写的Matlab

www.jhua.org

2、各级详细系数矩阵的大小(size)不一样,所以不能组合成一个大的矩阵输出。 jhua.org

因此,把结果作为行向量输出是最好,也是唯一的选择。

copyright jhua.org

另:MATLAB HELP 里面说得非常明白了,呵呵. www.jhua.org

wavedec2 copyright jhua.org

Multilevel 2-D wavelet decomposition Syntax [C,S] = wavedec2(X,N,’wname’)

https://www.jhua.org

[C,S] = wavedec2(X,N,Lo_D,Hi_D)

www.jhua.org

Description wavedec2 is a two-dimensional wavelet analysis function. copyright jhua.org

[C,S] = wavedec2(X,N,’wname’) returns the wavelet decomposition of the matrix X at level N, using the wavelet named in string ‘wname’ (see wfilters for more information). copyright www.jhua.org

Outputs are the decomposition vector C and the corresponding bookkeeping matrix S. N must be a strictly positive integer (see wmaxlev for more information).

copyright www.jhua.org

Instead of giving the wavelet name, you can give the filters. For [C,S] = wavedec2(X,N,Lo_D,Hi_D), Lo_D is the decomposition low-pass filter and Hi_D is the decomposition high-pass filter. www.jhua.org

Vector C is organized as C = [ A(N) | H(N) | V(N) | D(N) | … H(N-1) | V(N-1) | D(N-1) | … | H(1) | V(1) | D(1) ]. where A, H, V, D, are row vectors such that A = APProximation coefficients H = horizontal detail coefficients V = vertical detail coefficients

D = diagonal detail coefficients Each vector is the vector column-wise storage of a matrix.

https://www.jhua.org

Matrix S is such that S(1,:) = size of approximation coefficients(N) S(i,:) = size of detail coefficients(N-i+2) for i = 2, …N+1 and S(N+2,:) = size(X)  copyright jhua.org

examples% The current extension mode is zero-padding (see dwtmode). jhua.org

% Load original image.  jhua.org

load woman;  jhua.org

% X contains the loaded image. https://www.jhua.org

% Perform decomposition at level 2  jhua.org

% of X using db1.  copyright www.jhua.org

[c,s] = wavedec2(X,2,’db1′);

https://www.jhua.org

% Decomposition structure organization.

copyright jhua.org

sizex = size(X)

www.jhua.org

sizex =

copyright jhua.org

256  256

jhua.org

sizec = size(c) copyright www.jhua.org

sizec =

copyright jhua.org

1  65536 www.jhua.org

val_s = s

jhua.org

val_s =

copyright jhua.org

64  64  www.jhua.org

64  64

copyright jhua.org

128  128  www.jhua.org

256  256 jhua.org

Algorithm For images, an algorithm similar to the one-dimensional case is possible for two-dimensional wavelets and scaling functions obtained from one-dimensional ones by tensor product. This kind of two-dimensional DWT leads to a decomposition of approximation

coefficients at level j in four components: the approximation at level j+1, and the details in three orientations (horizontal, vertical, and diagonal). The following chart describes the basic decomposition step for images:  So, for J=2, the two-dimensional

wavelet tree has the form  See Alsodwt, waveinfo, waverec2, wfilters, wmaxlev referencesDaubechies, I. (1992), Ten lectures on wavelets, CBMS-NSF conference series in applied mathematics. SIAM Ed. Mallat, S. (1989), “A theory for multiresolution signal decomposition:

the wavelet representation,” IEEE Pattern Anal. and Machine Intell., vol. 11, no. 7, pp. 674-693. Meyer, Y. (1990), Ondelettes et opérateurs, Tome 1, Hermann Ed. (English translation: Wavelets and operators, Cambridge Univ. Press. 1993.

copyright jhua.org

相关阅读

C语言:lseek函数—–改变文件偏移量 copyright jhua.org

1.文件偏移

通常调用read或write每读写一个文件,就会改变文件的读写位置。在linux中同样可以使用lseek函数来修改文件偏移量,即读

https://www.jhua.org

oracle中的greatest 函数和 least函数 jhua.org

greatest (max(one),max(two),max(three))求多列的最大值,oracle中的greatest 函数

已知表TB的数据如下 SQL> select * from tb;  jhua.org

Python product函数介绍

copyright www.jhua.org

Python product函数介绍

​product(A,B)函数,返回A和B中的元素组成的笛卡尔积的元组,具体见如下代码:import itertools

for item copyright jhua.org

关于java中Pattern.compile函数的相关解释 jhua.org

Pattern.compile函数:Pattern Pattern.compile(String regex, int flag)flag的取值范围如下:Pattern.CANON_EQ,当且仅当两个字符的”

copyright www.jhua.org

析构函数

https://www.jhua.org

析构函数:在类中声明的一种成员函数①析构函数与类名同名②析构函数无参(不可重载)③表示:

~类名()

{

析构函数体;

}

copyright jhua.org

阅读量:100000+

上一篇:Sobel算子的理解(

推荐量:7089

下一篇:计算2的n次方(多

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/147964.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)
blank

相关推荐

  • pytest skipif_白盒测试用例

    pytest skipif_白盒测试用例前言pytest.mark.skip可以标记无法在某些平台上运行的测试功能,或者您希望失败的测试功能Skip和xfail:处理那些不会成功的测试用例你可以对那些在某些特定平台上不能运行的测试用

  • 你不知道的JavaScript(上中下三册) 电子版高清PDF — 百度云下载

    你不知道的JavaScript(上中下三册) 电子版高清PDF — 百度云下载链接:https://pan.baidu.com/s/1pfviFDVDg7EpF35HQWEc6Q密码:vaft 

  • setscale方法的用法_【java】BigDecimal.setScale用法总结

    setscale方法的用法_【java】BigDecimal.setScale用法总结====================写法========================1.BigDecimalnum1=newBigDecimal(2.225667);//这种写法不允许,会造成精度损失2.BigDecimalnum2=newBigDecimal(2);//这种写法是可以的3.BigDecimalnum=newBigDecimal(“2.225667″…

    2022年10月20日
  • verifycode.php,verifycode.php

    verifycode.php,verifycode.php##生成验证码文件session_start();header(“Content-type:image/png”);##生成验证码图片$str=”1,2,3,4,5,6,7,8,9″;##要显示的字符,可自己进行增删$list=explode(“,”,$str);$cmax=count($list)-1;$verifyCode=”;for($i=0;$i<…

  • 最强PostMan使用教程(1)

    最强PostMan使用教程(1)

    2021年10月12日
  • Android浏览器插件开发[通俗易懂]

    Android浏览器插件开发[通俗易懂]最近做android浏览器插件学到一些东西和大家分享:需要了解的有以下几个方面的知识:1.插件是什么2.android浏览器怎样加载插件和创建实例3浏览器插件和脚本语言的交互4插件内部的数据流一浏览器插件介绍:  1.1概述浏览插件本质是一个功能模块,是浏览器功能的一种扩充。其载体是dll或则so文件。它依附浏览器完成某一特定的功能。插件需要实现浏览器规定的一些函数这些函数叫着NPAPI.正是插件实现了这些函数才可以和浏览器交互。同时浏览器也为插件提供一些函数。在android平台下还有一些专有的函数

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号