当前位置:网站首页>基于差值扩展的可逆水印方法
基于差值扩展的可逆水印方法
2022-07-28 05:23:00 【zzuls】
1.将图像分成像素点对(x, y) x,y∈Z,0≤x,y≤255
个人认为,这个拆分过程需要专门记录,就是记录了图像中哪两个像素组成了这个像素对,这是为了能后续还原出水印。
2.定义其整数均值l 和差值h

公式一 公式二
3.将秘密比特信息m以差值扩展的方法嵌入到差值h中:
![]()
4.将得到的h′代入公式二中,得到新的图像像素对,形成嵌入秘密信息后的图像。
5.为了保证可逆隐藏后的数据没有溢出,设载体图像为8bit的灰度图像,可得某像素点对进行可逆数字水印的条件。

以任意一个像素对举例
加密过程:
(1)假设一个图像对为(206,201)即x=206,y=201
(2)l = floor((x+y)/2) = 203 h=206-201=5
(3)将h转化为二进制101
(4)假如我们对于这个像素对要嵌入的秘密消息m=1,则把1加入到101的LSB上得到h'
(5)得到h' = 1011 即 h' = h*2+m = 2*5+1 = 11
(6)把h'带入公式二得到:x' = 203+ floor((11+1)/2) = 203+6 = 209 y'=203 - floor((11)/2) = 198
(7)故加密得到的信息为(x',y')=(209,198)
解密过程:
(1)已知(x',y')=(209,198)
(2)计算 l' = floor((x'+y')/2) = 203 h' = x' - y' = 11
(3)m = LSB(h') = LSB(1011) = 1 //就是求h'的最后一个比特位
(4)h = floor(h'/2) = 5
(5)x = l'+ floor((h+1)/2) = 203 + 3 = 206 y = l'-floor(h/2) = 203-2 = 201
(6)故还原出原始像素对(x,y) = (206,201) 秘密消息 m = 1
参考文献:
Jun Tian Reversible Data Embedding Using a Difference Expansion
边栏推荐
- Shutter webivew input evokes camera albums
- 自动定时备份远程mysql脚本
- Deep learning - patches are all you need
- SQLAlchemy使用相关
- Deep learning (incremental learning) - iccv2022:continuous continuous learning
- How much does it cost to make a small program mall? What are the general expenses?
- Uniapp WebView listens to the callback after the page is loaded
- 将项目部署到GPU上,并且运行
- Svn incoming content cannot be updated, and submission error: svn: e155015: aborting commit: XXX remains in conflict
- 小程序开发哪家更靠谱呢?
猜你喜欢

Reinforcement learning - Multi-Agent Reinforcement Learning

What are the general wechat applet development languages?

四、模型优化器与推理引擎

无约束低分辨率人脸识别综述一:用于低分辨率人脸识别的数据集

利用辅助未标记数据增强无约束人脸识别《Boosting Unconstrained Face Recognition with Auxiliary Unlabeled Data》

Pytorch deep learning single card training and multi card training

There is a problem with MySQL paging

Reinforcement learning - dqn in value learning

Transformer's understanding

神经网络实现鸢尾花分类
随机推荐
Alpine, Debian replacement source
Deep learning (self supervision: simple Siam) -- Exploring simple Siamese representation learning
KubeSphere安装版本问题
微信小程序开发制作注意这几个重点方面
微信小程序制作模板套用时需要注意什么呢?
Deep learning - patches are all you need
强化学习——连续控制
五、视频处理与GStreamer
小程序开发
uniapp webview监听页面加载后回调
uView上传组件upload上传auto-upload模式图片压缩
Sqlalchemy usage related
强化学习——基础概念
pytorch深度学习单卡训练和多卡训练
Reinforcement learning - Basic Concepts
神经网络学习
alpine,debian替换源
D2SC-GAN:基于双深浅通道生成对抗网络的课堂场景低分辨率人脸识别
微信小程序开发费用制作费用是多少?
tensorboard可视化