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

 Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Wavelet Toolbox in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by