error in retrieving image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am doing watermarking using dwt svd but my extracted image is not as the watermarked image kindly assist,I have attached the steps and code
clc
clear all
cover=imread('pout.tif');
watermark=imread('cameraman.tif');
cover=imresize(cover,[256 256]);watermark=imresize(watermark,[128 128]);
cover=double(cover);watermark=double(watermark);
[LL LH HL HH]=dwt2(cover,'haar');
[Ui,Si,Vit]=svd(HL);
% [Ui1,Si1,Vit1]=svd(LH);
[Uw,Sw,Vwt]=svd(watermark);
Siw=Si+(0.01*Sw);
% Siw1=Si1+(0.01*Sw);
[U_Siw,S_Siw,V_Siwt]=svd(Siw);
% [U_Siw1,S_Siw1,V_Siwt1]=svd(Siw1);
Aiw=Ui*S_Siw*Vit;
% Aiw1=Ui1*S_Siw1*Vit1;
embedded=idwt2(LL,LH,Aiw,HH,'haar');
imshow(uint8(embedded))
[LL1 LH1 HL1 HH1]=dwt2(embedded,'haar');
[Uiw,Siw,Viwt]=svd(HL1);
Sw=(Siw-Si)/0.01
[U_Sw,S_Sw,V_Swt]=svd(Sw);
W=Uw*S_Sw*Vwt;
Sq=idwt2(LL1,LH1,W,HH1,'haar');
figure,imshow(uint8(Sq));
0 Kommentare
Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!