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 (최근 30일)
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.

채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 8일
dwt2() is part of the Wavelet toolbox. You would need to have that installed and licensed.
  댓글 수: 2
Debarpita Chaudhuri
Debarpita Chaudhuri 2016년 3월 9일
편집: Debarpita Chaudhuri 2016년 3월 16일
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 2016년 3월 16일
편집: Debarpita Chaudhuri 2016년 3월 16일
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.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Denoising and Compression에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by