testear.m

来自「这是一个关于信息隐藏的源代码,是用vc++开发」· M 代码 · 共 25 行

M
25
字号
%testear.m
function [sim,Rsnr]=testear(W,original,marcada);
% testear(W, original, marcada) returns in sim the value of similarity
% between W and the extracted watermark (the original image is needed % to perform this process)
% Returns the SNR value between the original and watermarked image in 
% Rsnr
 
ti = cputime;

% Similarity between original and watermarked
sim=coxdetect(original, marcada, W, .01, 1000);

% Process time
TiempoFinalSegundos = (cputime - ti)

% We compare the sim between W and other random vectors
response = comparesim(W,sim);

% We plot the results
plot(response);
UIWAIT

% Signal Noise Ratio 
Rsnr = SNR(original, marcada);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?