CN112380551B - A dual-image-based reversible data hiding method and system - Google Patents

A dual-image-based reversible data hiding method and system Download PDF

Info

Publication number
CN112380551B
CN112380551B CN202011292406.3A CN202011292406A CN112380551B CN 112380551 B CN112380551 B CN 112380551B CN 202011292406 A CN202011292406 A CN 202011292406A CN 112380551 B CN112380551 B CN 112380551B
Authority
CN
China
Prior art keywords
turtle
point
matrix
pixel
image
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
CN202011292406.3A
Other languages
Chinese (zh)
Other versions
CN112380551A (en
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.)
Xiamen University of Technology
Original Assignee
Xiamen University of 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 Xiamen University of Technology filed Critical Xiamen University of Technology
Priority to CN202011292406.3A priority Critical patent/CN112380551B/en
Publication of CN112380551A publication Critical patent/CN112380551A/en
Application granted granted Critical
Publication of CN112380551B publication Critical patent/CN112380551B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a reversible data hiding method and a reversible data hiding system based on double images, which are characterized in that a novel tortoise shell magic matrix is obtained by adding numerical values of '8' to element values of tortoise back points on the basis of the original tortoise shell magic matrix, the range of the element values in the matrix is expanded, the hidden quantity of hidden secret data of the matrix is increased, meanwhile, a novel reversible hiding algorithm is invented, the secret data are converted into hexadecimal numbers to be hidden in the novel tortoise shell magic matrix, and pairwise corresponding secret images are obtained; and in the stage of secret data extraction, a corresponding data extraction rule is formulated according to a novel reversible hiding algorithm to extract the secret data, and an original image is recovered. Compared with the traditional data hiding algorithm based on the image, the method has the advantage of ensuring the quality of the hidden image under the condition of higher storage capacity, so that the secret data can be hidden more safely.

Description

一种基于双图像的可逆数据隐藏方法与系统A dual-image-based reversible data hiding method and system

技术领域technical field

本发明涉及图像处理技术领域,尤其是一种基于双图像的可逆数据隐藏方法与系统。The invention relates to the technical field of image processing, in particular to a double-image-based reversible data hiding method and system.

背景技术Background technique

随着网络技术的普及,人们很方便的在网络上与他人进行沟通及数据交流。但是由于网络的开放性特点,网络上传输的数据很容易会被恶意人员进行截取、篡改或者破坏。因此,为了提高数据交流的安全性,常用的解决办法是将要传输的数据进行加密。但是由于加密算法的复杂性,加解密的过程需要耗费比较多的时间,且加密后的数据是一堆看起来无意义的类似乱码的东西,这就更容易引起恶意人员的怀疑。虽然恶意人员可能无法直接破解其中的数据,但是他们可以对数据进行破坏,从而造成数据的丢失。With the popularization of network technology, it is very convenient for people to communicate and exchange data with others on the network. However, due to the open nature of the network, the data transmitted on the network can easily be intercepted, tampered or destroyed by malicious personnel. Therefore, in order to improve the security of data exchange, a common solution is to encrypt the data to be transmitted. However, due to the complexity of the encryption algorithm, the encryption and decryption process takes a lot of time, and the encrypted data is a bunch of meaningless garbled things, which is more likely to arouse the suspicion of malicious personnel. Although malicious persons may not be able to directly decipher the data, they can destroy the data, resulting in the loss of data.

除了加密技术,数据隐藏也是一种有效的数据保护方法。数据隐藏算法可以将秘密数据藏入到介质中,该介质可以是图像、视频、音频、文本等。通过图像藏入数据以后,该图像和原始图像从肉眼上来看差别不大,因此不易引起攻击者的怀疑,从而可以安全的进行数据传输。接收方接到藏入秘密信息的图像后,根据萃取算法将秘密信息提取出来。In addition to encryption technology, data hiding is also an effective data protection method. Data hiding algorithms can hide secret data into media, which can be images, video, audio, text, etc. After the data is hidden through the image, the image is not much different from the original image from the naked eye, so it is not easy to arouse the attacker's suspicion, so that the data transmission can be performed safely. After receiving the image with the secret information hidden, the receiver extracts the secret information according to the extraction algorithm.

根据数据接收方是否可以将原始图像回复出来,数据隐藏分为可逆数据隐藏和不可逆数据隐藏。不可逆数据隐藏一般能否藏入较多的秘密信息,反之,可逆数据隐藏藏量一般较小。但是可逆数据隐藏的优势是可以完全恢复出原始图像。According to whether the data receiver can recover the original image, data hiding is divided into reversible data hiding and irreversible data hiding. Generally, irreversible data hiding can hide more secret information. On the contrary, the amount of reversible data hiding is generally small. But the advantage of reversible data hiding is that the original image can be completely recovered.

本发明基于双图像进行可逆数据隐藏,原始图像藏入秘密数据后,会生成两个藏有秘密数据的图像。只通过单一的一个藏有秘密数据的图像无法萃取出原始图像和秘密数据,当且仅当两个藏有秘密数据的图像一起被接收方获取到时,通过这两个图像的协作才能完整的回复出秘密数据和原始图像。The invention performs reversible data hiding based on double images. After the original image is hidden in the secret data, two images with the secret data are generated. The original image and the secret data cannot be extracted only through a single image containing the secret data. If and only when the two images containing the secret data are acquired by the receiver together, the cooperation of the two images can be completed. Reply with secret data and original image.

发明内容SUMMARY OF THE INVENTION

本发明提出了一种基于双图像的可逆数据隐藏方法与系统,以解决上文提到的现有技术的缺陷。The present invention proposes a dual-image-based reversible data hiding method and system to solve the above-mentioned defects of the prior art.

在一个方面,本发明提出了一种基于双图像的可逆数据隐藏方法,该方法包括以下步骤:In one aspect, the present invention proposes a dual-image-based reversible data hiding method, which includes the following steps:

S1:构造一个横纵坐标范围为[0 ,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中的元素值进行模8运算,使元素值在[0 ,7]之间,最后用多个相连拼接的六边形覆盖所述矩阵,得到龟壳魔术矩阵,其中,所述矩阵中位于所述六边形的边缘处的点属于龟边点,未处于所述六边形的边缘处的点属于龟背点,将所述龟壳魔术矩阵中位于龟背点的元素各加数值“8”,得到新的龟壳魔术矩阵;S1: Construct a matrix whose abscissa and ordinate range is [0, 255], so that the values of adjacent elements in the same row in the matrix differ by 1, and increase in turn, and the values of even columns of adjacent two elements in the same column are higher than odd ones The value of the column is 2 more, the value of the odd-numbered column is 3 more than the value of the even-numbered column, and then the element value in the matrix is modulo 8 operation, so that the element value is between [0, 7]. The polygon covers the matrix to obtain a turtle shell magic matrix, wherein the points located at the edge of the hexagon in the matrix belong to the turtle edge points, and the points not located at the edge of the hexagon belong to the turtle back point, add the value "8" to the elements located at the turtle back point in the turtle shell magic matrix to obtain a new turtle shell magic matrix;

S2:将需要藏入的秘密信息转换成一串二进制数,再将每4个二进制数转成一个十六进制数;S2: Convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number;

S3:从原始图像中取出一个像素p(p∈[0 ,255]) ,将所述像素p扩充成一个坐标(p ,S3: Take a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate (p,

p) ,若所述像素

Figure 227167DEST_PATH_IMAGE002
Figure 203214DEST_PATH_IMAGE004
从所述秘密信息中获取 一个十六进制数,记为v,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置的不同确定 藏入范围,在所述藏入范围中找到使坐标对应的值为v的坐标(p1 ,p2) ,并根据移动规则 对所述坐标(p1 ,p2)存在冲突的点进行移动; p) , if the pixel
Figure 227167DEST_PATH_IMAGE002
and
Figure 203214DEST_PATH_IMAGE004
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the point (p , p) in the new turtle shell magic matrix. Find the coordinates (p1, p2) with the value v corresponding to the coordinates in the input range, and move the points with conflicting coordinates (p1, p2) according to the moving rules;

S4:将p1赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第二秘密图像。S4: Assign p1 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to perform step S3 to obtain the first secret image, assign p2 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to perform step S3 to obtain the second secret image.

以上方法通过将龟背点的元素值各加数值“8”的方式,扩大了新的龟壳魔术矩阵中元素值的范围,从而增加了新的龟壳魔术矩阵隐藏秘密数据的藏量,又利用新型的可逆藏入算法,在对原始图像改动较少的情况下能很好地隐藏秘密数据并恢复原始图像,相比于传统基于图像的秘密数据隐藏算法,拥有在藏量较高的情况下同时保证隐藏后的图像质量的优点。The above method expands the range of element values in the new turtle shell magic matrix by adding the value "8" to the element values of the turtle back points, thereby increasing the hidden secret data of the new turtle shell magic matrix. Using the new reversible hiding algorithm, the secret data can be well hidden and the original image can be restored with less changes to the original image. Compared with the traditional image-based secret data hiding algorithm, it has a higher hiding capacity At the same time, the advantages of the hidden image quality are guaranteed.

在具体的实施例中,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置的不同确定藏入范围,具体步骤包括:将所述龟背点中纵坐标更大的点记为上龟背点,所述龟背点中纵坐标更小的点记为下龟背点,所述龟边点中纵坐标最小或纵坐标与所述上龟背点相等的三个点记为上龟边点,所述龟边点中纵坐标最大或纵坐标与所述下龟背点相等的三个点记为下龟边点,若所述像素p属于上龟边点或上龟背点,则以所述新的龟壳魔术矩阵中坐标为(p ,p)的点为右下角构造一个4×5的块,扣除块中右上角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数;若所述像素p属于下龟边点或下龟背点,则以(p ,p)为左上角构造一个4×5的块,扣除块中左下角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数。In a specific embodiment, the hiding range is determined according to the difference of the position of the point (p , p) in the new turtle shell magic matrix, and the specific steps include: making the vertical coordinate of the turtle back point larger The point is marked as the upper turtle back point, the point with the smaller ordinate in the turtle back point is marked as the lower turtle back point, and the ordinate in the turtle edge point is the smallest or the three points where the vertical coordinate is equal to the upper turtle back point. Each point is recorded as the upper turtle edge point, and the three points with the largest ordinate or the ordinate equal to the lower turtle edge point among the turtle edge points are recorded as the lower turtle edge point, if the pixel p belongs to the upper turtle edge point Or the upper turtle back point, construct a 4×5 block with the point whose coordinates are (p , p) in the new turtle shell magic matrix as the lower right corner, deduct the 4 elements in the upper right corner of the block, and use the remaining 16 elements to hide a hexadecimal number; if the pixel p belongs to the lower turtle edge point or the lower turtle back point, then construct a 4×5 block with (p ,p) as the upper left corner, deducting The 4 elements in the lower left corner of the block, use the remaining 16 elements to hide one of said hexadecimal numbers.

在具体的实施例中,移动规则具体包括:In a specific embodiment, the movement rules specifically include:

若所述像素p属于上龟边点或上龟背点,则将所述藏入范围中第一行的最后一列的元素bf和第二行的最后一列的元素bs按照如下规则移动:If the pixel p belongs to the upper turtle edge point or the upper turtle back point, move the element bf of the last column of the first row and the element bs of the last column of the second row in the hidden range according to the following rules:

Figure 947179DEST_PATH_IMAGE006
Figure 947179DEST_PATH_IMAGE006

若所述像素p属于下龟边点或下龟背点,则将所述藏入范围中最后一行的第一列的元素lf和倒数第二行的第一列的元素ls按照如下规则移动:If the pixel p belongs to the lower turtle edge point or the lower turtle back point, the element lf of the first column of the last row and the element ls of the first column of the second to last row in the hidden range are moved according to the following rules:

Figure 59491DEST_PATH_IMAGE008
Figure 59491DEST_PATH_IMAGE008

在具体的实施例中,在步骤S3中,若所述像素p∈[0 ,2]或p∈[253 ,255],令p1=p2In a specific embodiment, in step S3, if the pixel p∈[0,2] or p∈[253,255], let p1=p2

=p,并直接执行步骤S4。=p, and directly execute step S4.

在具体的实施例中,还包括对图像中的秘密信息进行萃取的步骤,具体包括:In a specific embodiment, it also includes the step of extracting the secret information in the image, which specifically includes:

A1:执行所述步骤S1,得到所述新的龟壳魔术矩阵;A1: Execute the step S1 to obtain the new turtle shell magic matrix;

A2:依次从所述第一秘密图像和所述第二秘密图像的相同位置取出所述p1和p2,定义差值d=p1-p2; A2: Take out the p1 and p2 from the same position of the first secret image and the second secret image in turn, and define the difference d=p1-p2;

A3:根据以下规则进行秘密信息萃取:A3: Secret information extraction is performed according to the following rules:

(1)若d=0且p1和p2属于边缘点,则所述第一秘密图像和所述第二秘密图像中对应的点中没有藏入秘密信息;若d=0且p1和p2不属于边缘点,则藏入的十六进制的秘密信息v 为所述新的龟壳魔术矩阵中点(p1 ,p2)的值;(1) If d=0 and p1 and p2 belong to edge points, no secret information is hidden in the corresponding points in the first secret image and the second secret image; if d=0 and p1 and p2 do not belong to edge point, the hidden hexadecimal secret information v is the value of the midpoint (p1, p2) of the new turtle shell magic matrix;

(2)若d<0,则藏入的十六进制的秘密信息v根据以下规则获得:(2) If d<0, the hidden hexadecimal secret information v is obtained according to the following rules:

Figure 378346DEST_PATH_IMAGE010
Figure 378346DEST_PATH_IMAGE010

(3)若d>0 ,则藏入的十六进制的秘密信息v根据以下规则获得:(3) If d>0, the hidden hexadecimal secret information v is obtained according to the following rules:

Figure 310530DEST_PATH_IMAGE012
Figure 310530DEST_PATH_IMAGE012

其中M(p1 ,p2)表示所述新的龟壳魔术矩阵中点(p1 ,p2)的值。where M(p1 , p2) represents the value of the midpoint (p1 , p2) of the new turtle shell magic matrix.

在具体的实施例中,还包括对原始图片进行恢复的步骤,具体包括在所述步骤A1-In a specific embodiment, it also includes the step of restoring the original picture, which is specifically included in the step A1-

A3后执行以下原始图片恢复算法:Execute the following original image recovery algorithm after A3:

(1)若d=0,则原始像素p=p1; (1) If d=0, then the original pixel p=p1;

(2)若d<0,则p可以通过以下方式获得: (2) If d<0, then p can be obtained in the following ways:

Figure 123765DEST_PATH_IMAGE014
Figure 123765DEST_PATH_IMAGE014

(3)若d>0,则p可以通过以下方式获得:(3) If d>0, then p can be obtained in the following ways:

Figure 825005DEST_PATH_IMAGE016
Figure 825005DEST_PATH_IMAGE016

还原出原始图像中对应的位置上的像素p,从而还原出原始图像。The pixel p at the corresponding position in the original image is restored, thereby restoring the original image.

根据本发明的第二方面,提出了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机处理器执行时实施上述方法。According to a second aspect of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, the computer program implementing the above method when executed by a computer processor.

根据本发明的第三方面,提出一种基于双图像的可逆数据隐藏系统,该系统包括:According to a third aspect of the present invention, a dual-image-based reversible data hiding system is proposed, the system comprising:

新的龟壳魔术矩阵构建模块:配置用于构造一个横纵坐标范围为[0 ,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中的元素值进行模8运算,使元素值在[0 ,7]之间,最后用多个相连拼接的六边形覆盖所述矩阵,得到龟壳魔术矩阵,其中,所述矩阵中位于所述六边形的边缘处的点属于龟边点,未处于所述六边形的边缘处的点属New tortoise shell magic matrix building block: Configured to construct a matrix whose abscissa and ordinate range are [0,255], so that the values of adjacent elements in the same row in the matrix differ by 1, and increase in sequence, and adjacent elements in the same column are The value of the two elements of the even column is 2 more than the value of the odd column, and the value of the odd column is 3 more than the value of the even column, and then the element value in the matrix is modulo 8 operation, so that the element value is between [0,7] Finally, the matrix is covered with a plurality of connected and spliced hexagons to obtain a turtle shell magic matrix, wherein the points located at the edges of the hexagons in the matrix belong to the turtle edge points and are not located in the hexagons. point attribute at the edge of the polygon

于龟背点,将所述龟壳魔术矩阵中位于龟背点的元素各加数值“8”,得到新的龟壳魔术矩阵;At the turtle back point, add the value "8" to the elements located at the turtle back point in the turtle shell magic matrix to obtain a new turtle shell magic matrix;

秘密信息预处理模块:配置用于将需要藏入的秘密信息转换成一串二进制数,再将每4个二进制数转成一个十六进制数;Secret information preprocessing module: configured to convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number;

秘密信息隐藏模块:配置用于从原始图像中取出一个像素p(p∈[0 ,255]) ,将所 述像素p扩充成一个坐标(p ,p) ,若所述像素

Figure 22418DEST_PATH_IMAGE018
Figure 441898DEST_PATH_IMAGE020
从所述秘密 信息中获取一个十六进制数,记为v,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置 的不同确定藏入范围,在所述藏入范围中找到使坐标对应的值为v的坐标(p1 ,p2) ,并根 据移动规则对所述坐标(p1 ,p2)存在冲突的点进行移动; Secret information hiding module: configured to take out a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate (p,p), if the pixel
Figure 22418DEST_PATH_IMAGE018
and
Figure 441898DEST_PATH_IMAGE020
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the point (p , p) in the new turtle shell magic matrix. Find the coordinates (p1, p2) with the value v corresponding to the coordinates in the input range, and move the points with conflicting coordinates (p1, p2) according to the moving rules;

秘密图像生成模块:配置用于将p1赋值给所述原始图像中所述像素p对应的位置,Secret image generation module: configured to assign p1 to the position corresponding to the pixel p in the original image,

并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数运行秘密信息隐藏模块,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数运行秘密信息隐藏模块,得到第二秘密图像;藏入范围确定模块:配置用于将所述龟背点中纵坐标更大的点记为上龟背点,所述龟背点中纵坐标更小的点记为下龟背点,所述龟边点中纵坐标最小或纵坐标与所述上龟背点相等的三个点记为上龟边点,所述龟边点中纵坐标最大或纵坐标与所述下龟背点相等的三个点记为下龟边点,若所述像素p属于上龟边点或上龟背点,则以所述新的龟壳魔术矩阵中坐标为(p,p)的点为右下角构造一个4×5的块,扣除块中右上角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数;若所述像素p属于下龟边点或下龟背点,则以坐标为(p,p)的点为左上角构造一个4×5的块,扣除块中左下角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数。And traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to run the secret information hiding module to obtain the first secret image, and assign p2 to the corresponding pixel p in the original image. position, and traverse all pixels in the original image and all hexadecimal numbers in the secret information to run the secret information hiding module to obtain a second secret image; hiding range determination module: configured to hide the turtle In the back point, the point with the larger ordinate is recorded as the upper turtle back point, the point with the smaller vertical coordinate in the turtle back point is recorded as the lower turtle back point, and the ordinate in the turtle edge point is the smallest or the ordinate is the same as the described turtle back point. The three points that are equal to the upper turtle back point are recorded as the upper turtle edge point, and the three points whose vertical coordinate is the largest or the vertical coordinate is equal to the lower turtle back point in the turtle edge point are recorded as the lower turtle edge point. If the pixel p belongs to the upper turtle edge point or the upper turtle back point, a 4×5 block is constructed with the point whose coordinates are (p, p) in the new turtle shell magic matrix as the lower right corner, and the upper right corner of the block is deducted. 4 elements, use the remaining 16 elements to hide one of the hexadecimal numbers; if the pixel p belongs to the lower turtle edge point or the lower turtle back point, the point whose coordinates are (p, p) is A 4x5 block is constructed in the upper left corner, the 4 elements in the lower left corner of the block are deducted, and the remaining 16 elements are used to hide a said hexadecimal number.

本发明在原有的龟壳魔术矩阵的基础上通过将龟背点的元素值各加数值“8”的方式,构建了新的龟壳魔术矩阵,扩大了龟壳魔术矩阵中元素值的范围,从而增加了新的龟壳魔术矩阵隐藏秘密数据的藏量,同时又发明了新型的可逆藏入算法,将秘密数据转换成十六进制数藏入新的龟壳魔术矩阵中,得到两两对应的秘密图像;在秘密数据提取的阶段根据新型的可逆藏入算法制定对应的数据提取规则来提取秘密数据,并恢复原始图像。本发明在对原始图像改动较少的情况下能很好地隐藏秘密数据并恢复原始图像,相比于传统基于图像的秘密数据隐藏算法,拥有在藏量较高的情况下同时保证隐藏后的图像质量的优点,使得秘密数据能更加安全地被隐藏。On the basis of the original turtle shell magic matrix, the invention constructs a new turtle shell magic matrix by adding the value "8" to the element values of the turtle back points, and expands the range of element values in the turtle shell magic matrix. This increases the amount of hidden secret data hidden by the new turtle shell magic matrix, and at the same time, a new reversible hiding algorithm is invented, which converts the secret data into hexadecimal numbers and hides them in the new turtle shell magic matrix. The corresponding secret image; in the stage of secret data extraction, the corresponding data extraction rules are formulated according to the new reversible hiding algorithm to extract the secret data and restore the original image. The invention can hide the secret data well and restore the original image under the condition of less changes to the original image. The advantages of image quality make secret data hidden more securely.

附图说明Description of drawings

包括附图以提供对实施例的进一步理解并且附图被并入本说明书中并且构成本说明书的一部分。附图图示了实施例并且与描述一起用于解释本发明的原理。将容易认识到其它实施例和实施例的很多预期优点,因为通过引用以下详细描述,它们变得被更好地理解。通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated into and constitute a part of this specification. The drawings illustrate embodiments and together with the description serve to explain the principles of the invention. Other embodiments and many of the intended advantages of the embodiments will be readily recognized as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本发明的一个实施例的一种基于双图像的可逆数据隐藏方法的流程图;1 is a flowchart of a dual-image-based reversible data hiding method according to an embodiment of the present invention;

图2是本发明的一个具体的实施例的新的龟壳魔术矩阵;Fig. 2 is the new turtle shell magic matrix of a specific embodiment of the present invention;

图3是本发明的一个具体的实施例的龟壳魔术矩阵中的单个龟壳结构示意图;3 is a schematic diagram of a single turtle shell structure in the turtle shell magic matrix of a specific embodiment of the present invention;

图4是本发明的一个实施例的两种基于4×5的块的秘密信息隐藏方式分类示意图;4 is a schematic diagram of classification of two secret information hiding methods based on 4×5 blocks according to an embodiment of the present invention;

图5是本发明的一个具体的实施例的利用新的龟壳魔术矩阵进行数据藏入的示意图;Fig. 5 is the schematic diagram that utilizes the new turtle shell magic matrix to carry out data hiding of a specific embodiment of the present invention;

图6是本发明的一个实施例的冲突点的移动规则示意图;6 is a schematic diagram of a movement rule of a conflict point according to an embodiment of the present invention;

图7是本发明的一个实施例的差值d的可能取值范围示意图;7 is a schematic diagram of a possible value range of the difference d according to an embodiment of the present invention;

图8是本发明的一个实施例的一种基于双图像的可逆数据隐藏系统的框架图;8 is a frame diagram of a dual-image-based reversible data hiding system according to an embodiment of the present invention;

图9是本发明的一个具体的实施例的不同方法的最大藏量值比较图;FIG. 9 is a comparison diagram of the maximum reserves value of different methods of a specific embodiment of the present invention;

图10是本发明的一个具体的实施例的最大藏量的情况下,不同方法的图像品质值比较图。FIG. 10 is a comparison diagram of image quality values of different methods in the case of the maximum storage amount according to a specific embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

根据本发明的一个实施例的一种基于双图像的可逆数据隐藏方法,图1示出了根据本发明的实施例的一种基于双图像的可逆数据隐藏方法的流程图。如图1所示,该方法包括以下步骤:A double-image-based reversible data hiding method according to an embodiment of the present invention, FIG. 1 shows a flowchart of a double-image-based reversible data hiding method according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:

S101:构造一个横纵坐标范围为[0 ,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中的元素值进行模8运算,使元素值在[0 ,7]之间,最后用多个相连拼接的六边形覆盖所述矩阵,得到龟壳魔术矩阵。该矩阵的特征在于,其横纵坐标的范围在[0,255],对应于灰度图像像素值的取值范围;矩阵中同一行的相邻的两个元素值自左向右依次加1,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,最终矩阵中的元素值需要进行模8运算,确保元素值在[0,7]之间。S101: Construct a matrix whose abscissa and ordinate are in the range of [0, 255], so that the values of adjacent elements in the same row in the matrix differ by 1, and increase in sequence, and the values of even columns of two adjacent elements in the same column are higher than odd ones The value of the column is 2 more, the value of the odd-numbered column is 3 more than the value of the even-numbered column, and then the element value in the matrix is modulo 8 operation, so that the element value is between [0, 7]. The polygon overlays the matrix, resulting in the turtle shell magic matrix. The feature of this matrix is that its horizontal and vertical coordinates are in the range of [0, 255], which corresponds to the value range of the pixel value of the grayscale image; the values of two adjacent elements in the same row in the matrix are incremented by 1 from left to right. , the value of two adjacent elements in the same column even column is 2 more than the value of odd column, the value of odd column is 3 more than the value of even column, the element value in the final matrix needs to be modulo 8 operation to ensure that the element value is in between [0, 7].

在具体的实施例中,龟壳魔术矩阵中位于所述六边形的边缘处的点属于龟边点,未处于所述六边形的边缘处的点属于龟背点,且所述龟背点中纵坐标更大的为上龟背点,所述龟背点中纵坐标更小的为下龟背点,所述龟边点中纵坐标最小或纵坐标与所述上龟背点相等的三个点为上龟边点,所述龟边点中纵坐标最大或纵坐标与所述下龟背点相等的三个点为下龟边点。In a specific embodiment, the points located at the edge of the hexagon in the turtle shell magic matrix belong to the turtle edge points, the points not located at the edge of the hexagon belong to the turtle back points, and the turtle back The larger ordinate in the point is the upper turtle back point, the smaller ordinate in the turtle back point is the lower turtle back point, and the ordinate in the turtle edge point is the smallest or the ordinate is equal to the upper turtle back point The three points are the upper turtle edge points, and the three points with the largest ordinate or the ordinate equal to the lower turtle back point in the turtle edge points are the lower turtle edge points.

图3示出了本发明的一个具体的实施例的龟壳魔术矩阵中的单个龟壳结构示意图,其中点(311、312、314)为下龟边点,点(313)为下龟背点,点(321、322、324)为上龟边点,点(323)为上龟背点。3 shows a schematic diagram of a single turtle shell structure in a turtle shell magic matrix according to a specific embodiment of the present invention, wherein points (311, 312, 314) are the lower turtle edge points, and point (313) is the lower turtle back point , point (321, 322, 324) is the upper turtle edge point, and point (323) is the upper turtle back point.

根据图3所示出的对龟壳魔术矩阵中得点的定义,将龟壳魔术矩阵中位于龟背点(313、323)的元素各加数值“8”,得到新的龟壳魔术矩阵如图2所示,其中pi和pi+1分别为新的龟壳魔术矩阵的横坐标和纵坐标,在本实施例中,取横坐标和纵坐标为p1和p2。According to the definition of the points in the turtle shell magic matrix shown in Figure 3, add the value "8" to the elements located at the turtle back points (313, 323) in the turtle shell magic matrix to obtain a new turtle shell magic matrix as shown in the figure 2, where pi and pi+1 are the abscissa and ordinate of the new turtle shell magic matrix, respectively. In this embodiment, the abscissa and ordinate are taken as p1 and p2.

S102:将需要藏入的秘密信息转换成一串二进制数,再将每4个二进制数转成一个十六进制数。S102: Convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number.

S103:从原始图像中取出一个像素p(p∈[0 ,255]) ,将所述像素p扩充成一个坐 标 (p ,p) ,若所述像素

Figure 793245DEST_PATH_IMAGE022
Figure 863838DEST_PATH_IMAGE024
从所述秘密信息中 获取一个十六进制数,记为v,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置的不同 确定藏入范围,在所述藏入范围中找到使坐标对应的值为v的坐标(p1 ,p2) ,并根据移动 规则对所述坐标(p1 ,p2) 存在冲突的点进行移动。 S103: Take out a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate (p,p), if the pixel
Figure 793245DEST_PATH_IMAGE022
and
Figure 863838DEST_PATH_IMAGE024
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the point (p , p) in the new turtle shell magic matrix. Find the coordinates (p1 , p2 ) with the value v corresponding to the coordinates in the input range, and move the points with conflicting coordinates (p1 , p2 ) according to the moving rules.

在具体的实施例中,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置的不同确定藏入范围,具体步骤包括:若所述像素p属于上龟边点(321、322、324) 或上龟背点(323) ,则以所述新的龟壳魔术矩阵中坐标为(p ,p)的点为右下角构造一个4×5的块,扣除块中右上角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数;若所述像素p属于下龟边点(311、312、314)或下龟背点(313) ,则以(p ,p)为左上角构造一个4×5的块,扣除块中左下角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数。In a specific embodiment, the hiding range is determined according to the difference of the position of the point (p, p) in the new turtle shell magic matrix, and the specific steps include: if the pixel p belongs to the upper turtle edge point ( 321, 322, 324) or the upper turtle back point (323), then a 4×5 block is constructed with the point whose coordinates are (p , p) in the new turtle shell magic matrix as the lower right corner, and the upper right corner of the block is deducted 4 elements of the corner, use the remaining 16 elements to hide one of the hexadecimal numbers; if the pixel p belongs to the lower turtle edge point (311, 312, 314) or the lower turtle back point (313), Then construct a 4×5 block with (p ,p) as the upper left corner, deduct the 4 elements in the lower left corner of the block, and use the remaining 16 elements to hide a hexadecimal number.

根据上述方法,在图2所示的新的龟壳魔术矩阵中任意的绘制一个4×5的块(如图2中方框所示) ,那么其中的元素一定会包含0-15,且右上角和左下角的4个元素是重复的,如图2中的虚线圆圈所示。因此扣除其中的4个重复的元素,余下的16个元素值一定属于[0,15],所绘制的4×5的块具有如图4的两种情况:According to the above method, draw a 4×5 block arbitrarily in the new turtle shell magic matrix shown in Figure 2 (as shown in the box in Figure 2), then the elements in it must contain 0-15, and the upper right corner must be and the 4 elements in the lower left corner are repeated, as indicated by the dashed circles in Figure 2. Therefore, after deducting 4 repeated elements, the remaining 16 element values must belong to [0, 15], and the drawn 4×5 block has two situations as shown in Figure 4:

图4示出了本发明的一个实施例的两种基于4×5的块的秘密信息隐藏方式分类示意图,一类是以右上角4个元素为一组(标记为t) ,其余的16个元素为一组(标记为t1) ,如图401所示,若所述像素p属于上龟边点(321、322、324)或上龟背点(323)时,用t1中的点来藏入十六进制数。另一类是以左下角4个元素为一组(标记为b) ,其余的16个元素为一组(标记为b1) ,如图402所示,若所述像素p属于下龟边点(311、312、314)或下龟背点(313)时,用b1中的点来藏入十六进制数。Fig. 4 is a schematic diagram showing the classification of two secret information hiding methods based on 4×5 blocks according to an embodiment of the present invention, one is a group of 4 elements in the upper right corner (marked as t), and the remaining 16 The elements are a group (marked as t1), as shown in Figure 401, if the pixel p belongs to the upper turtle edge point (321, 322, 324) or the upper turtle back point (323), use the point in t1 to hide Enter a hexadecimal number. The other type is that there are 4 elements in the lower left corner as a group (marked as b), and the remaining 16 elements are grouped as a group (marked as b1), as shown in Figure 402, if the pixel p belongs to the lower turtle edge point ( 311, 312, 314) or the lower turtle back point (313), use the point in b1 to hide the hexadecimal number.

图5示出了本发明的一个具体的实施例的利用新的龟壳魔术矩阵进行数据藏入的示意图,例如图5中的点(4,4) ,(6,6)和(8,8)属于上龟边点或上龟背点,则以(p ,p)为右下角元素构造一个4×5的块,扣除块中右上角的4个元素,即使用t1中的16个元素来藏入一个十六进制的数;例如图5中的点(3,3) ,(5,5)和(7,7)属于下龟边点或下龟背点,则以(p,p)为左上角构造一个4×5的块,扣除块中左下角的4个元素,即使用b1中的16个元素来藏入一个十六进制的数。FIG. 5 shows a schematic diagram of data hiding using a new turtle shell magic matrix according to a specific embodiment of the present invention, such as points (4, 4), (6, 6) and (8, 8 in FIG. 5 ) ) belongs to the upper turtle edge point or upper turtle back point, then a 4×5 block is constructed with (p ,p) as the lower right corner element, and the 4 elements in the upper right corner of the block are deducted, that is, 16 elements in t1 are used to Hide a hexadecimal number; for example, the points (3, 3), (5, 5) and (7, 7) in Figure 5 belong to the lower turtle edge point or lower turtle back point, then use (p, p ) constructs a 4×5 block for the upper left corner, deducting the 4 elements in the lower left corner of the block, that is, using the 16 elements in b1 to hide a hexadecimal number.

在具体的实施例中,不同的p藏入相同的数v时,可能会发生位置冲突问题。比如,当位置(4,4)和(6,6)都藏入数值v=1时,这两个位置的元素都会移动到(2,6) ,这就导致无法正确恢复原始像素。因此本发明中设置一种规则对这些可能引起混淆的点进行移动。In a specific embodiment, when different p hides the same number v, a position conflict problem may occur. For example, when both positions (4, 4) and (6, 6) are hidden with the value v=1, the elements at these two positions will be moved to (2, 6), which makes it impossible to restore the original pixel correctly. Therefore, in the present invention, a rule is set to move these points that may cause confusion.

图6是本发明的一个实施例的冲突点的移动规则示意图,移动规则具体包括:6 is a schematic diagram of a movement rule of a conflict point according to an embodiment of the present invention, and the movement rule specifically includes:

如图601所示,若所述像素p属于上龟边点(321、322、324)或上龟背点(323) ,则将所述藏入范围中第一行的最后一列的元素bf和第二行的最后一列的元素bs按照如下规则移动:As shown in Figure 601, if the pixel p belongs to the upper turtle edge point (321, 322, 324) or the upper turtle back point (323), the elements bf and the last column of the first row and the last column in the hidden range are The element bs of the last column of the second row is moved according to the following rules:

Figure 275228DEST_PATH_IMAGE026
Figure 275228DEST_PATH_IMAGE026

如图602所示,若所述像素p属于下龟边点(311、312、314)或下龟背点(313) ,则将所述藏入范围中最后一行的第一列的元素lf和倒数第二行的第一列的元素ls按照如下规则移动:As shown in Figure 602, if the pixel p belongs to the lower turtle edge point (311, 312, 314) or the lower turtle back point (313), the elements lf and the first column of the last row in the hidden range are The element ls in the first column of the penultimate row moves according to the following rules:

Figure 447583DEST_PATH_IMAGE028
Figure 447583DEST_PATH_IMAGE028

在具体的实施例中,步骤S3中,若所述像素p∈[0 ,2]或p∈[253 ,255],令p1=p2= p,并直接执行所述步骤S4。In a specific embodiment, in step S3, if the pixel is p∈[0,2] or p∈[253,255], let p1=p2=p, and directly execute step S4.

S104:将p1赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中S104: Assign p1 to the position corresponding to the pixel p in the original image, and traverse the original image

的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第二秘密图像。Perform step S3 for all pixels in the original image and all hexadecimal numbers in the secret information to obtain a first secret image, assign p2 to the position corresponding to the pixel p in the original image, and traverse the original image. Step S3 is performed for all pixels of and all hexadecimal numbers in the secret information to obtain a second secret image.

在具体的实施例中,还包括对图像中的秘密信息进行萃取的步骤,具体包括:In a specific embodiment, it also includes the step of extracting the secret information in the image, which specifically includes:

A1:执行所述步骤S1,得到所述新的龟壳魔术矩阵;A1: Execute the step S1 to obtain the new turtle shell magic matrix;

A2:依次从所述第一秘密图像和所述第二秘密图像的相同位置取出所述p1和p2 ,定义差值d=p1-p2 ,其中差值d的可能取值范围如图7所示,可知d的取值范围为[-8,8],若d> 0,则表示原始像素p属于下龟边点或下龟背点;若d<0,则表示原始像素p属于上龟边点或上龟背点;A2: Take out the p1 and p2 from the same position of the first secret image and the second secret image in turn, and define the difference d=p1-p2, where the possible value range of the difference d is shown in Figure 7 , it can be seen that the value range of d is [-8, 8]. If d > 0, it means that the original pixel p belongs to the lower turtle edge point or the lower turtle back point; if d < 0, it means that the original pixel p belongs to the upper turtle edge point or upper turtle back point;

A3:根据以下规则进行秘密信息萃取:A3: Secret information extraction is performed according to the following rules:

(1)若d=0且p1和p2属于边缘点,则所述第一秘密图像和所述第二秘密图像中对应的点中没有藏入秘密信息;若d=0且p1和p2不属于边缘点,则藏入的十六进制的秘密信息v 为所述新的龟壳魔术矩阵中点(p1 ,p2)的值;(1) If d=0 and p1 and p2 belong to edge points, no secret information is hidden in the corresponding points in the first secret image and the second secret image; if d=0 and p1 and p2 do not belong to edge point, the hidden hexadecimal secret information v is the value of the midpoint (p1, p2) of the new turtle shell magic matrix;

(2)若d<0,则藏入的十六进制的秘密信息v根据以下规则获得:(2) If d<0, the hidden hexadecimal secret information v is obtained according to the following rules:

Figure 602621DEST_PATH_IMAGE030
Figure 602621DEST_PATH_IMAGE030

(3)若d>0 ,则藏入的十六进制的秘密信息v根据以下规则获得:(3) If d>0, the hidden hexadecimal secret information v is obtained according to the following rules:

Figure 763606DEST_PATH_IMAGE032
Figure 763606DEST_PATH_IMAGE032

其中M(p1 ,p2)表示所述新的龟壳魔术矩阵中点(p1 ,p2)的值。where M(p1 , p2) represents the value of the midpoint (p1 , p2) of the new turtle shell magic matrix.

在具体的实施例中,还包括对原始图片进行恢复的步骤,具体包括在所述步骤A1-In a specific embodiment, it also includes the step of restoring the original picture, which is specifically included in the step A1-

A3后执行以下原始图片恢复算法:Execute the following original image recovery algorithm after A3:

(1)若d=0,则原始像素p=p1; (1) If d=0, then the original pixel p=p1;

(2)若d<0,则p可以通过以下方式获得: (2) If d<0, then p can be obtained in the following ways:

Figure 611476DEST_PATH_IMAGE034
Figure 611476DEST_PATH_IMAGE034

(3)若d>0,则p可以通过以下方式获得: (3) If d>0, then p can be obtained in the following ways:

Figure 739969DEST_PATH_IMAGE036
Figure 739969DEST_PATH_IMAGE036

还原出原始图像中对应的位置上的像素p,从而还原出原始图像。The pixel p at the corresponding position in the original image is restored, thereby restoring the original image.

图8示出了本发明的一个实施例的一种基于双图像的可逆数据隐藏系统的框架图。该系统包括新的龟壳魔术矩阵构建模块801、秘密信息预处理模块802、秘密信息隐藏模块803和秘密图像生成模块804。FIG. 8 shows a frame diagram of a dual-image-based reversible data hiding system according to an embodiment of the present invention. The system includes a new turtle shell magic matrix building module 801 , a secret information preprocessing module 802 , a secret information hiding module 803 and a secret image generating module 804 .

在具体的实施例中,新的龟壳魔术矩阵构建模块801被配置用于构造一个横纵坐 标范围为[0 ,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的 相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中 的元素值进行模8运算,使元素值在[0 ,7]之间,最后用多个连续的六边形覆盖所述矩阵, 得到龟壳魔术矩阵,将所述龟壳魔术矩阵中位于龟背点(313、323)的元素各加数值“8”,得 到新的龟壳魔术矩阵;秘密信息预处理模块802被配置用于将需要藏入的秘密信息转换成 一串二进制数,再将每4个二进制数转成一个十六进制数;秘密信息隐藏模块803被配置用 于从原始图像中取出一个像素p(p∈[0 ,255]) ,将所述像素p扩充成一个坐标(p ,p) ,若 所述像素

Figure 698698DEST_PATH_IMAGE038
Figure 743883DEST_PATH_IMAGE040
从所述秘密信息中获取一个十六进制数,记 为v,根据所述点(p ,p)在所述新的龟壳魔术矩阵中的位置的不同确定藏入范围,在所述藏 入范围中找到使坐标对应的值为v的坐标(p1 ,p2) ,并根据移动规则对所述坐标(p1 ,p2) 存在冲突的点进行移动;秘密图像生成模块804被配置用于将p1赋值给所述原始图像中所 述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进 制数运行秘密信息隐藏模块,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对 应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数运行秘 密信息隐藏模块,得到第二秘密图像。 In a specific embodiment, the new turtle shell magic matrix construction module 801 is configured to construct a matrix whose abscissa and ordinate are in the range of [0, 255], so that the values of adjacent elements in the same row in the matrix differ by 1, and Incrementing in turn, the value of the two adjacent elements in the same column even column is 2 more than the value of the odd column, the value of the odd column is 3 more than the value of the even column, and then the element value in the matrix is modulo 8 operation, so that the element The value is between [0, 7], and finally cover the matrix with a plurality of continuous hexagons to obtain the turtle shell magic matrix. Add the value "8" to obtain a new turtle shell magic matrix; the secret information preprocessing module 802 is configured to convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number The secret information hiding module 803 is configured to extract a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate (p,p), if the pixel
Figure 698698DEST_PATH_IMAGE038
and
Figure 743883DEST_PATH_IMAGE040
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the point (p , p) in the new turtle shell magic matrix. find the coordinates (p1, p2) with the value v corresponding to the coordinates in the range, and move the points where the coordinates (p1, p2) conflict according to the moving rules; the secret image generation module 804 is configured to convert p1 assigning a value to the position corresponding to the pixel p in the original image, and traversing all the pixels in the original image and all the hexadecimal numbers in the secret information to run the secret information hiding module to obtain the first secret image, Assign p2 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to run the secret information hiding module to obtain the second secret image.

通过以上模块的共同作用首先将龟背点的元素值各加数值“8”的方式,扩大了新的龟壳魔术矩阵中元素值的范围,从而增加了新的龟壳魔术矩阵隐藏秘密数据的藏量,再执行新型的可逆藏入算法,在对原始图像改动较少的情况下能很好地隐藏秘密数据并恢复原始图像,相比于传统基于图像的秘密数据隐藏算法,拥有在藏量较高的情况下同时保证隐藏后的图像质量的优点。Through the joint action of the above modules, the element value of the turtle back point is firstly added with the value "8", which expands the range of element values in the new turtle shell magic matrix, thereby increasing the hidden secret data of the new turtle shell magic matrix. It can hide the secret data well and restore the original image under the condition of less changes to the original image. Compared with the traditional image-based secret data hiding algorithm, it has more storage capacity. In higher cases, the advantage of the hidden image quality is guaranteed at the same time.

为了验证本发明的可靠性和有益效果,发明人进行了一系列实验,利用藏量(ER)和藏入秘密数据后的图像品质(PSNR)来衡量本发明的算法与本领域其他传统算法相比的优越性,两者的值越大表示算法越优。In order to verify the reliability and beneficial effects of the present invention, the inventors conducted a series of experiments, using the storage capacity (ER) and the image quality (PSNR) after hiding secret data to evaluate the algorithm of the present invention and other traditional algorithms in the field. The superiority of the ratio, the larger the value of the two, the better the algorithm.

其中,ER的计量单位是bpp,即单个像素能藏入的比特数,PSNR指的是图像的峰值信噪比,单位是dB,用以下公式来计算: Among them, the unit of measurement of ER is bpp, that is, the number of bits that can be hidden in a single pixel, and PSNR refers to the peak signal-to-noise ratio of the image, and the unit is dB, which is calculated by the following formula:

Figure 231496DEST_PATH_IMAGE042
Figure 231496DEST_PATH_IMAGE042

Figure 847286DEST_PATH_IMAGE044
Figure 847286DEST_PATH_IMAGE044

其中H和W表示图像的宽度和高度,m和m1表示原始图像和藏有秘密数据的图像,下标(i ,j)表示第i行第j列的位置。Where H and W represent the width and height of the image, m and m1 represent the original image and the image containing the secret data, and the subscript (i,j) represents the position of the i-th row and the j-th column.

在本实施例中,选取了基于数独 矩阵的双图像可逆数据隐藏方法[1]、基于EMD矩阵的双图像可逆数据隐藏方法[2]、基于原始龟壳矩阵的双图像可逆数据隐藏方法[3]和基In this embodiment, the dual-image reversible data hiding method based on Sudoku matrix [1], the EMD matrix-based dual-image reversible data hiding method [2], and the original turtle-shell matrix-based dual-image reversible data hiding method [ 3] and base

于龟壳矩阵的实时双图像可逆数据隐藏方法[4]四种方法来与本发明的方法进行对比。The real-time double-image reversible data hiding method [4] based on turtle shell matrix is compared with the method of the present invention.

图9示出了本发明的一个具体的实施例的不同方法的最大藏量值比较图,可以看出,除了方法[1],本发明提出的方法和其他的方法相比能获得更高的藏量。Fig. 9 shows a comparison chart of the maximum reserves value of different methods of a specific embodiment of the present invention. It can be seen that, in addition to method [1], the method proposed by the present invention can obtain higher than other methods. holding capacity.

图10是本发明的一个具体的实施例的最大藏量的情况下,不同方法的图像品质值比较图,图10是在最大ER值情况下,本发明和其他方法的PSNR值的对比结果。可以看出,虽然方法[1]和本发明的方法获得一样高的ER值,但是本发明的方法能保持较高的图像品质,和方法[2,3,4]相比,虽然本发明的方法在PSNR上没有优势,但是本发明的方法能比这些方法获得更高的藏量。FIG. 10 is a comparison diagram of image quality values of different methods in the case of the maximum storage capacity of a specific embodiment of the present invention, and FIG. 10 is a comparison result of PSNR values of the present invention and other methods in the case of the maximum ER value. It can be seen that although the method [1] and the method of the present invention obtain the same high ER value, the method of the present invention can maintain higher image quality, and compared with the methods [2, 3, 4], although the method of the present invention The method has no advantage in PSNR, but the method of the present invention can obtain higher reserves than these methods.

本发明的实施例还涉及一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被计算机处理器执行时实施上文中的方法。该计算机程序包含用于执行流程图所示的方法的程序代码。需要说明的是,本申请的计算机可读介质可以是计算机可读信号介质或者计算机可读介质或者是上述两者的任意组合。Embodiments of the present invention also relate to a computer-readable storage medium having stored thereon a computer program that, when executed by a computer processor, implements the above method. The computer program contains program code for carrying out the method shown in the flowchart. It should be noted that the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable medium, or any combination of the above two.

本发明给出了一种基于双图像的可逆数据隐藏方法与系统,包括在原有的龟壳魔术矩阵的基础上通过将龟背点的元素值各加数值“8”的方式得到新的龟壳魔术矩阵,扩大了矩阵中元素值的范围,增加了矩阵隐藏秘密数据的藏量,同时又发明了新型的可逆藏入算法,将秘密数据转换成十六进制数藏入新的龟壳魔术矩阵中,得到两两对应的秘密图像;在秘密数据提取的阶段根据新型的可逆藏入算法制定对应的数据提取规则来提取秘密数据,并恢复原始图像。本发明在对原始图像改动较少的情况下能很好地隐藏秘密数据并恢复原始图像,相比于传统基于图像的数据隐藏算法,拥有在藏量较高的情况下同时保证隐藏后的图像质量的优点,使得秘密数据能更加安全地被隐藏。The invention provides a double-image-based reversible data hiding method and system, which includes obtaining a new turtle shell by adding "8" to the element values of the turtle back points on the basis of the original turtle shell magic matrix. Magic matrix, which expands the range of element values in the matrix, increases the amount of hidden secret data hidden in the matrix, and at the same time invents a new type of reversible hiding algorithm, which converts the secret data into hexadecimal numbers and hides them in a new turtle shell magic In the matrix, the corresponding secret images are obtained; in the stage of secret data extraction, the corresponding data extraction rules are formulated according to the new reversible hiding algorithm to extract the secret data and restore the original image. The invention can hide secret data well and restore the original image under the condition of less changes to the original image. Compared with the traditional image-based data hiding algorithm, the invention can guarantee the hidden image at the same time under the condition of high storage capacity. The advantage of quality, so that secret data can be hidden more securely.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (7)

1.一种基于双图像的可逆数据隐藏方法,其特征在于,包括以下步骤:1. a reversible data hiding method based on double image, is characterized in that, comprises the following steps: S1:构造一个横纵坐标范围为[0,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中的元素值进行模8运算,使元素值在[0,7]之间,最后用多个相连拼接的六边形覆盖所述矩阵,得到龟壳魔术矩阵,其中,所述矩阵中位于所述六边形的边缘处的点属于龟边点,未处于所述六边形的边缘处的点属于龟背点,将所述龟壳魔术矩阵中位于龟背点的元素各加数值“8”,得到新的龟壳魔术矩阵;S1: Construct a matrix whose abscissa and ordinate range is [0, 255], so that the values of adjacent elements in the same row in the matrix differ by 1, and increase in turn, and the values of even columns of adjacent two elements in the same column are higher than odd ones. The value of the column is 2 more, the value of the odd column is 3 more than the value of the even column, and then the element value in the matrix is modulo 8 operation, so that the element value is between [0, 7]. The polygon covers the matrix to obtain a turtle shell magic matrix, wherein the points located at the edge of the hexagon in the matrix belong to the turtle edge points, and the points not located at the edge of the hexagon belong to the turtle back point, add the value "8" to the elements located at the turtle back point in the turtle shell magic matrix to obtain a new turtle shell magic matrix; S2:将需要藏入的秘密信息转换成一串二进制数,再将每4个二进制数转成一个十六进制数;S2: Convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number; S3:从原始图像中取出一个像素p(p∈[0,255]) ,将所述像素p扩充成一个坐标点(p, p) ,若所述像素
Figure 863184DEST_PATH_IMAGE002
Figure 513608DEST_PATH_IMAGE004
从所述秘密信息中获取一 个十六进制数,记为v,根据所述坐标点(p,p)在所述新的龟壳魔术矩阵中的位置的不同确 定藏入范围,在所述藏入范围中找到使坐标对应的值为v的坐标(p1 ,p2) ,并根据移动规 则对所述坐标(p1 ,p2)存在冲突的点进行移动;
S3: Take out a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate point (p, p), if the pixel
Figure 863184DEST_PATH_IMAGE002
and
Figure 513608DEST_PATH_IMAGE004
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the coordinate point (p, p) in the new turtle shell magic matrix. Find the coordinates (p1, p2) with the value v corresponding to the coordinates in the hiding range, and move the points with conflicting coordinates (p1, p2) according to the moving rules;
S4:将p1赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数执行步骤S3,得到第二秘密图像;S4: Assign p1 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to perform step S3 to obtain the first secret image, assign p2 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to perform step S3 to obtain the second secret image; 其中,所述根据所述坐标点(p,p)在所述新的龟壳魔术矩阵中的位置的不同确定藏入范围,具体步骤包括: 将所述龟背点中纵坐标更大的点记为上龟背点,所述龟背点中纵坐标更小的点记为下龟背点,所述龟边点中纵坐标最小或纵坐标与所述上龟背点相等的三个点记为上龟边点,所述龟边点中纵坐标最大或纵坐标与所述下龟背点相等的三个点记为下龟边点,若所述像素p属于上龟边点或上龟背点,则以所述新的龟壳魔术矩阵中坐标为(p,p)的点为右下角构造一个4×5的块,扣除块中右上角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数;若所述像素p属于下龟边点或下龟背点,则以坐标为 (p,p) 的点为左上角构造一个4×5的块,扣除块中左下角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数。Wherein, according to the different positions of the coordinate points (p, p) in the new turtle shell magic matrix to determine the hiding range, the specific steps include: It is recorded as the upper turtle back point, the point with the smaller ordinate in the turtle back point is recorded as the lower turtle back point, and the three points where the ordinate is the smallest or the ordinate is equal to the upper turtle back point in the turtle edge point It is recorded as the upper turtle edge point, and the three points whose ordinate is the largest or the ordinate is equal to the lower turtle back point in the turtle edge point are recorded as the lower turtle edge point, if the pixel p belongs to the upper turtle edge point or the upper turtle edge point. Turtle back point, construct a 4×5 block with the point whose coordinates are (p, p) in the new turtle shell magic matrix as the lower right corner, deduct the 4 elements in the upper right corner of the block, and use the remaining 16 element to hide a hexadecimal number; if the pixel p belongs to the lower turtle edge point or the lower turtle back point, a 4×5 block is constructed with the point whose coordinates are (p, p) as the upper left corner , subtract the 4 elements in the lower left corner of the block, and use the remaining 16 elements to hide one of said hexadecimal numbers.
2.根据权利要求1所述的方法,其特征在于,所述移动规则具体包括:2. The method according to claim 1, wherein the movement rule specifically comprises: 若所述像素p属于上龟边点或上龟背点,则将所述藏入范围中第一行的最后一列的元素bf和第二行的最后一列的元素bs按照如下规则移动:If the pixel p belongs to the upper turtle edge point or the upper turtle back point, move the element bf of the last column of the first row and the element bs of the last column of the second row in the hidden range according to the following rules:
Figure 437702DEST_PATH_IMAGE006
Figure 437702DEST_PATH_IMAGE006
若所述像素p属于下龟边点或下龟背点,则将所述藏入范围中最后一行的第一列的元素lf和倒数第二行的第一列的元素ls按照如下规则移动:If the pixel p belongs to the lower turtle edge point or the lower turtle back point, the element lf of the first column of the last row and the element ls of the first column of the second to last row in the hidden range are moved according to the following rules:
Figure 291520DEST_PATH_IMAGE008
Figure 291520DEST_PATH_IMAGE008
.
3.根据权利要求1所述的方法,其特征在于,在所述步骤S3中,若所述像素p∈[0,2]或p3. The method according to claim 1, wherein in the step S3, if the pixel p∈[0,2] or p ∈[253,255],令p1=p2=p,并直接执行所述步骤S4。∈ [253, 255], let p1=p2=p, and directly execute the step S4. 4.根据权利要求1所述的方法,其特征在于,还包括对图像中的秘密信息进行萃取的步骤,具体包括:4. The method according to claim 1, further comprising the step of extracting the secret information in the image, specifically comprising: A1:执行所述步骤S1,得到所述新的龟壳魔术矩阵;A1: Execute the step S1 to obtain the new turtle shell magic matrix; A2:依次从所述第一秘密图像和所述第二秘密图像的相同位置取出所述p1和p2,定义差值d=p1-p2;A2: Take out the p1 and p2 from the same position of the first secret image and the second secret image in sequence, and define the difference d=p1-p2; A3:根据以下规则进行秘密信息萃取:A3: Secret information extraction is performed according to the following rules: (1) 若d=0且p1和p2属于边缘点,则所述第一秘密图像和所述第二秘密图像中对应的点中没有藏入秘密信息;若d=0且p1和p2不属于边缘点,则藏入的十六进制的秘密信息v为所述新的龟壳魔术矩阵中点(p1,p2)的值;(1) If d=0 and p1 and p2 belong to edge points, no secret information is hidden in the corresponding points in the first secret image and the second secret image; if d=0 and p1 and p2 do not belong to edge point, the hidden hexadecimal secret information v is the value of the midpoint (p1, p2) of the new turtle shell magic matrix; (2) 若d<0,则藏入的十六进制的秘密信息v根据以下规则获得:(2) If d<0, the hidden secret information v in hexadecimal is obtained according to the following rules:
Figure 326472DEST_PATH_IMAGE010
Figure 326472DEST_PATH_IMAGE010
(3) 若d>0,则藏入的十六进制的秘密信息v根据以下规则获得:(3) If d>0, the hidden hexadecimal secret information v is obtained according to the following rules:
Figure 96982DEST_PATH_IMAGE012
Figure 96982DEST_PATH_IMAGE012
其中M(p1,p2)表示所述新的龟壳魔术矩阵中点(p1,p2)的值。Wherein M(p1, p2) represents the value of the midpoint (p1, p2) of the new turtle shell magic matrix.
5.根据权利要求4所述的方法,其特征在于,还包括对原始图片进行恢复的步骤,具体包括在所述步骤A1-A3后执行以下原始图片恢复算法:5. The method according to claim 4, further comprising the step of restoring the original picture, specifically comprising executing the following original picture restoration algorithm after the steps A1-A3: (1) 若d=0,则原始像素p=p1;(1) If d=0, then the original pixel p=p1; (2) 若d<0,则p通过以下方式获得:(2) If d<0, then p is obtained in the following way:
Figure 191977DEST_PATH_IMAGE014
Figure 191977DEST_PATH_IMAGE014
(3) 若d>0,则p通过以下方式获得:(3) If d>0, then p is obtained in the following ways:
Figure 234888DEST_PATH_IMAGE016
Figure 234888DEST_PATH_IMAGE016
还原出原始图像中对应的位置上的像素p,从而还原出原始图像。The pixel p at the corresponding position in the original image is restored, thereby restoring the original image.
6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被计算机处理器执行时实施权利要求1至5中任一项所述的方法。6. A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a computer processor, the method according to any one of claims 1 to 5 is implemented. 7.一种基于双图像的可逆数据隐藏系统,其特征在于,包括:7. A reversible data hiding system based on double image, is characterized in that, comprises: 新的龟壳魔术矩阵构建模块:配置用于构造一个横纵坐标范围为[0,255]的矩阵,使矩阵中同一行的相邻元素的值相差1,且依次递增,同一列的相邻的两个元素偶数列的值比奇数列的值多2,奇数列的值比偶数列的值多3,再将矩阵中的元素值进行模8运算,使元素值在[0,7]之间,最后用多个相连拼接的六边形覆盖所述矩阵,得到龟壳魔术矩阵,其中,所述矩阵中位于所述六边形的边缘处的点属于龟边点,未处于所述六边形的边缘处的点属于龟背点,将所述龟壳魔术矩阵中位于龟背点的元素各加数值“8”,得到新的龟壳魔术矩阵;New tortoise shell magic matrix building block: Configured to construct a matrix with abscissa and ordinate range of [0, 255], so that the values of adjacent elements in the same row in the matrix differ by 1, and increase in sequence, and adjacent elements in the same column are adjacent to each other. The value of the even column of the two elements is 2 more than the value of the odd column, and the value of the odd column is 3 more than the value of the even column, and then the element value in the matrix is modulo 8 operation, so that the element value is between [0, 7] Finally, the matrix is covered with a plurality of connected and spliced hexagons to obtain a turtle shell magic matrix, wherein the points located at the edges of the hexagons in the matrix belong to the turtle edge points and are not located in the hexagons. The point at the edge of the polygon belongs to the turtle back point, and each element located at the turtle back point in the turtle shell magic matrix is added with a value of "8" to obtain a new turtle shell magic matrix; 秘密信息预处理模块:配置用于将需要藏入的秘密信息转换成一串二进制数,再将每4个二进制数转成一个十六进制数;Secret information preprocessing module: configured to convert the secret information to be hidden into a string of binary numbers, and then convert every 4 binary numbers into a hexadecimal number; 秘密信息隐藏模块:配置用于从原始图像中取出一个像素p(p∈[0,255]) ,将所述像 素 p扩充成一个坐标点(p,p) ,若所述像素
Figure 870269DEST_PATH_IMAGE018
Figure 698547DEST_PATH_IMAGE020
从所述秘密信息中获取一个十六进制数,记为v,根据所述坐标点(p,p)在所述新的龟壳魔 术矩阵中的位置的不同确定藏入范围,在所述藏入范围中找到使坐标对应的值为v的坐标 (p1,p2) ,并根据移动规则对所述坐标(p1,p2)存在冲突的点进行移动;
Secret information hiding module: configured to take out a pixel p(p∈[0,255]) from the original image, and expand the pixel p into a coordinate point (p,p), if the pixel
Figure 870269DEST_PATH_IMAGE018
and
Figure 698547DEST_PATH_IMAGE020
Obtain a hexadecimal number from the secret information, denoted as v, and determine the hiding range according to the position of the coordinate point (p, p) in the new turtle shell magic matrix. Find the coordinates (p1, p2) with the value v corresponding to the coordinates in the hiding range, and move the points with conflicting coordinates (p1, p2) according to the moving rules;
秘密图像生成模块:配置用于将p1赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数运行秘密信息隐藏模块,得到第一秘密图像,将p2赋值给所述原始图像中所述像素p对应的位置,并遍历所述原始图像中的所有像素和所述秘密信息中的所有十六进制数运行秘密信息隐藏模块,得到第二秘密图像;Secret image generation module: configured to assign p1 to the position corresponding to the pixel p in the original image, and traverse all the pixels in the original image and all the hexadecimal numbers in the secret information to run the secret The information hiding module obtains the first secret image, assigns p2 to the position corresponding to the pixel p in the original image, and traverses all pixels in the original image and all hexadecimal numbers in the secret information Run the secret information hiding module to obtain the second secret image; 藏入范围确定模块:配置用于将所述龟背点中纵坐标更大的点记为上龟背点,所述龟背点中纵坐标更小的点记为下龟背点,所述龟边点中纵坐标最小或纵坐标与所述上龟背点相等的三个点记为上龟边点,所述龟边点中纵坐标最大或纵坐标与所述下龟背点相等的三个点记为下龟边点,若所述像素p属于上龟边点或上龟背点,则以所述新的龟壳魔术矩阵中坐标为(p,p)的点为右下角构造一个4×5的块,扣除块中右上角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数;若所述像素p属于下龟边点或下龟背点,则以坐标为(p,p)的点为左上角构造一个4×5的块,扣除块中左下角的4个元素,使用剩余的16个元素来藏入一个所述十六进制数。The hiding range determination module is configured to record the point with a larger ordinate in the turtle back point as the upper turtle back point, and the point with the smaller vertical coordinate in the turtle back point as the lower turtle back point. Among the turtle edge points, the three points whose ordinate is the smallest or whose ordinate is equal to the upper turtle back point are recorded as the upper turtle edge point, and the one whose ordinate is the largest or whose ordinate is equal to the lower turtle edge point in the turtle edge point. The three points are recorded as the lower turtle edge point. If the pixel p belongs to the upper turtle edge point or the upper turtle back point, the point with the coordinates (p, p) in the new turtle shell magic matrix is used as the lower right corner to construct. A 4×5 block, deduct the 4 elements in the upper right corner of the block, and use the remaining 16 elements to hide a hexadecimal number; if the pixel p belongs to the lower turtle edge point or the lower turtle back point , then construct a 4×5 block with the point whose coordinates are (p, p) as the upper left corner, deduct the 4 elements in the lower left corner of the block, and use the remaining 16 elements to hide a hexadecimal number .
CN202011292406.3A 2020-11-18 2020-11-18 A dual-image-based reversible data hiding method and system Active CN112380551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011292406.3A CN112380551B (en) 2020-11-18 2020-11-18 A dual-image-based reversible data hiding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011292406.3A CN112380551B (en) 2020-11-18 2020-11-18 A dual-image-based reversible data hiding method and system

Publications (2)

Publication Number Publication Date
CN112380551A CN112380551A (en) 2021-02-19
CN112380551B true CN112380551B (en) 2022-07-08

Family

ID=74584268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011292406.3A Active CN112380551B (en) 2020-11-18 2020-11-18 A dual-image-based reversible data hiding method and system

Country Status (1)

Country Link
CN (1) CN112380551B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107369186A (en) * 2017-07-17 2017-11-21 西北工业大学 A method and device for hiding information
CN111161124A (en) * 2019-12-30 2020-05-15 福建师范大学福清分校 Image Steganography Method Based on Mean Square Error Evaluation of Reference Matrix Model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107369186A (en) * 2017-07-17 2017-11-21 西北工业大学 A method and device for hiding information
CN111161124A (en) * 2019-12-30 2020-05-15 福建师范大学福清分校 Image Steganography Method Based on Mean Square Error Evaluation of Reference Matrix Model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Data Hiding Based on a Two-Layer Turtle ShellMatrix;Xiao-Zhu Xie etc.;《symmetry》;20180213;1-14 *
一种基于AES的图像篡改检测方案;张亦明 等;《物联网技术》;20160820(第8期);69-74 *

Also Published As

Publication number Publication date
CN112380551A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
US8879839B2 (en) Image processing apparatus, image processing method, and storage medium
CN109872279B (en) Intelligent cloud platform face recognition and local encryption method based on neural network
JP6543764B2 (en) Security authentication method for digital video content and system therefor
CN106530197A (en) Image encryption method based on Kent mapping and generalized Gray codes
Fang Visual Cryptography in reversible style
CN112380551B (en) A dual-image-based reversible data hiding method and system
Li et al. Reversible data hiding for encrypted 3D model based on prediction error expansion
CN118115345A (en) Reversible image watermarking method based on quadratic prediction error and bidirectional embedding
CN113160028B (en) Information hiding and recovering method and equipment based on colorful character picture and storage medium
CN117201695A (en) Generative camouflage, recovery method and system for stone paintings combined with Bezier curves
CN108876691B (en) Self-adaptive reversible watermarking method and system
CN112395628B (en) Maze generation information hiding and recovery method, device and readable storage medium
CN111177742B (en) Multi-image encryption method and decryption method based on light field principle and chaotic system
CN111275603B (en) Security image steganography method based on style conversion and electronic device
JP2015060421A (en) Similar image search method, and similar image search device
CN114969796A (en) An image steganography method and system combining QR code and S-box chaotic scrambling
CN112184841A (en) Block replacement generating type information hiding and recovering method, device and medium
CN111968023B (en) Dual-image reversible data hiding method based on EMD matrix
CN110188569B (en) Information hiding method and robot system based on big data and Fourier transform
CN110135181B (en) Information hiding method and robot based on big data search and Fourier transform
CN115755559B (en) Holographic information embedding/recovering method and system based on IFS fractal graph splicing
CN117993416B (en) Multi-dimensional code construction method and multi-dimensional code recognition method
Li et al. A novel extended secret image sharing scheme based on sharing matrix
CN112235291B (en) Pixel-by-pixel texture generation type information hiding and recovering method, equipment and medium
CN115134142B (en) An information hiding method and system based on file segmentation

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