wavelet - using dwt2 and idwt2 in matlab -
i had theory of wavelets complete , decided test using matlab. however, not able interpret result of dwt2 , idwt2. when used imshow display results, did not image.
[ca,ch,cv,cd] = dwt2(i_gray,'haar'); i_regray = idwt2(ca,ch,cv,cd,'haar'); figure(1); imshow(i_regray); figure(2); imshow(ca);
both figures blank. not able view downscaled image well. please tell me right way view it? matlab speaks way of plotting. not getting clear though. please me. apologies if question rudimentary. in advance.
you should read image , convert double. call dwt2
.
the results of dwt2
in double, check range of results. if have outside of [0,1] range you'll need convert uint8.
Comments
Post a Comment