% detectar.m
% detectar loads the watermark, the original image and a suposed
% watermarked image.
% detectar calls the function testear to detect the presence of 
% the watermark
nomI='chasque1.jpg'
nomImarcada='imach1cox2.bmp';

% load W
load marcaW  
% read the original image
[I,MAPI]=imread(nomI);
% read a suposed watermarked image
[J,MAPJ]=imread(nomImarcada);

[ResSIM ResSNR]=testear(W,I,J);
