【图像加密】基于视觉密码学的彩色图像数字水印加密附matlab代码

该文提出一种利用VisualCryptography进行彩色图像数字水印的方法。通过图像、水印和密钥生成验证信息并注册。当需要验证图像所有权时,拥有密钥的图像所有者能生成水印以证明所有权。代码示例展示了如何使用Matlab实现这一过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

✅作者简介:热爱科研的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电子书和数学建模资料

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

matlab科研助手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值