Hi.
I have 2d array LL2 extracted from 2-level DWT of an image and a binarized watermark W in a 2D array (only 0s and 255s). (watermark W is split into 4 equal parts as W1, W2, W3 n W4) And I want to embed the watermark according to the following method. But I cant seem to understand how to implement it.
"Embedding. The LL2 is split into blocks, and block size can be used as key K2, such as 4×4 blocks.
We selected a pair of coefficients block (i, j) and block (p, q) to embed watermark. Take the parameter
i, j, p,q as the key K3, K4, K5 and6. Here assign value i = j = 2 , p = q =3 .Watermark W1 was
embedded into LL2 as follows:
When the watermark information is 0, we judged whether block (2, 2) <block (3, 3),if not, exchange the
coefficient value; When the watermark information is 1, we judged whether block (2, 2) ≥block (3, 3),if
not, exchange the coefficient value. "