marcar.m
来自「这是一个关于信息隐藏的源代码,是用vc++开发」· M 代码 · 共 31 行
M
31 行
% marcar.m
% marcar calls CoxWmk function to insert a watermark (saved
% as marcaW.mat)
% marcaW is an enviroment variable where W is defined
load marcaW
n=size(W,2);
alpha = 0.01;
t = cputime;
% Name of the image to be watermarked
nomI='chasque1.jpg'
% Name of the watermarked image
nomImarcada='imach1cox2.bmp';
% Read the original image
[I,MAP]=imread(nomI);
% Watermark the image
J=coxwmk(I,alpha,n,W);
% Save the image
if (isrgb(I))
imwrite(J,nomImarcada);
else
imwrite(J,MAP,nomImarcada);
end
% Process time
TiempoFinalSegundos = (cputime - t)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?