Question

In: Computer Science

I need matlab code for digital watermarking using SVD. Please explain each step

I need matlab code for digital watermarking using SVD. Please explain each step

Solutions

Expert Solution

clc //uses to run the program and store the value

close all // uses to run the program and store the value

alpha= 0.75 //declare a variable alpha this is a embedding strength it is a strength which gives watermark a strength

I= imread ("cameraman.tif"); // this is usually available in MALTAB lab

figure(1) ; imshow(I); title ('The image');

[LL1, HL1, LH1, HH1] = dwt2 (I,'hear'); // low frequency in vertical and horizontal component

[LL2, HL2, LH2, HH2] = dwt2 (LL1,'hear');

p= size(LL2); // store the size LL2 in p

[Uy,Sy,Vy]= svd(LL2); // applying svd on LL2

q= size(Sy);

I_w = imread('watermark.jpg'); // define watermark

I_w = I_w (i, i, 1);

I1_w= imahow(I1_w); title ('I_w, p'); // figure(2)

[Uw, Sw, Vw] = svd (double(I1_w)); // applying svd on watermark

Smark = Sy+ alpha*Sw; // embed watermark

LL2_i = Uy*Smark*Vy; // rebuild the sub-bands using SVD

LL1_1 = idwt2 (LL2_1,HL2, LH2, HH2,'hear'); // applying inverse dwt to get watermark image

I_1 = idwt2 (LL1_1,HL1,LH1,HH1,'hear');

figure(3); imashow (uint6(I_1)); title ('Watermark image');

[LL1_wmv. HL1_wmv, LH1_wmv,HH1_wmv] = dwt2(I_1,'hear'); // Extraction

[LL2_wmv. HL2_wmv, LH2_wmv,HH2_wmv] = dwt2(LL1_wmv,'hear');

[Uy_wmv, Sy_wmv, Vy_wmv] = svd (LL2_wmv);

swrec = (Sy_wmv - Sy)/alpha;

WMy = Uw*Swrec*Vw' ;


Related Solutions

Calculate the pH of each aqueous solution: I need step to step solution please using formula...
Calculate the pH of each aqueous solution: I need step to step solution please using formula from; pH = -log [H3O+] pOH = -log[OH-] pH + pOH = 14 1)0.80 M lactic acid and 0.40 M lactate ion. 2) 0.10 mol of formic acid, HCOOH, and 0.10 mol of sodium formate, HCOONa in 1 L of water . 3) 0.30 M NH3 and 1.50 M NH4+
Hello, I need the Matlab code of the Fourier Transform without using the Matlab functions fft...
Hello, I need the Matlab code of the Fourier Transform without using the Matlab functions fft and dft. Applied to discrete signals. If you can with an example.Thank you!!
I need a working MATLAB CODE for the Gram Schimdt process Please give the code fast...
I need a working MATLAB CODE for the Gram Schimdt process Please give the code fast Its urgent The code must run on any matrix given It should be a generic code Dont answer any wrong code or else i will badly dislike
i need matlab code of heat equation in 1D with convection ?
i need matlab code of heat equation in 1D with convection ?
I need to write a MATLAB code for this question, but I couldn't figure how to...
I need to write a MATLAB code for this question, but I couldn't figure how to do it. 7. Engineers often have to convert from one unit of measurement to another; this can be tricky sometimes. You need to think through the process carefully. For example, convert 5 acres to hectares, given that an acre is 4840 square yards, a yard is 36 inches, an inch is 2.54 cm, and a hectare is 10000 m2.
I need matlab code for solution to the optimal power flow using artificial Ant Colony algorithm
I need matlab code for solution to the optimal power flow using artificial Ant Colony algorithm
pls, I need Matlab code for, OFDM modulation (Matlab demo by at least 4 carriers)
pls, I need Matlab code for, OFDM modulation (Matlab demo by at least 4 carriers)
I want the code for the 2D Ising model using Matlab
I want the code for the 2D Ising model using Matlab
Can you show how to do this step by step using Matlab please. Write a function...
Can you show how to do this step by step using Matlab please. Write a function with header [S] = myAddString(S1, S2), where S is the concatenation of the stings S1 and S2. Test Cases: S = myAddString(myAddString('Programming', ' '), myAddString(' is ', 'fun! ')) S = Programming is fun!
Matlab code problems I have to write a code using functions to find out if a...
Matlab code problems I have to write a code using functions to find out if a year is a leap year. I'm on the write track i feel like but I keep getting an error message and matlab isnt helping to troubleshoot. The issue is on line 30. Here is my code: function project_7_mfp() %   PROJECT_7_ABC   project_7_abc() creates a function that prompts the user %   enter a year after 1582 It then determines if it is a leap year %...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT