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);

 Réponse acceptée

Wayne King
Wayne King le 25 Fév 2012

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Wavelet Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by