Upcoming SlideShare
×

# Wavelet watermark

453 views

Published on

Image Watermark using Wavelet

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
453
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
21
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Wavelet watermark

2. 2. What does dmg do? % Damga uretme % % imgew: Damga imgesi % imge1: Orjinal imge % function W=dmg(imgew,imge1); [w h]=size(imgew); [w1 h1]=size(imge1); a=1; b=1; W=zeros(size(imge1)); for i=1:w:w1 for j=1:h:h1 W(i:a*w,j:b*h)=imgew; b=b+1; end a=a+1; b=1; end W=W;Copyright©2010 CompanynameFree template by Investintech PDF Solutions
3. 3. Adding WatermarkWavelet transform of image and Adding the watermark energy towatermark the original image function [D]=blockdwt2(A,W); % Adding watermark image. [row,col]=size(A); for i=1:h for j=1:w Tr=250; if ca(i,j)>Tr k=0.02; Ca(i,j)=ca(i,j)+k*W(i,j); % <-------- k*abs(double(c1(i,j)))*W(i,j); de olabilir [ca,ch,cv,cd] = dwt2(A,db1); else c1 = [ch cv cd]; Ca(i,j)=ca(i,j); end [h, w] = size(ca); end [m, n] = size(c1); end W=dmg(W,A); [caa chh cvv cdd]=dwt2(W,db1); W=caa; size(W);Copyright©2010 CompanynameFree template by Investintech PDF Solutions