need help in dwt2 ....

조회 수: 3 (최근 30일)
Nizar Ahmad
Nizar Ahmad 2011년 9월 30일
I had written this code to perform dwt2 on my image:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc;
clear all;
X=double(imread('Lena.bmp'));
X=fix(X);
[LL1,HL1,LH1,HH1]=dwt2(X,'bior1.1');
[LL2,HL2,LH2,HH2]=dwt2(LL1,'bior1.1');
[LL3,HL3,LH3,HH3]=dwt2(LL2,'bior1.1');
Y=[[[LL3,HL3;LH3,HH3],HL2;LH2,HH2],HL1;LH1,HH1];
Y=fix(Y);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
but it doesn't worked with me when I tried filter ('bior4.4') which I needed in my work help me plz...and thank you in advance..
note:
the error appears in the following lines:
[LL1,HL1,LH1,HH1]=dwt2(X,'bior4.4');
and
Y=[[[LL3,HL3;LH3,HH3],HL2;LH2,HH2],HL1;LH1,HH1];
  댓글 수: 1
Nizar Ahmad
Nizar Ahmad 2011년 10월 2일
thank you so much...I explain my need here:
I need to dwt2 in three levels and I am restricted to work on LLn
....any comments will be appreciated so much and thank you again.

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

채택된 답변

Wayne King
Wayne King 2011년 9월 30일
Hi, I think you are better off to use wavedec2 instead of iterating on the LL output with dwt2(). wavedec2() does that anyway.
load woman;
[C,S] = wavedec2(X,3,'bior4.4');
Then if you want to extract the details, detcoef2(), and appcoef2()
Or waverec2() to reconstruct projections.
If you really have some reason for iterating with dwt2(), please show the error you get.
Wayne

추가 답변 (0개)

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by