Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

I need a help in this code

1 visualización (últimos 30 días)
Karbala'a Unvi. Science
Karbala'a Unvi. Science el 7 de Ag. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentario
Geoff Hayes
Geoff Hayes el 7 de Ag. de 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?

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by