decimation in dwt is

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 comentario

Lokesh Ravindranathan
Lokesh Ravindranathan el 17 de Jun. de 2013
Editada: Lokesh Ravindranathan el 17 de Jun. de 2013
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.

Iniciar sesión para comentar.

Respuestas (1)

Wayne King
Wayne King el 17 de Jun. de 2013

0 votos

The problem is that you should first set the dwtmode to 'per' to get the subband sizes you expect.
dwtmode('per');
load woman; % 256x256
[Lo_D,Hi_D,Lo_R,Hi_R] = wfilters('db9');
[LLD,LHD,HLD,HHD]=dwt2(X,Lo_D,Hi_D);

Preguntada:

el 17 de Jun. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by