当前位置:网站首页>Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
2022-07-02 15:47:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
wavedec2 function :
1. function : Implementation image ( That is, two-dimensional signal ) Multilayer decomposition of .
Multi-storey , That is, multi-scale .
2. Format :[c,s]=wavedec2(X,N,’wname’)
[c,s]=wavedec2(X,N,Lo_D,Hi_D)( I won't discuss it )
3. Parameter description : To image X use wname Wavelet basis function implementation N Layer decomposition ,
The wavelet basis function here should be selected according to the actual situation , Specific options can be found . Output is c,s.
c Is the decomposition coefficient of each layer ,s Is the decomposition coefficient length of each layer , That's the size .
4.c Structure :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)]
so ,c It's a row vector , namely :1*(size(X)),(e.g,X=256*256,then c The size is :1*(256*256)=1*65536)
A(N) On behalf of the N Layer low frequency coefficient ,H(N)|V(N)|D(N) On behalf of the N Layer high frequency coefficient , They are horizontal , vertical , Diagonal high frequency , And so on , To H(1)|V(1)|D(1).
s Structure : Is the length of the decomposition coefficient of each layer , The first line is A(N) The length of , The second line is H(N)|V(N)|D(N)| The length of , The third line is
H(N-1)|V(N-1)|D(N-1) The length of , The penultimate line is H(1)|V(1)|D(1) length , The last line is X The length of ( size )
another :MATLAB HELP It's very clear , ha-ha .
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.
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/147714.html Link to the original text :https://javaforall.cn
边栏推荐
- 6096. 咒语和药水的成功对数
- 2278. Percentage of letters in string
- 6095. Strong password checker II
- 2303. Calculate the total tax payable
- 自定义异常
- [leetcode] 577 reverse word III in string
- 6096. Success logarithm of spells and potions
- Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
- 动态规划入门一,队列的bfs(70.121.279.200)
- [leetcode] 1020 number of enclaves
猜你喜欢

爱可可AI前沿推介(7.2)

《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量

已知兩種遍曆序列構造二叉樹

Basic knowledge of cryptography
![[leetcode] 417 - Pacific Atlantic current problem](/img/30/c541bc1e81eb4e348ca11116a05e84.png)
[leetcode] 417 - Pacific Atlantic current problem
![[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)](/img/cf/38e4035c3b318814672f21c8a42618.jpg)
[development environment] install the Chinese language pack for the 2013 version of visual studio community (install test agents 2013 | install visual studio 2013 simplified Chinese)

【LeetCode】1905-统计子岛屿

Aiko ai Frontier promotion (7.2)

PostgresSQL 流复制 主备切换 主库无读写宕机场景

Party History Documentary theme public welfare digital cultural and creative products officially launched
随机推荐
提前批院校名称
【LeetCode】1140-石子游戏II
动态规划入门二(5.647.62)
[leetcode] 1020 number of enclaves
睿智的目标检测23——Pytorch搭建SSD目标检测平台
6091. Divide the array so that the maximum difference is K
Solve the problem of base64encoder error
Pyinstaller打包exe附带图片的方法
ssh/scp 使不提示 All activities are monitored and reported.
Make p12 certificate [easy to understand]
/bin/ld: 找不到 -llz4
【LeetCode】283-移动零
PHP static members
密码学基础知识
蚂蚁集团大规模图计算系统TuGraph通过国家级评测
目标检测—利用labelimg制作自己的深度学习目标检测数据集
Aike AI frontier promotion (7.2)
6091. 划分数组使最大差为 K
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
Digital collection system development (program development) - Digital Collection 3D modeling economic model system development source code