⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comparesim.m

📁 这是一个关于信息隐藏的源代码,是用vc++开发
💻 M
字号:
%compareSim.m
function response = CompareSim(W, ResTest, M)
% response = COMPARESIM(W, Wtest, M) compares the sim between W and
% M-1 random vector of the same size. 
% The value of ResTest is located in the M/2 place.
% This function must show a peak if W was present in the image

if (nargin<2)
   error('Se necesitan m醩 par醡etros')
end
if (nargin == 2)
   M = 500;
end

[s1 N]=size(W);
for i = 1:M
   if (i == floor(M / 2))
      aux=ResTest;     
   else
      X = randn(1,N);
      aux=similar(W, X);
   end
   response(i) = aux;
end

⌨️ 快捷键说明

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