当前位置:网站首页>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
边栏推荐
- Wechat Alipay account system and payment interface business process
- 【LeetCode】417-太平洋大西洋水流问题
- Moveit 避障路径规划 demo
- 【LeetCode】189-轮转数组
- 2022 年辽宁省大学生数学建模A、B、C题(相关论文及模型程序代码网盘下载)
- [leetcode] 167 - sum of two numbers II - enter an ordered array
- Why does the system convert the temp environment variable to a short file name?
- fastjson List转JSONArray以及JSONArray转List「建议收藏」
- Leetcode skimming - remove duplicate letters 316 medium
- 将点云坐标转换成世界坐标的demo
猜你喜欢

PTA ladder game exercise set l2-001 inter city emergency rescue
![[leetcode] 1254 - count the number of closed Islands](/img/84/f888ae0e164951cd9623fb3bf4a984.png)
[leetcode] 1254 - count the number of closed Islands

2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)

Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network

Custom exception

全是精华的模电专题复习资料:基本放大电路知识点

动态规划入门一,队列的bfs(70.121.279.200)

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

树-二叉搜索树

Leetcode skimming - remove duplicate letters 316 medium
随机推荐
[leetcode] 1905 statistics sub Island
【idea】推荐一个idea翻译插件:Translation「建议收藏」
2278. 字母在字符串中的百分比
lseek 出错
Xpt2046 four wire resistive touch screen
使用 percona 工具给 MySQL 表加字段中断后该如何操作
The task cannot be submitted after the installation of flick is completed
/bin/ld: 找不到 -lssl
Deux séquences ergodiques connues pour construire des arbres binaires
Demo of converting point cloud coordinates to world coordinates
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points
XPT2046 四线电阻式触摸屏
【Leetcode】167-两数之和II -输入有序数组
Soul torture, what is AQS???
fastjson List转JSONArray以及JSONArray转List「建议收藏」
2022 college students in Liaoning Province mathematical modeling a, B, C questions (related papers and model program code online disk download)
Add an empty column to spark dataframe - add an empty column to spark dataframe
Strings and arrays
提前批院校名称