フィルターのクリア

DWT2 on an RGB image.

2 ビュー (過去 30 日間)
Jessica
Jessica 2012 年 2 月 24 日
編集済み: Image Analyst 2013 年 10 月 23 日
Hi,
I am trying to run DWT2 in RGB images as a pre-processing on images, i think this will help me in reducing the time consumption, but there is something wrong in the output, the first image appears as a blank image with small black points, what is the wrong in this code, please i need your help:
file = dir(fullfile('C:\Users\Documents\Work\image.orig','*.jpg'));% JPG Files ONLY
file = file(~[file.isdir]);
for k = 1
disp(fullfile('C:\Users\Documents\Work\image.orig',(file(k).name)));
image{k}= imread(fullfile('C:\Users\Documents\Work\image.orig',(file(k).name)));
[cA1,cH1,cV1,cD1]=dwt2(image{k}, 'db1');
figure(k),
subplot(2,2,1); imshow(cA1);
subplot(2,2,2); imshow(cH1);
subplot(2,2,3); imshow(cV1);
subplot(2,2,4); imshow(cD1);
end
Thank you in advance.

採用された回答

Wayne King
Wayne King 2012 年 2 月 24 日
Hi Jessica, I suspect your problem is just scaling. What is your input image data type (uint8?)
For example:
load jellyfish256
[cA1,cH1,cV1,cD1] = dwt2(X,'db1','mode','per');
% the following does not display well
imshow(cA1);
But
imshow(cA1/255)
  2 件のコメント
Jessica
Jessica 2012 年 2 月 24 日
yes it is unit 8 image
Jessica
Jessica 2012 年 2 月 24 日
Thank you it worked correctly

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Multiresolution Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by