gui code for video watermarking in matlab
#1
Wink 

I need project of watermarking video but with user interface
Reply
#2
gui code for video watermarking in matlab

The rapid spread of digital media (audio, images and video) and the ease of their reproduction and distribution has created a need for copyright enforcement schemes in or- der to protect content creators and owners. In recent years, digital watermarking has emerged as an effective way to prevent users from violating copyrights. This concept is based on the insertion of information into the data in such a way that the added information is not perceptible yet resis- tant to (intentional or unintentional) alterations of the wa- termarked data. Three factors must be considered in image or video wa- termarking:

Capacity, i.e. the amount of information that can be put into the watermark and recovered without errors;
Robustness, i.e. the resistance of the watermark to alterations of the original content such as compression, filtering or cropping;

Visibility, i.e. how easily the watermark can be discerned by the user.
These factors are inter-dependent; for example, increasing the capacity will decrease the robustness or increase the vis- ibility. Therefore, it is essential to consider all three factors for a fair evaluation or comparison of watermarking algorithms.

We have developed a fast scheme for Wavelet-based video watermarking that is capable to process frames quickly and efficiently.

clc;
clear all;
warning off;
chos=0;
possibility=11;

while chos~=possibility,
chos=menu('Digital 3-level image watermarking','select the cover image','select the watermark image','show 3-level coverimage','show 3-level watermarkimage','show watermarked image','show extracted image','Calculate MSE for embedding','Calculate PSNR for embedding','Calculate MSE for extraction','Calculate PSNR for extraction','exit');
if chos==1
[fname pname]=uigetfile('*.jpg','select the Cover Image');
%eval('imageinput=imread(fname)');
imageinput=imread(fname);


A=rgb2gray(imageinput);
P1=im2double(A);
P=imresize(P1,[2048 2048]);
%imshow(P);
%figure(1);
%title('original image');

[F1,F2]= wfilters('haar', 'd');
[LL,LH,HL,HH] = dwt2(P,'haar','d');
[LL1,LH1,HL1,HH1] = dwt2(LL,'haar','d');
[LL2,LH2,HL2,HH2] = dwt2(LL1,'haar','d');
%figure(2)
%imshow(LL2,'DisplayRange',[]), title('3 level dwt of cover image');
end
if chos==2
[fname pname]=uigetfile('*.jpg','select the Watermark');
%eval('imageinput=imread(fname)');
%imageinput=imread(fname);
imw2=imread(fname);
imw=rgb2gray(imw2);
watermark=im2double(imw);
watermark=imresize(watermark,[2048 2048]);
%figure(3)
%imshow(uint8(watermark));title('watermark image')
[WF1,WF2]= wfilters('haar', 'd');
[L_L,L_H,H_L,H_H] = dwt2(watermark,'haar','d');
[L_L1,L_H1,H_L1,H_H1] = dwt2(L_L,'haar','d');
[L_L2,L_H2,H_L2,H_H2] = dwt2(L_L1,'haar','d');
%figure(4)
%imshow(L_L2,'DisplayRange',[]), title('3 level dwt of watermark image');
end
if chos==3
imshow(LL2,'DisplayRange',[]), title('3 level dwt of cover image')
end
if chos==4
imshow(L_L2,'DisplayRange',[]), title('3 level dwt of watermark image')
end
if chos==5
Watermarkedimage=LL2+0.0001*L_L2;



%computing level-1 idwt2
Watermarkedimage_level1= idwt2(Watermarkedimage,LH2,HL2,HH2,'haar');
%figure(5)
%imshow(Watermarkedimage_level1,'DisplayRange',[]), title('Watermarkedimage level1');

%computing level-2 idwt2
Watermarkedimage_level2=idwt2(Watermarkedimage_level1,LH1,HL1,HH1,'haar');
%figure(6)
%imshow(Watermarkedimage_level2,'DisplayRange',[]), title('Watermarkedimage level2');


%computing level-3 idwt2
Watermarkedimage_final=idwt2(Watermarkedimage_level2,LH,HL,HH,'haar');
%figure(7)
imshow(Watermarkedimage_final,'DisplayRange',[]), title('Watermarkedimage final')
end
if chos==6
[F11,F22]= wfilters('haar', 'd');
[a b c d]=dwt2(Watermarkedimage_final,'haar','d');
[aa bb cc dd]=dwt2(a,'haar','d');
[aaa bbb ccc ddd]=dwt2(aa,'haar','d');

recovered_image=aaa-LL2;
%figure(8)
imshow(recovered_image,[]);
%title('extracted watermark')
end
if chos==7

pic1= P;
pic2= Watermarkedimage_final;
mse=MSE(pic1,pic2)
end
if chos==8
pic1= P;
pic2= Watermarkedimage_final;
psnr=PSNR(pic1,pic2)
end
if chos==9
clear pic1;
clear pic2;
pic1=L_L2;
pic2=recovered_image;
mse_extraction=MSE(pic1,pic2)
end
if chos==10
psnr_extraction=PSNR(pic1,pic2)
end
end
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: digital video watermarking using pca matlab code, mse pl loc ca, how to create gui matlab of anpr, download ppt of matlab gui for dc motor control, matlab music gui, matlab code for video watermarking lsb, speech recognition using matlab gui,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  image encryption and decryption using rsa algorithm in matlab 2 7,828 29-05-2017, 04:17 PM
Last Post: Priyanka Bidikar
  download liver tumor ct scan image in matlab with source code 4 7,986 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  MATLAB codes needed for powerline communication 1 7,995 12-04-2017, 05:00 PM
Last Post: jaseela123d
  matlab code for wavelet based ofdm transmitter 1 921 24-02-2017, 11:18 AM
Last Post: ijasti
  code to extract brain tumor detection using matlab 2 1,062 17-10-2016, 04:32 PM
Last Post: girish123ak
  f5 algorithm steganography matlab code 2 863 04-10-2016, 03:00 AM
Last Post: [email protected]
  color image segmentation using jseg algorithm in matlab code 2 860 29-09-2016, 12:07 PM
Last Post: Guest
  matlab code for retinal hemorrhage detection in fundus images 2 854 24-08-2016, 01:10 AM
Last Post: [email protected]
  matlab code of directional filter bank 1 847 13-08-2016, 11:27 AM
Last Post: jaseela123d
  matlab xy routing algorithm 2 824 12-08-2016, 09:16 PM
Last Post: khant

Forum Jump: