decomposition using dwt2

Hi, I want the 1 level decomposition of a ct scan which is a grayscale image. However, when I apply the following algorithm, the decomposed images are seen somewhat dark blue and red. Can anyone tell me the reason and how do i get it in grayscale? [ct,map]=imread('ct1.bmp'); sz = size(map,1); [cA1,cH1,cV1,cD1] = dwt2(ct,'db5'); cA=wcodemat(cA1,sz); cH=wcodemat(cH1,sz); cV=wcodemat(cV1,sz); cD=wcodemat(cD1,sz); image(cA); image(cH); image(cV); image(cD); %figure, image(cA); %figure, image(cH); %figure, image(cV); %figure, image(cD); %figure, image(cA1); dec=[cA,cH; cV,cD]; image(dec);

 采纳的回答

You should format your code above for readibility.
It sounds like all you have to do is use a grayscale colormap.
>>colormap gray

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Wavelet Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by