Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I need a help in this code

1 Ansicht (letzte 30 Tage)
Karbala'a Unvi. Science
Karbala'a Unvi. Science am 7 Aug. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 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 Kommentar
Geoff Hayes
Geoff Hayes am 7 Aug. 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?

Antworten (0)

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by