Info

此问题已关闭。 请重新打开它进行编辑或回答。

I need a help in this code

1 次查看(过去 30 天)
Karbala'a Unvi. Science
关闭: MATLAB Answer Bot 2021-8-20
Hi every one, I need a help in this code that I am doing. The idea is to apply a DWT on an image ( cover) and then use the HH bond to add another image ( stego) and then apply the IDWT to re construct the ( cover) image again but I am facing abroplim and I don't get any result the code is:
if true
% code
clc;
clear all
close all;
y = imread('E:\stuff TOO\facese\T.jpg');
tiledImage = ( uint8(y));
[LL,LH,HL,HH]=dwt2(tiledImage,'Haar'); % appling the Haar Wavelet
figure(1)
subplot(2,2,1);imshow(uint8(LL));title('LL band of image');
subplot(2,2,2);imshow(uint8(LH));title('LH band of image');
subplot(2,2,3);imshow(uint8(HL));title('HL band of image');
subplot(2,2,4);imshow(uint8(HH));title('HH band of image');
Y = HH ;
figure (2);imshow (Y);
Z= imread('E:\stuff TOO\facese\1.jpg');
whos Z
figure (3); imshow (Z);
Z = im2double (Z);
Z = imresize (Z, [188 189]);
figure (4);imshow (Z);
YY = Y*0.0;
YY = Z+YY;
YYY= im2bw(YY);
YYY=im2double(YYY);
figure(5);imshow (YYY);
HH = YYY;
C =idwt2(LL,LH,HL,HH,tiledImage,'Haar');
figure (6); imshow (C);
end
I need the help pleas
Zee
  1 个评论
Geoff Hayes
Geoff Hayes 2014-8-7
Zee - what do you mean by you don't get any result the code? Is there one line in particular that is causing a problem, or is the end result not what you are expecting?

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by