Skip to content

cnarutox/RDH-in-Color-Image-With-Grayscale-Invariance

Repository files navigation

Reversible Data Hiding in Color Image With Grayscale Invariance

An implement based Python 3.6+ about RDH in Color Image With Grayscale Invariance by Dongdong Hou , Weiming Zhang , Kejiang Chen, Sian-Jheng Lin, and Nenghai Yu

Basic Introduction

  • 首先安装所依赖的库python3 install -r requirements.txt
  • 其次执行python3 start.py对图像进行加密解密
  • 下面是执行时控制台样例输出
[[231 133 116]
  [230 142 111]
  [232 135 111]
  ...
  [226 110  93]
  [221  99  86]
  [212  97  83]]]
=> Finish reading image!
=> Finish calculating predication error!
=> Message: 314159265659314159265659
=> Finish embeding msg with the critical value ofbeing 2
=> Finish embeding parameters:
        rhoT: 2, lastEc: 1, La: 193, N: 193, tagsCode: 0000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
=> Finish reading embeded image and calculating predication error!
=> Ensure the grayscale invariant: True
=> Finish extractig parameters:
        rhoT: 2, lastEc: 1, La: 193, N: 193, tagsCode: 0000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
=> Finish extracting received msg: 314159265659314159265659
=> The msg is equal to received msg: True
  • 程序会生成并保存灰度对比图Grayscale.png Grayscale
  • 下面是程序加密前后的图片对比,可以看到人眼是很难看出来变化

Implement Details

  • Size: 嵌入区域的高宽(左上角算起),默认为None即嵌入整张图片
  • fig: 图片地址或名称,默认为'lena.png'
  • Dt: 论文中的参数$D_t$,默认为20
  • rhoT: 论文中的参数$\rho_t$
  • msg: 嵌入的消息字符串,如'314159265659314159265659'

Presentation

img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img img

Others

Motivation: This is the final project of class Information Security Foundation

Stars Wanted: If it can run on your machine, please star this project!

And there are some other related collected resources you may need, if you like you can buy me a coffee (>= 0.1¥) 😁 Thanks!

├─展示幻灯片.pptx
├─data-hiding-Lsb
├─data-hiding_1MSB
├─data-hiding_2MSB
├─data-hiding_histogram
│  ├─img
│  └─JPEG_Toolbox
├─High-capacity RDHEI based on extended run-length coding and block-based MSB plane rearrangement
│  └─测试图像
├─Kuo, W. C., & Kuo, S. H. (2012). Proceedings of the 2012 Seventh Asia Joint Conference on Information Security
│  ├─img
│  └─JPEG_Toolbox
├─Reversible Data Hiding in JPEG Image Based on DCT Frequency and Block Selection
│  ├─jpegread
│  ├─testimage
│  └─utils
├─Reversible Data Hiding Based on histogram shifting (4-8-16-32-internal correlation)
│  ├─imgs
│  ├─JPEG_Toolbox
│  └─result
├─Reversible Data Hiding Based on Two-Dimensional Histograms Modification
│  ├─代码(cheng's)
│  │  ├─imgs
│  │  └─JPEG_Toolbox
│  └─测容量(cheng's)
│      ├─imgs
│      └─JPEG_Toolbox
├─Reversible Data Hiding Based on Two-Dimensional Histograms Modification--improved by setting flag
│  ├─Jpeg_toolbox
│  └─具体代码
│      ├─代码
│      │  ├─imgs
│      │  └─JPEG_Toolbox
│      └─测容量
│          ├─imgs
│          └─JPEG_Toolbox
├─Reversible Data Hiding in Color Image with Grayscale Invariance
│  ├─Matlab implementation
│  │  ├─img
│  │  ├─old_version
│  └─readme
├─Reversible data hiding under inconsistent distortion metrics
├─signal processing
│  └─signal processing
├─书籍资料
└─多直方图
    └─多直方图

About

Reversible Data Hiding in Color Image With Grayscale Invariance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •