REGARDING THRESHOLDING

c=imread('caribou.tif')
imshow(c);
CW=wt2d(double(c),h,g,8);
length(find(abs(CW)<=10));
ans=
47424
CW(find(abs(CW)<=10))=0;
CW=round(CW);
ci=iwt2d(CW,rh,rg,8)
imshow(mat2gray(ci));
i am working on the image compression.. this code i found in the book named "INTRODUCTION TO DIGITAL IMAGE PROCESSING WITH MATLAB BY ALASDAIR Mc ANDREW" .. WHEN I RUN THIS CODE I GET THE ERROR UNDEFINED FUNCTION OR VARIABLE h ... any one help this to debug ... thanks

답변 (1개)

Walter Roberson
Walter Roberson 2012년 2월 28일

0 개 추천

Sure enough, that code uses "h" and "g" and "rhs" and "rg" without defining them.
There must have been additional code in the book, or an indication of what those variables are intended to mean.

카테고리

도움말 센터File Exchange에서 Agriculture에 대해 자세히 알아보기

태그

질문:

2012년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by