I am getting the error Missing variable or function when I am trying to implement a code on 2 dimensional DWT on images in MATLAB 7. The code is given below.

4 visualizaciones (últimos 30 días)
f = imread('Region_of_interest.bmp');
imshow(f)
wname = 'sym4';
[CA,CH,CV,CD] = dwt2(X,wname,'mode','per');
subplot(211)
imagesc(CV); title('Vertical Detail Image');
subplot(212)
imagesc(CA); title('Lowpass Approximation');
Sir, kindly help me.
thanks and regards
Debarpita Chaudhuri.

Respuesta aceptada

Walter Roberson
Walter Roberson el 8 de Mzo. de 2016
dwt2() is part of the Wavelet toolbox. You would need to have that installed and licensed.
  2 comentarios
Debarpita Chaudhuri
Debarpita Chaudhuri el 9 de Mzo. de 2016
Editada: Debarpita Chaudhuri el 16 de Mzo. de 2016
Sir, I do have wavelet toolbox. Is there any chance that the image variable X or f is not treated as a matrix right away. Do I need to add some code to change the the image variable into a 2-D Matrix so that dwt2() may give a proper output? thanks and regards Debarpita Chaudhuri.
Debarpita Chaudhuri
Debarpita Chaudhuri el 16 de Mzo. de 2016
Editada: Debarpita Chaudhuri el 16 de Mzo. de 2016
Sir, my code is running now with the image of barbara. The code is given below
if true
% load woman;
wname = 'sym4';
[CA,CH,CV,CD] = dwt2(X, wname, 'mode', 'per');
subplot(211)
imagesc(CV); title('Vertical Detail Image');
colormap gray;
subplot(212)
imagesc(CA); title('Lowpass Approximation');
end
How do I edit this code to input a bmp image of my own, as for example the image given here.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Denoising and Compression en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by