matlab中wavedec2函数,小波滤波器–wavedec2函数[通俗易懂]

matlab中wavedec2函数,小波滤波器–wavedec2函数[通俗易懂]wavedec2函数:1.功能:实现图像(即二维信号)的多层分解.多层,即多尺度.2.格式:[c,s]=wavedec2(X,N,’wname’)[c,s]=wavedec2(X,N,Lo_D,Hi_D)(我不讨论它)3.参数说明:对图像X用wname小波基函数实现N层分解,这里的小波基函数应该根据实际情况选择,具体办法可以:db1、db2、……db45、haar.输出为c,s.c为各层分…

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

wavedec2函数:

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

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

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

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

这里的小波基函数应该根据实际情况选择,具体办法可以:db1、db2、……db45、haar.

输出为c,s.c为各层分解系数,s为各层分解系数长度,也就是大小.

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)]

备注:c是一个行向量,size为:1*(size(X)),(e.g,X=256*256,then

c大小为:1*(256*256)=1*65536

A(N)代表第N层低频系数,

H(N)|V(N)|D(N)代表第N层高频系数,分别是水平,垂直,对角高频,

……

直至H(1)|V(1)|D(1).

5.s的结构:是储存各层分解系数长度

即第一行是A(N)的长度,

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

第三行是H(N-1)|V(N-1)|D(N-1)的长度,

……

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

最后一行是X的长度(大小)

备注:size为(N+2)*2

wavedec2

Multilevel 2-D wavelet decomposition Syntax [C,S] =

wavedec2(X,N,’wname’)

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

Description wavedec2 is a two-dimensional wavelet analysis

function.

[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).

Outputs are the decomposition vector C and the corresponding

bookkeeping matrix S. N must be a strictly positive integer (see

wmaxlev for more information).

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.

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.

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)

Examples

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

% Load original image.

load woman;

% X contains the loaded image.

% Perform decomposition at level 2

% of X using db1.

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

% Decomposition structure organization.

sizex = size(X)

sizex =

256

256

sizec = size(c)

sizec =

1

65536

val_s =

s

val_s =

64 64

64 64

128

128

256 256

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.

二维小波变换的函数

————————————————-

函数名 函数功能

—————————————————

dwt2 二维离散小波变换-单尺度

wavedec2 二维离散小波分解-多尺度 idwt2 二维离散小波反变换-单尺度

waverec2 二维信号的多层小波重构-多尺度

wrcoef2 由多层小波分解重构某一层的分解信号

upcoef2 由多层小波分解重构近似分量或细节分量

detcoef2 提取二维信号小波分解的细节分量

appcoef2 提取二维信号小波分解的近似分量 upwlev2 二维小波分解的单层重构

dwtpet2 二维周期小波变换

idwtper2 二维周期小波反变换

————————————————————-

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

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/148624.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Vue 父组件向子组件传递动态参数,子组件如何实时更新[通俗易懂]

    项目问题介绍:父组件中填入各种查询条件,点击查询按钮查出符合条件的数据。其中,数据列表是引入的子组件。第一次加载的时候,子组件数据正常显示,再次查询的时候子组件怎么实现实时更新呢?解决办法:子组件watch中(监听)父组件数据的变化以自己的项目为例:父组件:这是父组件中如何引用的子组件。testParams是我需要传过去的参数对象。参数名是params。子组…

    2022年4月13日
    257
  • cookie和session「建议收藏」

    一、cookie和session的介绍cookie不属于http协议范围,由于http协议无法保持状态,但实际情况,我们却又需要“保持状态”,因此cookie就是在这样一个场景下诞生。cookie

    2022年3月29日
    63
  • 微信JS-SDK实现自定义分享功能,分享给朋友,分享到朋友圈「建议收藏」

    微信JS-SDK实现自定义分享功能,分享给朋友,分享到朋友圈「建议收藏」微信JS-SDK实现自定义分享功能,分享给朋友,分享到朋友圈导语:微信分享在手机右上角的三个点一键分享就ok了,那么对于分享到朋友圈,分享给朋友是怎么实现的呢?对于那种活动分享送流量是怎么定位分享者的呢?而想要将文章发送给朋友又是怎么获取到的朋友列表的呢?微信JS-SDK是微信公众平台面向网页开发者提供的基于微信内的网页开发工具包。JSSDK使用步骤1、绑定域

    2022年5月13日
    38
  • 网站防止攻击

    网站防止攻击1、什么是XSSXSS又叫CSS(CrossSiteScript),跨站脚本攻击。它指的是恶意攻击者往Web页面里插入恶意html代码,当用户浏览该页之时,嵌入其中Web里面的html代码会被执行,从而达到恶意用户的特殊目的。XSS属于被动式的攻击,因为其被动且不好利用,所以许多人常呼略其危害性。跨站脚本攻击最大的魅力是通过HTML注入劫持用户的浏览器,任意构造用户当前浏览的HTM

    2022年7月20日
    19
  • 浅入浅出LuaJIT[通俗易懂]

    浅入浅出LuaJIT[通俗易懂]JIT什么是JITJIT=JustInTime即时编译,是动态编译的一种形式,是一种优化虚拟机运行的技术。程序运行通常有两种方式,一种是静态编译,一种是动态解释,即时编译混合了这二者。Java和.Net/mono中都使用了这种技术。然而IOS中禁止使用(不是针对JIT,而是所有的动态编译都不支持)!为什么要使用JIT解释执行:效率低。代码暴露。静态编译:不够灵活,无法热更新。

    2022年10月6日
    2
  • java静态变量,静态方法的理解

    java静态变量,静态方法的理解

    2021年7月16日
    72

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

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