✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
We propose a scheme for the digital watermarking of colour images based on Visual Cryptography. According to the proposed scheme, verification information is generated using the image to be marked, watermark and a passkey. The watermark and the verification information are registered with a neutral authority. The passkey is in possession of the owner of the image. When an image ownership needs to be established, the claimed owner is asked to give the passkey. Using the test image, passkey and verification information, it is possible to generate the watermark. If the claim is true, this generated watermark should be recognisable as the original watermark.
⛄ 部分代码
clear;
clc;
close all
img=imread('baboon.jpg');
%img=imread('baboonquality1.jpg'); % reads the test image
imshare1= img(:,:,1); % test image split into three shares
imshare2= img(:,:,2); % according to colour stream
imshare3= img(:,:,3);
v= imread('rgbsecretim.png'); % reads verification image
v1= im2bw(v(:,:,1)); % generates verification information
v2= im2bw(v(:,:,2));
v3= im2bw(v(:,:,3));
seed = input('Enter pass key: '); % reads secret pass key
w1= wgen(imshare1, v1, seed); % generates the test watermark
w2= wgen(imshare2, v2, seed);
w3= wgen(imshare3, v3, seed);
w_fin = w1 +w2 + w3; % final test watermark
figure(2)
subplot(1,2,1)
imshow(w_fin); % displays test watermark
title('Test watermark')
subplot(1,2,2)
%imshow('customwmk1.png'); % displays original watermark
imshow('chinese-character.png')
title('Original watermark')
⛄ 运行结果
⛄ 参考文献
[1] 王慧琴, 李人厚, 王志雄. 基于DCT域的加密二值图像数字水印新算法[J]. 小型微型计算机系统, 2003(1):4.
[2] 彭嘉星. 基于混沌的数字彩色图像加密及软硬件实现[D]. 广东工业大学, 2016.
[3] 王慧琴, 李人厚. 基于人类视觉系统的数字水印技术的理论框架[J]. 计算机工程, 2002, 28(9):3.
⛳️ 代码获取关注我
❤️部分理论引用网络文献,若有侵权联系博主删除
❤️ 关注我领取海量matlab电子书和数学建模资料