数字水印实验报告.docVIP

  • 486
  • 0
  • 约4.57千字
  • 约 8页
  • 2017-02-13 发布于重庆
  • 举报
数字水印实验报告

基于DCT变换域的水印嵌入和提取 一、原始图像被随机攻击的源程序: % function random_damage() function random_damage() file_name = tt.jpg; oriwat_img = imread(file_name); % compute the size H = size(oriwat_img, 1); W = size(oriwat_img, 2); % 随机产生行、列,破坏 row1 = unidrnd(512); row2 = unidrnd(512); column1 = unidrnd(512); column2 = unidrnd(512); if(row1 row2) temp = row1; row1 = row2; row2 = temp; end if(column1 column2) temp = column1; column1 = column2; column2 = temp; end attack_img = oriwat_img; for i = row1 : row2 for j = column1:column2 attack_img(i, j) = unidrnd(255); end end

文档评论(0)

1亿VIP精品文档

相关文档