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

📄 aad.m

📁 这是一个关于信息隐藏的源代码,是用vc++开发
💻 M
字号:
AAD.m
%function D=AAD(I,J)
% AAD(I,J) returns the average absolute difference between the pixels % of I and J.
% The AAD value is useful to quantitize the distortions on an image.

if (size(I)~=size(J))
   error('Las imagenes deben tener el mismo tama駉')
end
if (~isrgb(I) & ~isrgb(J))
   [m n] = size(I);
   A=double(I);
   B=double(J);
   sumaDif=0;
   for u=1:m
      for v=1:n
         sumaDif = sumaDif + abs(A(u,v)-B(u,v));
      end
   end
   D=sumaDif/(m*n);   
else 
   error('Las imagenes no pueden ser en color')
end

⌨️ 快捷键说明

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