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

 採用された回答

Wayne King
Wayne King 2012 年 2 月 25 日

0 投票

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 ExchangeWavelet Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by