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

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -