I am working on an project on digital watermarking and am implementing an algorithm where de input img is mixed with de matermark img at de source to give 2 shadows.....at de destination de the 2 shadows are to re-permuted to get back de original img and the watermark img...de code is as follows
I=imread('monkey.gif');
L=imread('lenna.bmp');
SA=mod((5*I+4*L),256);
SB=mod((4*I+5*L),256);
In=mod((285*SA-228*SB),256);
Ln=mod((285*SB-228*SA),256);
the code works perfectly for smaller matrices (say 2x2) but when i use images, the variables 'In and Ln' always have zeros....I am using 512x512 images...anybody got a clue ?