error in retrieving image

조회 수: 2 (최근 30일)
Pat
Pat 2013년 3월 6일
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개)

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by