Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to show image of a wavelet transformed image?

Status
Not open for further replies.

tojeena

Member level 3
Member level 3
Joined
Jan 24, 2013
Messages
55
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,570
imdata = imread('ngc6543a.jpg');

[C,S] = wavedec2(imdata,3,'bior3.5');

y=imshow( ? ).

How to display the image?
 

Hi;
In recent years i have do something like below;
In this code i use dwt2 but as i know wavedec2 gives similiar output matrix.
You can approximate form this example.
I think it can help.

Code:
%wavelet decomposition 
%5 level decomposition using db1 (haar) 
%scale level 1 
[LL1,HL1,LH1,HH1]=dwt2(n_im,'haar'); 
%LL approximation HL horizontal |a_LL |h_HL| 
%LH vertical HH diagonal        |-----|----| 
%                               |v_LH |d_HH| 
%scale level 2 
[LL2,HL2,LH2,HH2]=dwt2(LL1,'haar'); 
%scale level 3 
[LL3,HL3,LH3,HH3]=dwt2(LL2,'haar'); 
%scale level 4 
[LL4,HL4,LH4,HH4]=dwt2(LL3,'haar'); 
%scale level 5 
[LL5,HL5,LH5,HH5]=dwt2(LL4,'haar'); 
%to see the whole wavelet decomposition images 
figure 
colormap(gray) 
imagesc([[[[[LL5 HL5;LH5 HH5] HL4;LH4 HH4] HL3;LH3 HH3] HL2;LH2 HH2] HL1;LH1 HH1])
 
How to get the localized image from this.Ie. one DC component and 63 AC components. ?
 

Hi;
As i now DC component is called upper left hand side decomposed image (low pass filtered image), and the other components are AC components.
At this point you say you need 64 components, which means 21 level decomposition. That means input image should be at least 2^21 width and height. So that is not normal.
May be i know/remeber something wrong???
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top