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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • hashmap和hashtable和hashset的区别_反映和反应的区别

    hashmap和hashtable和hashset的区别_反映和反应的区别HashMap与Hashtable的区别是面试中经常遇到的一个问题。这个问题看似简单,但如果深究进去,也能了解到不少知识。本文对两者从来源,特性,算法等多个方面进行对比总结。力争多角度,全方位的展示二者的不同,做到此问题的终结版。作者Hashtable的作者:HashMap的作者:HashMap的作者比Hashtable的作者多了著名顶顶的并发大神DougLea。他写了util…

    2022年9月17日
    0
  • ajax实例教程_creo实例教程

    ajax实例教程_creo实例教程一、什么是Ajax?Ajax=Javascript和xml。Ajax是一种创建快速动态网页的技术。通过在后台与服务器进行少量的数据交换,Ajax可以使网页进行异步刷新,这意味着可以在不加载整个页面的情况下局部更新网页的某个部分。这么好的友好后台交互方式使Ajax技术迅速的流行起来。传统的页面如果不使用Ajax需要重新加载整个页面来实现更新内容。二、Ajax的语法步骤。

    2022年8月16日
    3
  • linux目录结构详解_linux系统文件在哪个目录

    linux目录结构详解_linux系统文件在哪个目录前言平常linux系统用的也不少,那么linux下的每个目录都是用来干什么的,小伙伴们有仔细研究过吗?让我们来了解下吧Linux系统目录结构登录系统后,在当前命令窗口下输入命令:[root@

    2022年7月30日
    3
  • Chrome for Android在Chromium代码库中的提交patch「建议收藏」

    Chrome for Android在Chromium代码库中的提交patch

    2022年1月29日
    65
  • LAMP架构简介与概述 及服务安装

    LAMP架构简介与概述 及服务安装1、LAMP平台概述(1)LAMP平台概述LAMP架构是目前成熟的企业网站应用模式之一,指的是协同工作的一整台系统和相关软件,能够提供动态web站点服务及其应用开发环境LAMP是一个缩写词,具体包括Linux操作系统,Apache网站服务器,MySQL数据库服务器,PHP(或perl,Python)网页编程语言(2)构建LAMP平台顺序在构建LAMP平台时,各组件的安装顺序依次为Linux,Apache,MySQL,PHP其中Apache和MySQL的安装并没有严格的顺序要求,而PH

    2022年10月16日
    0
  • 小米解bl锁跳过168小时_xiaomi redmi 红米秒解BL工具分享支持小米红米机型秒解BL跳过168小时[通俗易懂]

    小米解bl锁跳过168小时_xiaomi redmi 红米秒解BL工具分享支持小米红米机型秒解BL跳过168小时[通俗易懂]目前小米的新机,官方风控都默认绑定7天也就是168小时才能解锁BL,部分账号需要绑定15天才能满足条件,导致很多爱玩机的小伙伴被拒门外。并不是所有人都愿意等待官方解锁时候,而跳过168小时解锁,也成为了很多小伙伴希望的事情。本工具来自ROM乐园技术大神分享,经测试部分版本可秒解BL,无需等待,但并不是百分百才能成功。如果你官方工具解锁失败,不妨试试这个解锁工具,建议更换1个小米账号,再使用此工具解锁BL看看————————————————unlockBootloaderxiaomi…

    2022年6月6日
    215

发表回复

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

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