MATLAB Answers

beenu singh

decimation in dwt is

Asked by beenu singh
on 17 Jun 2013

i am performing following operation on 256*256 lena image after execution four bands are of size 136*136 according to me it should be of 128*128 pls clear.

[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters('db9'); [LLD,LHD,HLD,HHD]=dwt2(GRAY,Lo_D,Hi_D);

  1 Comment

It seems like wfilters and dwt2 are not MATLAB toolbox functions. Maybe, you are using a window inside of these functions. If you provide a better insight into the code, the inconsistency can be explained.


No products are associated with this question.

1 Answer

Answer by Wayne King
on 17 Jun 2013

The problem is that you should first set the dwtmode to 'per' to get the subband sizes you expect.

   load woman; % 256x256
   [Lo_D,Hi_D,Lo_R,Hi_R] = wfilters('db9'); 


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!