Input: Host image, H, Watermark images, W1 and W2

Output: Watermarked image, WI

Process: i. Generate key of binary images, KI

ii. H = resize (Grayscale (H), [512 × 512])

W1 = resize (Binary (W1), [32 × 32])

W2 = resize (Binary (W2), [32 × 32])

iii. Calculate DCT of each 8 × 8 block for H

iv. Divide H into 8 × 8 non-overlapping blocks

v. For each block, embed watermark images, W1 to (7, 7) and W2 to (8, 8) to the host image and finally get WI