CN115314715B - 一种基于差分编码与块压缩的可逆信息隐藏方法 - Google Patents

一种基于差分编码与块压缩的可逆信息隐藏方法 Download PDF

Info

Publication number
CN115314715B
CN115314715B CN202210957291.8A CN202210957291A CN115314715B CN 115314715 B CN115314715 B CN 115314715B CN 202210957291 A CN202210957291 A CN 202210957291A CN 115314715 B CN115314715 B CN 115314715B
Authority
CN
China
Prior art keywords
image
block
difference
pixel
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210957291.8A
Other languages
English (en)
Other versions
CN115314715A (zh
Inventor
葛国庆
葛斌
王智盟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui University of Science and Technology
Original Assignee
Anhui University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui University of Science and Technology filed Critical Anhui University of Science and Technology
Priority to CN202210957291.8A priority Critical patent/CN115314715B/zh
Publication of CN115314715A publication Critical patent/CN115314715A/zh
Application granted granted Critical
Publication of CN115314715B publication Critical patent/CN115314715B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/467Embedding additional information in the video signal during the compression process characterised by the embedded information being invisible, e.g. watermarking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32272Encryption or ciphering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32347Reversible embedding, i.e. lossless, invertible, erasable, removable or distorsion-free embedding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

本发明提出来一种基于差分编码与块压缩的密文域可逆信息隐藏算法,本方法主要应用于云存储数据传输中的安全保障问题,包括内容拥有者、信息隐藏者和接受者三个角色。首先内容拥有者提供原始载体图像,在使用流密码对其进行加密的同时做分块差分操作,可充分地利用上局部像素的强相关性,再对做差结果自适应分类,并利用哈夫曼编码特性产生最短的码字用作不同种类块的块标签,以此标记自适应标记各块后可最大程度地预留出空间,在信息隐藏者端作秘密信息嵌入操作。最后由接收者无误提取信息和重构载体图像。本发明对于原始载体图像的像素间相关性特征做到了充分的利用,在保证安全性和可逆性的前提下预留出较大的空间用作秘密信息嵌入,可以满足实际应用中的需求,解决实际问题。

Description

一种基于差分编码与块压缩的可逆信息隐藏方法
技术领域
本发明涉及图像数据安全领域,具体是一种基于差分编码与图像块压缩的可逆信息隐藏方法。
背景技术
本部分的陈述仅仅是涉及到了与本发明相关的背景技术,并不必然构成现有技术。
目前云数据存储技术越来越成熟,许多用户选择将数据上传至云端进行储存,在提供便捷的同时,也产生了不可忽视的安全问题。信息隐藏能够为网络中的数据传输提供有效的安全保障。近几年来,作为信息安全的一个重要部分,数字图像的安全问题深受关注。针对数字图像的保护手段可分为两类:图像加密和数据图像隐藏。图像加密主要通过置乱、扩散技术,将明文图像转化成内容不可见的密文图像形式。早期的数据图像隐藏则以加密图像作为载体,将附加信息嵌入其中,以此来进行信息传输。但会对载体图像造成不可逆的失真。而基于数字图像的RDHEI技术不仅能够保障载体图像和附加信息的在网络中传输的安全性,还能够实现载体图像的无损重构和附加信息的无误提取。
根据算法的不同阶段,可将RDHEI分成内容拥有者、信息隐藏者和接收者三个角色。内容拥有者提供载体图像,能够根据拥有的加密秘钥对载体图像进行加密处理。信息隐藏者是嵌入附加信息的一方,拥有信息隐藏秘钥,无法获取原始图像的内容,仅可以在加密图像中嵌入附加信息从而生成携密图像。接收者则是根据拥有的秘钥种类,进行附加信息提取和原始图像重构的操作。RDHEI算法主要有三个性能评价指标:安全性、可逆性及嵌入容量。
目前,已提出许多性能较好的RDHEI算法,大致可将它们分为两类:加密前预留空间(reserve room before image encryption,RRBE)和加密后腾出空间(vacate roomafter image encryption,VRAE)。
VRAE框架下的隐藏算法因破坏了原始图像像素间的空间相关性,难以达到一个符合实际需求的嵌入容量。相对来说,RRBE框架下的算法能够保留原始图像的强相关性,许多基于此的算法通过像素预测,计算差值以预留空间,这样可以减少像素间的差异,但是仍不能根据局部像素的特征自适应的判断最大嵌入量,因此难以达到一个较好的嵌入容量。
发明内容
为解决上述问题,本发明提出一种基于差分编码与图像块压缩的可逆信息隐藏算法,局部像素强相关性与自适应编码相结合。先对载体图像进行分块操作,每块内依参考像素邻位作差,并利用哈夫曼特征做自适应标签编码。在加密阶段使用加密秘钥生成伪随机矩阵,并与原始明文图像像素异或加密得到密文图像。然后,根据各块所属类型标记自适应码字以压缩空间,并通过比特位替换嵌入附加信息。最后,合法接收者可根据相应秘钥实现对原始明文图像的无损重构和附加信息的无误提取。
1.一种基于差分编码与块压缩的密文域可逆信息隐藏方法,其特征在于,该方法包括以下步骤:
1)对输入的载体图像按照预先设定的块大小进行分块,利用块间像素强相关性做块间差分,并按照块内最大差值将所有像素块分作6类。2)在对载体图像划分块的同时,利用加密秘钥Ke生成同样大小的伪随机矩阵,与原始图像对应位置像素两两异或,用于生成密文图像。
3)利用Huffman编码的特性,生成最短的码字,按照不同类块出现的频率自适应的标记上码字。
4)将差分编码结果作用在密文域图像以压缩空间,保留每个图像块(1,1)位置像素作参考像素,调整其他三个像素值的八个比特位,嵌入差值有效比特位、正负符号位,得到标记图像后在剩余位置嵌入秘密信息。
2.权利要求1所述一种基于差分编码与块压缩的密文域可逆信息隐藏方法,其特征在于:所属步骤1)具体方法是:
2.1)将大小为M×N的灰度图像,划分为m个s×s的像素块,其中m定义为如下:
2.2)在各个小块中,相邻位置像素依次作差,以s=2为例,差分过程如式2)所示。差分之后,得到以(1,1)位置像素为参考像素的差值图像块,差值图像中,像素分布更加集中,能够为自适应编码提供更好的条件。
3.权利要求1所述一种基于差分编码与块压缩的密文域可逆信息隐藏方法,其特征在于:所属步骤2)具体方法是:
3.1)设置加密秘钥Ke,使用round函数生成与图像矩阵同样大小的伪随机数字矩阵,并通过bitxor操作,加密原始图像,加密过程定义如下:
4.权利要求1所述一种基于差分编码与块压缩的密文域可逆信息隐藏方法,其特征在于:步骤3)具体方法是:
4.1)Huffman编码的特性在于能生成最短码字的标签编码。此处利用这一优点,在统计得出各类别块的数量后,根据出现频率,对每一类块自适应分配标签码字。
4.2)具体地,按照Huffman规则,预先生成6种不同长度的标签,分别为0、11、100、1010、10110、101110。得到差值图像块后,按照每块中差值像素的最大绝对值,对所有图像块进行分类,
5.权利要求1所述一种基于差分编码与块压缩的密文域可逆信息藏方法,其特征在于:步骤4)具体方法是:
将块内像素通过式4转换为二进制矩阵,在保证参考像素的八位二进制不改变的前提下,从低位开始,以此嵌入块标签、有效差值位、符号位等辅助信息,以保证载体图像的完全可逆性。最后在预留空间中嵌入秘密信息。
附图说明
图1是差分编码与块压缩的密文域可逆信息隐藏方法整体流程图
图2是作差模型图
图3是差分结果示例图
图4是块压缩示例图
具体实施方式
下面结合本发明中实例附图,对本发明实例中技术方案进行清楚、完整的描述,此外,所叙述的实施例仅仅是本发明一部分实施例,而不是所有的实施例。基于本发明中的实施例,本研究方向普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,以及本发明所收集、分类、人工标注数据集都属于本发明保护范围。
6.本发明的流程框架图如图1所示,一种基于差分编码与块压缩的密文域可逆信息藏方法,具体操作如下:
1.对输入的载体图像按照预先设定的块大小进行分块,利用块间像素强相关性做块间差分,并按照块内最大差值将所有像素块分作6类。1.1将大小为M×N的灰度图像,划分为m个s×s的像素块,其中m定义为如下:
1.2在各个小块中,相邻位置像素依次作差,以s=2为例,差分过程如式2)所示。差分之后,得到以(1,1)位置像素为参考像素的差值图像块,差值图像中,像素分布更加集中,能够为自适应编码提供更好的条件。
2.在对载体图像划分块的同时,利用加密秘钥Ke生成同样大小的伪随机矩阵,与原始图像对应位置像素两两异或,用于生成密文图像。具体地,设置加密秘钥Ke,使用round函数生成与图像矩阵同样大小的伪随机数字矩阵,并通过bitxor操作,加密原始图像,加密过程定义如下:
3.利用Huffman编码的特性,生成最短的码字,按照不同类块出现的频率自适应的标记上码字。
3.1Huffman编码的特性在于能生成最短码字的标签编码。此处利用这一优点,在统计得出各类别块的数量后,根据出现频率,对每一类块自适应分配标签码字。
3.2具体地,按照Huffman规则,预先生成6种不同长度的标签,分别为0、11、100、1010、10110、101110。得到差值图像块后,按照每块中差值像素的最大绝对值,对所有图像块进行分类。
4.将差分编码结果作用在密文域图像以压缩空间,保留每个图像块(1,1)位置像素作参考像素,调整其他三个像素值的八个比特位,嵌入差值有效比特位、正负符号位,得到标记图像后在剩余位置嵌入秘密信息。具体操作为:将块内像素通过式4转换为二进制矩阵,在保证参考像素的八位二进制不改变的前提下,从低位开始,以此嵌入块标签、有效差值位、符号位等辅助信息,以保证载体图像的完全可逆性。
最后在预留空间中嵌入秘密信息。

Claims (1)

1.一种基于差分编码与块压缩的可逆信息隐藏方法,其特征在于,该方法包括以下步骤:
1)对输入的载体图像按照预先设定的块大小进行分块,利用块间像素强相关性做块间差分,并按照块内最大差值将所有像素块分作6类;
2)在对载体图像划分块的同时,利用加密秘钥Ke生成同样大小的伪随机矩阵,与原始图像对应位置像素两两异或,用于生成密文图像;
3)利用Huffman编码的特性,生成最短的码字,按照不同类块出现的频率自适应的标记上码字;
4)将差分编码结果作用在密文域图像以压缩空间,保留每个图像块(1,1)位置像素作参考像素,调整其他三个像素值的八个比特位,嵌入差值有效比特位、正负符号位,得到标记图像后在剩余位置嵌入秘密信息;
所属步骤1)具体方法是:
2.1)将大小为M×N的灰度图像,划分为m个s×s的像素块,其中m定义为如下:
2.2)在各个小块中,相邻位置像素依次作差,以s=2为例,差分过程如式2)所示;差分之后,得到以(1,1)位置像素为参考像素的差值图像块,差值图像中,像素分布更加集中,能够为自适应编码提供更好的条件;
所属步骤2)具体方法是:
3.1)设置加密秘钥Ke,使用round函数生成与图像矩阵同样大小的伪随机数字矩阵,并通过bitxor操作,加密原始图像,加密过程定义如下:
步骤3)具体方法是:
4.1)Huffman编码的特性在于能生成最短码字的标签编码;此处利用这一优点,在统计得出各类别块的数量后,根据出现频率,对每一类块自适应分配标签码字;
4.2)具体地,按照Huffman规则,预先生成6种不同长度的标签,分别为0、11、100、1010、10110、101110;得到差值图像块后,按照每块中差值像素的最大绝对值,对所有图像块进行分类;
步骤4)具体方法是:
将块内像素通过式4转换为二进制矩阵,在保证参考像素的八位二进制不改变的前提下,从低位开始,以此嵌入块标签、有效差值位、符号位等辅助信息,以保证载体图像的完全可逆性;最后在预留空间中嵌入秘密信息;
CN202210957291.8A 2022-08-10 2022-08-10 一种基于差分编码与块压缩的可逆信息隐藏方法 Active CN115314715B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210957291.8A CN115314715B (zh) 2022-08-10 2022-08-10 一种基于差分编码与块压缩的可逆信息隐藏方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210957291.8A CN115314715B (zh) 2022-08-10 2022-08-10 一种基于差分编码与块压缩的可逆信息隐藏方法

Publications (2)

Publication Number Publication Date
CN115314715A CN115314715A (zh) 2022-11-08
CN115314715B true CN115314715B (zh) 2024-05-03

Family

ID=83860000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210957291.8A Active CN115314715B (zh) 2022-08-10 2022-08-10 一种基于差分编码与块压缩的可逆信息隐藏方法

Country Status (1)

Country Link
CN (1) CN115314715B (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10108180A (ja) * 1996-09-30 1998-04-24 Hitachi Ltd 画像符号化データ作成方法及び画像符号化データ復号化方法
WO2011129672A2 (ko) * 2010-04-16 2011-10-20 에스케이텔레콤 주식회사 영상 부호화/복호화 장치 및 방법
CN111741301A (zh) * 2020-06-17 2020-10-02 绍兴聚量数据技术有限公司 基于ambtc压缩编码的再压缩及信息隐藏方法
CN113382127A (zh) * 2021-06-10 2021-09-10 绍兴聚量数据技术有限公司 一种弹性选择和游程编码的加密图像可逆信息隐藏方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10108180A (ja) * 1996-09-30 1998-04-24 Hitachi Ltd 画像符号化データ作成方法及び画像符号化データ復号化方法
WO2011129672A2 (ko) * 2010-04-16 2011-10-20 에스케이텔레콤 주식회사 영상 부호화/복호화 장치 및 방법
CN111741301A (zh) * 2020-06-17 2020-10-02 绍兴聚量数据技术有限公司 基于ambtc压缩编码的再压缩及信息隐藏方法
CN113382127A (zh) * 2021-06-10 2021-09-10 绍兴聚量数据技术有限公司 一种弹性选择和游程编码的加密图像可逆信息隐藏方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Reversible data hiding with differential compression in encrypted image;Tang, ZJ等;《Multimedia Tools & Applications》;20191231;全文 *
基于编码压缩和加密的图像可逆信息隐藏算法;俞春强;侯晓杰;张显全;唐振军;陈艳;邓方舟;;光电子・激光;20180815(08);全文 *

Also Published As

Publication number Publication date
CN115314715A (zh) 2022-11-08

Similar Documents

Publication Publication Date Title
Qiu et al. Reversible data hiding in encrypted images using adaptive reversible integer transformation
CN109657769B (zh) 一种基于游程编码的二维码信息隐藏方法
CN112202984B (zh) 一种基于纠错冗余的密文域可逆信息隐藏方法
CN113194213B (zh) 一种基于秘密共享和混沌映射的png图像信息隐藏和恢复方法
CN107493405A (zh) 基于编码压缩的加密图像可逆信息隐藏方法
CN104284190B (zh) 一种基于ambtc高低均值最优化的压缩图像隐写编码方法
Swain et al. A novel steganography technique by mapping words with LSB array
CN110913092B (zh) 一种加密图像可逆信息隐藏方法
CN105791854A (zh) 一种结合改进矩阵编码的奇异值修改视频隐写算法
CN109547663B (zh) 一种结合密码学的改进lsb图像隐写方法
CN103414840A (zh) 一种基于图像集的数据隐藏方法
CN112911290A (zh) 一种基于预测差值压缩编码的密文图像可逆数据隐藏方法
Bhautmage et al. Advanced video steganography algorithm
Jain et al. Efficient data hiding scheme using lossless data compression and image steganography
CN110166784B (zh) 一种基于像素块的自适应图像纹理区隐写方法
Kumar et al. Color image steganography scheme using gray invariant in AMBTC compression domain
CN114745475A (zh) 一种鲁棒的加密图像可逆信息隐藏方法
CN115314715B (zh) 一种基于差分编码与块压缩的可逆信息隐藏方法
CN107135391A (zh) 一种针对h.264压缩域的视频感知哈希算法
Qu et al. Ring Co-XOR encryption based reversible data hiding for 3D mesh model
CN106998471B (zh) 一种修改预测模式的视频隐藏方法及视频提取方法
Akhtar et al. An improved module based substitution steganography method
CN115396676B (zh) 一种加密域卫星图像信息隐藏方法
CN113395405B (zh) 一种多源数据隐式信息融合的方法
Lekha Hiding an image data into video stenography using different algorithm and MATLAB: A review

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant