日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

matlab中wavedec2函数,[转载]小波滤波器–wavedec2函数(MathWorks)

發布時間:2023/12/19 综合教程 22 生活家
生活随笔 收集整理的這篇文章主要介紹了 matlab中wavedec2函数,[转载]小波滤波器–wavedec2函数(MathWorks) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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二維周期小波反變換

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

總結

以上是生活随笔為你收集整理的matlab中wavedec2函数,[转载]小波滤波器–wavedec2函数(MathWorks)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。