wavelets

조회 수: 1 (최근 30일)
aavula
aavula 2011년 9월 9일
difference b/w the functions dwt2 and wavedec2

채택된 답변

Wayne King
Wayne King 2011년 9월 9일
Hi Aavula, dwt2 gives you the 2D (separable) discrete wavelet transform at one level.
wavedec2 gives you the 2D (separable) discrete wavelet transform at a number of levels if you wish (provided as an input argument). wavedec2 uses dwt2 to iterate on the LL component.
Hope that helps,
Wayne
  댓글 수: 1
aavula
aavula 2011년 9월 10일
thanks...how to get the coefficients(approx and detail)separately

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Wayne King
Wayne King 2011년 9월 10일
From wavedec2 you obtain a C and S vector. You can then use detcoef2 and appcoef2 to extract the detail and approximation coefficients at a given level.
For example:
image = randn(16,16);
[C,S] = wavedec2(image,3,'db2');
% get level 2 detail coefficients
[H,V,D] = detcoef2('all',C,S,2);
% get level 2 approx. coefficients
A = appcoef2(C,S,'db2',2);
Wayne

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by