Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

# Thread: embedding a watermark using 2d arrays.

1. ## embedding a watermark using 2d arrays.

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. "

2. ## Re: embedding a watermark using 2d arrays.

Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.