Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

I need a help in this code

1 visualizzazione (ultimi 30 giorni)
Karbala'a Unvi. Science
Karbala'a Unvi. Science il 7 Ago 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Geoff Hayes
Geoff Hayes il 7 Ago 2014
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?

Risposte (0)

Questa domanda è chiusa.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by