[go: up one dir, main page]

CN109660693B - Robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients - Google Patents

Robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients Download PDF

Info

Publication number
CN109660693B
CN109660693B CN201811284843.3A CN201811284843A CN109660693B CN 109660693 B CN109660693 B CN 109660693B CN 201811284843 A CN201811284843 A CN 201811284843A CN 109660693 B CN109660693 B CN 109660693B
Authority
CN
China
Prior art keywords
code
serial concatenated
decoding
codes
coding
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
CN201811284843.3A
Other languages
Chinese (zh)
Other versions
CN109660693A (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.)
PLA Information Engineering University
Original Assignee
PLA Information Engineering University
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 PLA Information Engineering University filed Critical PLA Information Engineering University
Publication of CN109660693A publication Critical patent/CN109660693A/en
Application granted granted Critical
Publication of CN109660693B publication Critical patent/CN109660693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/32277Compression
    • 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
    • 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/32154Transform domain methods
    • H04N1/32165Transform domain methods using cosine transforms
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention relates to Information Hiding Techniques fields, more particularly to the jpeg image robust steganography method based on serial concatenation of codes and DCT coefficient relativeness.Jpeg image robust steganography method based on serial concatenation of codes and DCT coefficient relativeness, comprising: determine modifier area;Design corresponding distortion function;Message to be embedded is encoded using Error Correction of Coding;Error Correction of Coding is embedded in using robust steganography;Carry out JPEG compression;It is obtained using the decoding of steganography containing wrong information flow, and carries out error correction using the decoding of Error Correction of Coding;Obtain the message of original insertion.The present invention can be in the wider middle JPEG compression attack for resisting the different quality factor, and can guarantee that insertion message can be extracted completely with high probability, meanwhile, in the case where carrying same secret message, the present invention has stronger anti-detection.

Description

基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写 方法Robust Steganography of JPEG Images Based on Relative Relationship between Serial Concatenated Codes and DCT Coefficients method

技术领域technical field

本发明涉及信息隐藏技术领域,尤其涉及基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法。The invention relates to the technical field of information hiding, in particular to a robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients.

背景技术Background technique

隐写术是一种利用公开载体构建隐蔽通讯信道的技术。近些年,随着移动通讯技术的发展,越来越多的数字载体通过智能移动终端进行接送,然而由于带宽、资费、流量等限制,终端往往会对在这类信道传输的载体进行有损压缩,从而导致经典的隐写术在这类情况下无法正确的提取嵌入消息。因此,研究能在这类信道中完整的提取嵌入消息,且较鲁棒水印算法具有更强抗隐写检测性的隐写算法,具有很高的实用价值。Steganography is a technology that uses public carriers to construct covert communication channels. In recent years, with the development of mobile communication technology, more and more digital carriers are sent to and received from smart mobile terminals. However, due to limitations of bandwidth, tariffs, traffic, etc., terminals often damage the carriers transmitted on such channels. compression, so that classical steganography cannot correctly extract embedded messages in such cases. Therefore, it is of high practical value to study a steganographic algorithm that can completely extract and embed messages in such channels and has stronger anti-steganographic detection performance than robust watermarking algorithms.

已有的鲁棒隐写算法DCRAS(DCT Coefficient Relationship Based AdaptiveSteganography)比传统的JPEG自适应隐写算法在抵抗JPEG压缩的性能上有很大提升,且较鲁棒水印算法具有更强的抗检测性。但是该算法在抵抗JPEG压缩时,在JPEG压缩攻击的质量因子与载体图像质量因子不同时,秘密消息难以完全正确提取出来,这种情况下,提取出的消息存在1%左右的错误,从而导致一些实际应用中的问题,研究如何降低此错误率,保证消息能够高概率的完全正确提取出,同时提高其安全性,即抗检测性,是目前鲁棒隐写需要解决的问题。Compared with the traditional JPEG adaptive steganography algorithm, the existing robust steganography algorithm DCRAS (DCT Coefficient Relationship Based Adaptive Steganography) has greatly improved the performance of resisting JPEG compression, and has stronger detection resistance than the robust watermarking algorithm. . However, when the algorithm resists JPEG compression, when the quality factor of JPEG compression attack is different from that of the carrier image, it is difficult to extract the secret message completely and correctly. In this case, the extracted message has about 1% error, which leads to For some practical application problems, how to reduce this error rate, ensure that the message can be extracted completely and correctly with a high probability, and at the same time improve its security, that is, anti-detection, is a problem that needs to be solved in robust steganography.

发明内容SUMMARY OF THE INVENTION

针对上述鲁棒隐写需要解决的问题,本发明提出基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,提高了嵌入消息的正确提取率和安全性。Aiming at the above problems to be solved by robust steganography, the present invention proposes a robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients, which improves the correct extraction rate and security of embedded messages.

为了实现上述目的,本发明采用以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,包括以下步骤:A robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients, including the following steps:

步骤1:确定修改区域;Step 1: Determine the modification area;

步骤2:设计相应的失真函数;Step 2: Design the corresponding distortion function;

步骤3:利用纠错编码对待嵌入消息进行编码;Step 3: use error correction coding to encode the message to be embedded;

步骤4:利用鲁棒隐写嵌入纠错编码;Step 4: Use robust steganography to embed error correction coding;

步骤5:进行JPEG压缩;Step 5: JPEG compression;

步骤6:利用隐写的译码得到含错的信息流,并使用纠错编码的译码进行纠错;Step 6: utilize steganographic decoding to obtain an error-containing information stream, and use the decoding of error correction coding to correct errors;

步骤7:得到原始嵌入的消息。Step 7: Get the original embedded message.

优选地,所述步骤1包括:Preferably, the step 1 includes:

步骤1.1:对JPEG图像进行解码,得到DCT系数的分块;Step 1.1: Decode the JPEG image to obtain blocks of DCT coefficients;

步骤1.2:将DCT系数的分块对应到虚拟隐写载体的元素上;Step 1.2: correspond the blocks of the DCT coefficients to the elements of the virtual steganographic carrier;

步骤1.3:建立鲁棒信道。Step 1.3: Establish a robust channel.

优选地,所述步骤2指为虚拟隐写载体的元素设计相应的失真函数。Preferably, the step 2 refers to designing corresponding distortion functions for the elements of the virtual steganographic carrier.

优选地,所述纠错编码为串行级联码,所述串行级联码由外码和内码两部分组成。Preferably, the error correction code is a serial concatenated code, and the serial concatenated code is composed of an outer code and an inner code.

优选地,编码时,串行级联码按照先编外码再编内码的顺序进行;译码时,按照和编码时的反向顺序进行。Preferably, during encoding, the serial concatenated code is performed in the order of encoding the outer code first and then the inner code; during decoding, it is performed in the reverse order of encoding.

优选地,在设计串行级联码时所述外码使用卷积码且所述内码使用RS编码。Preferably, the outer code uses a convolutional code and the inner code uses RS coding when designing a serial concatenated code.

优选地,所述步骤3包括:Preferably, the step 3 includes:

步骤3.1:使用码率为2/3的(3,2,5)卷积码对待嵌入消息进行外编码,得到外码码字,并对输出的外码码字进行打孔;Step 3.1: use (3, 2, 5) convolutional code with a code rate of 2/3 to perform outer encoding on the message to be embedded to obtain an outer code word, and puncture the output outer code word;

步骤3.2:对打孔后的外码码字进行交织操作;Step 3.2: perform an interleaving operation on the punctured outer code word;

步骤3.3:使用码率为3/4的(200,150,8)RS编码对交织操作后的外码码字进行内编码。Step 3.3: Use (200, 150, 8) RS coding with a code rate of 3/4 to perform inner coding on the outer code word after the interleaving operation.

优选地,卷积码的译码为维特比译码算法,且码深度为25。Preferably, the decoding of the convolutional code is a Viterbi decoding algorithm, and the code depth is 25.

优选地,RS编码的译码为最小距离译码,且码深度为25。Preferably, the coding of the RS code is minimum distance coding, and the code depth is 25.

与现有技术相比,本发明具有的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明提出针对鲁棒隐写的新的纠错编码,该编码由卷积码和RS编码两部分组成,其中卷积码为外码,RS编码为内码,内、外码中间利用交织器进行级联,并设定适合的编码参数,利用此编码改进后的鲁棒隐写算法能够在更大范围中抵抗不同质量因子的JPEG压缩攻击。The present invention proposes a new error correction code for robust steganography. The code consists of two parts: a convolutional code and an RS code, wherein the convolutional code is an outer code, the RS code is an inner code, and an interleaver is used between the inner and outer codes. By cascading and setting appropriate encoding parameters, the improved robust steganography algorithm can resist JPEG compression attacks with different quality factors in a wider range.

本发明针对如何进一步提高鲁棒隐写算法抗压缩性和抗检测性的问题,在鲁棒隐写算法的基础上提出基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,通过设计串行级联码,利用卷积码和RS编码的特点,并结合打孔技术,提出一种适用于鲁棒隐写的高纠错能力、高码率的串行级联码,并在它的基础上对鲁棒隐写算法进行了改进,本发明能以高概率保证嵌入消息能被完整地提取出来,同时,承载相同秘密消息的情况下,本发明提出的方法具有更强的抗检测性。Aiming at the problem of how to further improve the compression resistance and detection resistance of the robust steganography algorithm, the invention proposes a robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients on the basis of the robust steganography algorithm , by designing serial concatenated codes, using the characteristics of convolutional codes and RS coding, and combining with puncturing technology, a serial concatenated code with high error correction capability and high code rate suitable for robust steganography is proposed. And the robust steganography algorithm is improved on its basis. The present invention can ensure that the embedded message can be completely extracted with high probability. At the same time, under the condition of carrying the same secret message, the method proposed by the present invention has stronger performance. detection resistance.

附图说明Description of drawings

图1为本发明基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法的基本流程示意图之一。FIG. 1 is one of the basic flow charts of the robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients according to the present invention.

图2为本发明基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法的基本流程示意图之二。FIG. 2 is the second schematic flow chart of the basic flow chart of the robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients according to the present invention.

图3为本发明基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法的串行级联码的构造示意图。FIG. 3 is a schematic diagram of the structure of the serial concatenated code of the JPEG image robust steganography method based on the relative relationship between the serial concatenated code and the DCT coefficients of the present invention.

图4为本发明基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法的卷积码的结构示意图。FIG. 4 is a schematic structural diagram of a convolutional code of a robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients according to the present invention.

具体实施方式Detailed ways

为了便于理解,对本发明的具体实施方式中出现的部分名词作以下解释说明:For ease of understanding, the following explanations are made to some terms that appear in the specific embodiments of the present invention:

RS编码:是Irving S.Reed和Gustave Solomon提出的一类基于有限域上一元多项式的线性分组编码。RS coding: It is a kind of linear grouping coding based on the finite field unary polynomial proposed by Irving S. Reed and Gustave Solomon.

下面结合附图和具体的实施例对本发明做进一步的解释说明:The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments:

实施例一:Example 1:

如图1所示,本发明的一种基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,包括以下步骤:As shown in Figure 1, a JPEG image robust steganography method based on the relative relationship between serial concatenated codes and DCT coefficients of the present invention comprises the following steps:

步骤S101:确定修改区域;Step S101: determine the modification area;

步骤S102:设计相应的失真函数;Step S102: Design a corresponding distortion function;

步骤S103:利用纠错编码对待嵌入消息进行编码;Step S103: use error correction coding to encode the message to be embedded;

步骤S104:利用隐写嵌入纠错编码;Step S104: using steganography to embed error correction coding;

步骤S105:进行JPEG压缩;Step S105: perform JPEG compression;

步骤S106:利用纠错编码的译码得到含错的信息流,并进行纠错;Step S106: use the decoding of error correction coding to obtain an error-containing information stream, and perform error correction;

步骤S107:得到原始嵌入的消息。Step S107: Obtain the original embedded message.

实施例二:Embodiment 2:

如图2所示,本发明的另一种基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,包括以下步骤:As shown in Figure 2, another JPEG image robust steganography method based on the relative relationship between serial concatenated codes and DCT coefficients of the present invention comprises the following steps:

步骤S201:确定修改区域,包括:Step S201: Determine the modification area, including:

步骤S2011:对JPEG图像I进行解码,得到一系列量化取整后DCT系数D的8×8分块Dk={Dk(i),i=1,2,...,64},其中,k=1,2,...,B,B为图像8×8分块的总块数,Dk(i)表示第k个量化DCT分块中第i个系数;Step S2011: Decode the JPEG image I to obtain a series of 8×8 blocks D k ={D k (i),i=1,2,...,64} of the quantized and rounded DCT coefficients D, where , k=1,2,...,B, B is the total number of blocks of 8×8 image blocks, D k (i) represents the ith coefficient in the kth quantized DCT block;

步骤S2012:利用DCT系数Dk(i)与相邻分块相同块内位置DCT系数均值的相对关系,将4个相邻DCT系数对应到一个长度为l1的虚拟隐写载体上的元素xj上,1≤j≤l1,满足:Step S2012: Use the DCT coefficient D k (i) to use the DCT coefficient of the same position in the adjacent block as the adjacent block mean The relative relationship of the 4 adjacent DCT coefficients Corresponds to a virtual steganographic carrier of length l 1 On the element x j on , 1≤j≤l 1 , satisfies:

步骤S2013:建立鲁棒信道:Step S2013: Establish a robust channel:

在X作为载体的基础上建立鲁棒信道,即确定如何将X嵌入消息后得到的载密映射到原载体{Dk}1≤k≤B上:Establish a robust channel on the basis of X as a carrier, that is, determine how to embed X into the message and get the carrier secret Map to the original vector {D k } 1≤k≤B :

确定式(2)中σki的值,设 且T1,T2为给定的阈值且T1<T2,则参数σki由下式确定:To determine the value of σ ki in formula (2), set And T 1 , T 2 are given thresholds and T 1 <T 2 , then the parameter σ ki is determined by the following formula:

其中,T1=15,T2=30,得到嵌入0时的参数集和嵌入1时的参数集 Among them, T 1 =15, T 2 =30, get the parameter set when 0 is embedded and the parameter set when embedding 1

步骤S202:为虚拟隐写载体的元素设计相应的失真函数:Step S202: Design a corresponding distortion function for the elements of the virtual steganographic carrier:

将抗检测性能较强的J-UNIWARD算法失真函数与提出的鲁棒信道结合,且预先知道所遭受JPEG压缩攻击的质量因子qf,可以将载体图像IMG使用质量因子为qf的JPEG压缩进行一次压缩,压缩后得到其图像DCT系数的8×8分块和邻域均值利用这个预处理得到的设计出X上的失真函数DFR(xj,yj):The distortion function of the J-UNIWARD algorithm with strong anti-detection performance Combined with the proposed robust channel, and knowing the quality factor qf of the JPEG compression attack suffered in advance, the carrier image IMG can be compressed once using JPEG compression with a quality factor of qf, and after compression, we get Its image DCT coefficients 8x8 blocks of and the neighborhood mean Using this preprocessing and Design the distortion function DFR(x j ,y j ) on X:

其中,分别为DCT系数Dk(i)在嵌入消息后修改幅度为1和2的J-UNIWARD失真值且wet_cost表示湿点失真值,通常设为较大值,令STC编码在进行嵌入时尽可能不修改该点。之后便可使用式(4)所定义的失真函数在鲁棒载体X上利用STC编码嵌入秘密消息得到载密对象Y,并利用式(2)对载体进行实际的修改,从而得到嵌入秘密消息后能抵抗JPEG压缩的载密载体。in, and J-UNIWARD distortion values of magnitude 1 and 2 modified by the DCT coefficients D k (i) after embedding the message, respectively And wet_cost represents the wet point distortion value, which is usually set to a large value, so that the STC code does not modify this point as much as possible during embedding. Then, the distortion function defined by equation (4) can be used to embed the secret message on the robust carrier X with STC encoding to obtain the secret object Y, and the carrier can be actually modified by equation (2), so as to obtain the embedded secret message. A dense carrier that is resistant to JPEG compression.

步骤S203:利用纠错编码对待嵌入消息进行编码,所述纠错编码为串行级联码,所述串行级联码由外码和内码两部分组成;串行级联码的基本构造如图3所示,其中,编码时,串行级联码按照先编外码再编内码的顺序进行;译码时,按照和编码时的反向顺序进行;步骤S203进一步包括:Step S203: Use error correction coding to encode the message to be embedded, the error correction coding is a serial concatenated code, and the serial concatenated code is composed of two parts: an outer code and an inner code; the basic structure of the serial concatenated code As shown in Figure 3, wherein, during encoding, the serial concatenated code is performed in the order of first encoding the outer code and then encoding the inner code; during decoding, it is performed in the reverse order of encoding and encoding; Step S203 further includes:

步骤S2031:使用码率为2/3的(3,2,5)卷积码对待嵌入消息进行外编码,得到外码码字,并对输出的外码码字进行打孔,具体如下:Step S2031: Use (3, 2, 5) convolutional code with a code rate of 2/3 to perform outer encoding on the message to be embedded to obtain an outer code word, and puncture the output outer code word, as follows:

一个卷积码也可表示为(n,k,t),其中,n为编码器输出的数据分组比特长度,k为编码器输入的数据分组比特长度,t为卷积码约束长度。A convolutional code can also be expressed as (n, k, t), where n is the bit length of the data packet output by the encoder, k is the bit length of the data packet input by the encoder, and t is the convolutional code constraint length.

将待嵌入的秘密消息比特序列msgi∈{0,1}每2比特分为一组,如果l2不为偶数,则在最后补一个0比特,得到分组后的消息序列其中cmi=(msg2i-1,msg2i)。The secret message bit sequence to be embedded msg i ∈{0,1} is divided into groups of 2 bits. If l 2 is not an even number, add a 0 bit at the end to obtain the grouped message sequence where cm i =(msg 2i-1 , msg 2i ).

构建的所使用的外码为一个典型的码率为2/3的(3,2,5)卷积码,对分组消息序列cm进行编码,得到外码码字序列l4=3l3,卷积码的结构如图4所示。The outer code used in the construction is a (3,2,5) convolutional code with a typical code rate of 2/3, and the packet message sequence cm is encoded to obtain the outer code codeword sequence l 4 =3l 3 , and the structure of the convolutional code is shown in FIG. 4 .

可以看出,该卷积码的特点是其输出的码字不止与当前输入的信息比特组有关,还与其之前的t-1个输入的信息比特组有关,其编码特点是具有迭代性。同时,该卷积码编码器每输入2比特信息,将会输出3比特的卷积码字,即表示该串行级联码的码率为2/3。为使码率进一步提高,使用打孔矩阵PM对编码后的码字进行打孔:It can be seen that the characteristic of the convolutional code is that the output codeword is not only related to the current input information bit group, but also to the previous t-1 input information bit group, and its encoding characteristic is iterative. At the same time, the convolutional code encoder will output a 3-bit convolutional code word for every 2 bits of information input, which means that the code rate of the serial concatenated code is 2/3. In order to further improve the code rate, use the puncturing matrix PM to puncture the encoded codeword:

矩阵PM中的三列分别表示外码码字序列oc中的三组码字(oc3i-2,oc3i-1,oc3i)T,i=v,v+1,v+2输出比特如何取舍,打孔前将编码器的输出比特序列按照PM的列数进行分组,如果矩阵中元素为“1”则表示其对应的输出比特被保留,如果矩阵中元素为“0”则表示对应的输出比特被舍去。矩阵PM的设计思想是:oc3i-2是原序列元素,所以在打孔时应对该序列元素全部保留;同时,oc3i-1和oc3i作为卷积迭代信息的输出元素,所以在打孔时oc2和oc1中的元素在同一时刻上不能同时舍去,即打孔矩阵的下两行的同一列不同时为“0”。当将外编码器得到的码序列按照式(5)进行打孔后,得到打孔后的外码码字序列ocpunc,外码的码率变为(6/9)×(9/7)=6/7。The three columns in the matrix PM respectively represent the three groups of code words (oc 3i-2 , oc 3i-1 , oc 3i ) T , i=v, v+1, v+2 in the outer code code word sequence oc how the output bits are To choose, group the output bit sequence of the encoder according to the number of columns of PM before punching. If the element in the matrix is "1", it means that the corresponding output bit is reserved, and if the element in the matrix is "0", it means that the corresponding output bit is reserved. Output bits are truncated. The design idea of matrix PM is: oc 3i-2 is the original sequence element, so all the sequence elements should be reserved when punching; at the same time, oc 3i-1 and oc 3i are used as the output elements of convolution iteration information, so when punching At the same time, the elements in oc2 and oc1 cannot be discarded at the same time, that is, the same column of the next two rows of the punching matrix is not "0" at the same time. When the code sequence obtained by the outer encoder is punctured according to formula (5), the punctured outer code codeword sequence oc punc is obtained , and the code rate of the outer code becomes (6/9)×(9/7) =6/7.

步骤S2032:得到外编码码字ocpunc后,将其进行交织操作,以减少内外码之间的相关性从而提高级联码的性能,使用的交织器是随机交织,即通过一个密钥seed控制的伪随机生成器将外编码序列进行随机置乱,得到置乱后的外编码码字iocpunc,接着再进行内编码。Step S2032: After obtaining the outer code word oc punc , perform an interleaving operation to reduce the correlation between the inner and outer codes and improve the performance of the concatenated code. The interleaver used is random interleaving, that is, controlled by a key seed. The pseudo-random generator of scrambles the outer coding sequence randomly to obtain the scrambled outer coding codeword ioc punc , and then performs inner coding.

步骤S2033:使用码率为3/4的(200,150,8)RS编码对交织操作后的外码码字进行内编码,具体如下:Step S2033: Use (200, 150, 8) RS coding with a code rate of 3/4 to perform inner coding on the outer code word after the interleaving operation, as follows:

将RS编码的编码参数记为(N,K,M),其中N为编码器输出的数据分组比特长度,N≤2M,K为编码器输入的数据分组比特长度,M为GF(2M)的本原多项式的阶数,码率为K/N,设参数使用的参数为(200,150,8),伽罗华域GF(2M),M=8上码率为3/4的RS编码,伽罗华域GF(2M)的本原多项式PRM(x)设为:Denote the coding parameters of RS coding as (N, K, M), where N is the bit length of the data packet output by the encoder, N≤2 M , K is the bit length of the data packet input by the encoder, and M is GF(2 M ) of the order of the primitive polynomial, the code rate is K/N, set the parameter The parameters used are (200, 150, 8), Galois Field GF(2 M ), RS coding with a code rate of 3/4 on M=8, the primitive polynomial PRM(x of Galois Field GF(2 M ) ) is set to:

PRM(x)=x8+x4+x3+x2+1(6)PRM(x)= x8 + x4 + x3 + x2 +1(6)

RS编码拥有2M-1=255个码字,其中每个码字都可以看成是伽罗华有限域GF(2M)中的一个元素,而RS编码的生成多项式g(x)的构造为:RS coding has 2 M -1=255 code words, each of which can be regarded as an element in Galois finite field GF(2 M ), and the construction of the generator polynomial g(x) of RS coding for:

g(x)=(x+α1)(x+α2)…(x+α2T)=x50+g49x49+…+g1x+g0(7)g(x)=(x+α 1 )(x+α 2 )…(x+α 2T )=x 50 +g 49 x 49 +…+g 1 x+g 0 (7)

其中,α是GF(2M)中的素元,gi∈GF(2M),i=0,1,...,49。where α is a prime element in GF(2 M ), gi ∈ GF(2 M ), i=0,1,...,49.

完成上述RS编码预操作后,将交织操作后的外码码字iocpunc进行实际的RS编码:首先把iocpunc按照RS编码的参数K=150进行分组(在码字尾部补零使其能够被K整除),得到待RS编码的分组序列其对应的信息多项式为:After completing the above-mentioned RS encoding pre-operation, perform actual RS encoding on the outer code word ioc punc after the interleaving operation: firstly, the ioc punc is grouped according to the parameter K=150 of RS encoding (zero-filling at the end of the code word enables it to be Divisible by K) to obtain the packet sequence to be encoded by RS The corresponding information polynomial is:

编码后的码字由前面K=150个信息码元符号,后面N-K=50个纠正码元构成,而为了得到其对应的多项式,首先将信息码,即待编码的码字对应的多项式m(i)(x)提升N-K=50阶,即乘以x50;然后与生成多项式g(x)相除得到余数r(x);最后计算出x50m(i)(x)+r(x)即为编码后的码字所对应的多项式,其可抵抗的最长连续错误比特长度T=25。The encoded code word is composed of K=150 information symbol symbols in the front, and NK=50 correction symbols in the back, and in order to obtain its corresponding polynomial, first the information code, that is, the polynomial m ( i) (x) upgrade NK=50 order, namely multiply by x 50 ; then divide with the generator polynomial g(x) to obtain the remainder r(x); finally calculate x 50 m (i) (x)+r(x ) is the polynomial corresponding to the encoded codeword, and the longest continuous error bit length that it can resist is T=25.

步骤S204:利用鲁棒隐写嵌入纠错编码;Step S204: using robust steganography to embed error correction coding;

作为一种可实施方式,利用STC编码隐写嵌入纠错编码。As an implementation manner, STC coding is used to steganographically embed error correction coding.

步骤S205:公开信道进行JPEG压缩。Step S205: Open the channel for JPEG compression.

步骤S206:利用STC译码得到含错的信息流,使用纠错码的译码方法进行纠错:Step S206: use STC decoding to obtain an error-containing information stream, and use the decoding method of error-correcting codes to correct errors:

外码的译码即卷积码的译码为维特比译码算法,且码深度为25;内码的译码即RS编码的译码为最小距离译码,且码深度为25;The decoding of the outer code, that is, the decoding of the convolutional code, is the Viterbi decoding algorithm, and the code depth is 25; the decoding of the inner code, that is, the decoding of the RS code, is the minimum distance decoding, and the code depth is 25;

译码时按照先译内码再译外码的顺序、即先内解码再外解码的顺序进行。The decoding is performed according to the order of decoding the inner code first and then decoding the outer code, that is, the order of decoding the inner code first and then decoding the outer code.

步骤S207:得到原始嵌入的消息:根据STC编码提取算法得到嵌入的消息;Step S207: obtain the original embedded message: obtain the embedded message according to the STC code extraction algorithm;

经过JPEG压缩后图像记为其图像DCT系数、分块以及邻域均值分别记为 提取出的载密载体记为其提取规则如下:The image after JPEG compression is recorded as The image DCT coefficient, block and neighborhood mean are respectively recorded as and The extracted carrier is recorded as Its extraction rules are as follows:

以上所示仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (6)

1.基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,包括以下步骤:1. based on the JPEG image robust steganography method of serial concatenated code and DCT coefficient relative relation, it is characterized in that, comprise the following steps: 步骤1:确定修改区域;Step 1: Determine the modification area; 所述步骤1包括:The step 1 includes: 步骤1.1:对JPEG图像进行解码,得到DCT系数的分块;Step 1.1: Decode the JPEG image to obtain blocks of DCT coefficients; 步骤1.2:将DCT系数的分块对应到虚拟隐写载体的元素上;Step 1.2: correspond the blocks of the DCT coefficients to the elements of the virtual steganographic carrier; 步骤1.3:建立鲁棒信道;Step 1.3: Establish a robust channel; 步骤2:为虚拟隐写载体的元素设计相应的失真函数;Step 2: Design a corresponding distortion function for the elements of the virtual steganographic carrier; 步骤3:利用纠错编码对待嵌入消息进行编码;Step 3: use error correction coding to encode the message to be embedded; 步骤4:利用鲁棒隐写嵌入纠错编码;所述纠错编码为串行级联码,所述串行级联码由外码和内码两部分组成;Step 4: using robust steganography to embed error correction codes; the error correction codes are serial concatenated codes, and the serial concatenated codes are composed of two parts, an outer code and an inner code; 步骤5:进行JPEG压缩;Step 5: JPEG compression; 步骤6:利用隐写的译码得到含错的信息流,并使用纠错编码的译码进行纠错;Step 6: utilize steganographic decoding to obtain an error-containing information stream, and use the decoding of error correction coding to correct errors; 步骤7:得到原始嵌入的消息。Step 7: Get the original embedded message. 2.根据权利要求1所述的基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,编码时,串行级联码按照先编外码再编内码的顺序进行;译码时,按照和编码时的反向顺序进行。2. the JPEG image robust steganography method based on the relative relation of serial concatenated codes and DCT coefficients according to claim 1, it is characterized in that, during encoding, serial concatenated codes are encoded according to the encoding of the outer code first and then the inner code. Order; when decoding, follow the reverse order of encoding. 3.根据权利要求1所述的基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,在设计串行级联码时所述外码使用卷积码且所述内码使用RS编码。3. the JPEG image robust steganography method based on the relative relationship between serial concatenated codes and DCT coefficients according to claim 1, is characterized in that, when designing serial concatenated codes, the outer code uses convolutional codes and The inner code uses RS coding. 4.根据权利要求1所述的基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,所述步骤3包括:4. the JPEG image robust steganography method based on the relative relation of serial concatenated codes and DCT coefficients according to claim 1, is characterized in that, described step 3 comprises: 步骤3.1:使用码率为2/3的(3,2,5)卷积码对待嵌入消息进行外编码,得到外码码字,并对输出的外码码字进行打孔;Step 3.1: use the (3, 2, 5) convolutional code with a code rate of 2/3 to perform outer encoding on the message to be embedded to obtain an outer code word, and puncture the output outer code word; 步骤3.2:对打孔后的外码码字进行交织操作;Step 3.2: perform an interleaving operation on the punctured outer code word; 步骤3.3:使用码率为3/4的(200,150,8)RS编码对交织操作后的外码码字进行内编码。Step 3.3: Use (200, 150, 8) RS coding with a code rate of 3/4 to perform inner coding on the outer code word after the interleaving operation. 5.根据权利要求3或4所述的基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,卷积码的译码为维特比译码算法,且码深度为25。5. the JPEG image robust steganography method based on the relative relation of serial concatenated codes and DCT coefficients according to claim 3 or 4, is characterized in that, the decoding of convolutional code is Viterbi decoding algorithm, and the code The depth is 25. 6.根据权利要求3或4所述的基于串行级联码和DCT系数相对关系的JPEG图像鲁棒隐写方法,其特征在于,RS编码的译码为最小距离译码,且码深度为25。6. the JPEG image robust steganography method based on the relative relation of serial concatenated codes and DCT coefficients according to claim 3 or 4, is characterized in that, the decoding of RS code is minimum distance decoding, and the code depth is 25.
CN201811284843.3A 2017-12-12 2018-10-31 Robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients Active CN109660693B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711317539.XA CN108024028A (en) 2017-12-12 2017-12-12 Jpeg image robust steganography method based on serial concatenation of codes and DCT coefficient relativeness
CN201711317539X 2017-12-12

Publications (2)

Publication Number Publication Date
CN109660693A CN109660693A (en) 2019-04-19
CN109660693B true CN109660693B (en) 2019-11-22

Family

ID=62073169

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201711317539.XA Withdrawn CN108024028A (en) 2017-12-12 2017-12-12 Jpeg image robust steganography method based on serial concatenation of codes and DCT coefficient relativeness
CN201811284843.3A Active CN109660693B (en) 2017-12-12 2018-10-31 Robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201711317539.XA Withdrawn CN108024028A (en) 2017-12-12 2017-12-12 Jpeg image robust steganography method based on serial concatenation of codes and DCT coefficient relativeness

Country Status (1)

Country Link
CN (2) CN108024028A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109033853B (en) * 2018-07-09 2020-07-17 深圳大学 Convolutional code-based physical layer information hiding method, device, and terminal
CN109447885B (en) * 2018-09-17 2022-12-20 中国人民解放军战略支援部队信息工程大学 Robust image steganography method based on DCT coefficient difference
CN109784082A (en) * 2019-02-21 2019-05-21 中国科学技术大学 A robust steganography method and system for image-text correlation based on PDF files
CN110334805B (en) * 2019-05-05 2022-10-25 中山大学 A Generative Adversarial Network-Based Method and System for Image Steganography in JPEG Domain
CN111062851B (en) * 2019-12-13 2022-09-30 中国人民解放军战略支援部队信息工程大学 Image steganography method for resisting statistical detection and scaling attack

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002125205A (en) * 2000-10-18 2002-04-26 Nec Corp Electronic watermark detector and electronic watermark detection method
CN101449572A (en) * 2006-05-18 2009-06-03 汤姆森特许公司 Data hiding techniques
CN103476026A (en) * 2013-09-06 2013-12-25 中国科学院软件研究所 Self-adaption covert communication method based on satellite channel coding
CN105306778A (en) * 2015-10-14 2016-02-03 中国科学院大学 Security watermark algorithm combining cryptography

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7974477B2 (en) * 2007-02-19 2011-07-05 New Jersey Institute Of Technology Apparatus and method for reversible data hiding for JPEG images
CN103345767B (en) * 2013-07-02 2016-08-10 中国科学技术大学 A kind of JPEG image steganography method of high security

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002125205A (en) * 2000-10-18 2002-04-26 Nec Corp Electronic watermark detector and electronic watermark detection method
CN101449572A (en) * 2006-05-18 2009-06-03 汤姆森特许公司 Data hiding techniques
CN103476026A (en) * 2013-09-06 2013-12-25 中国科学院软件研究所 Self-adaption covert communication method based on satellite channel coding
CN105306778A (en) * 2015-10-14 2016-02-03 中国科学院大学 Security watermark algorithm combining cryptography

Also Published As

Publication number Publication date
CN109660693A (en) 2019-04-19
CN108024028A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN109660693B (en) Robust steganography method for JPEG images based on the relative relationship between serial concatenated codes and DCT coefficients
KR102557435B1 (en) Transmitter and segmentation method thereof
CN103476026B (en) Self-adaption covert communication method based on satellite channel coding
CN101510781B (en) Method and device for filling dummy argument for interlace and de-interlace process as well as processing system
US10862510B2 (en) Transmitter and shortening method thereof
KR20240018558A (en) Apparatus of inverse parity puncturing for variable-length signaling information and method using the same
CN107592959B (en) Transmitting apparatus
KR101970824B1 (en) Transmitter and segmentation method thereof
WO2018149411A1 (en) Data processing method and device
KR20160105311A (en) Apparatus of parity interleaving for encoding variable-length signaling information and method using the same
CN112202455B (en) Send method and receive method
US20020159614A1 (en) Message coding for digital watermark applications
KR20240024869A (en) Apparatus of inverse zero padding for variable-length signaling information and method using the same
CN104618067B (en) The coding and modulator approach of physical frame signaling channel in NGB W systems
KR102638450B1 (en) Apparatus of zero padding for encoding variable-length signaling information and method using the same
CN101326728A (en) TURBO code interleaver for low frame error rates
CN106685597B (en) A Partial Division Ring Coding Method of Raptor Codes Based on Degree Optimization
WO2009129675A1 (en) A decoding method and device for reed-solomon code
CN110266321B (en) A new polar code-based communication method and system
CN112187287B (en) Transmitting apparatus and receiving apparatus
CN105933107B (en) An Error Correction Encryption Method Based on LDPC Transcoding Technology
CN101583031A (en) Wavelet based image compression transmission method
CN108880748A (en) Coding and decoding method of rateless Spinal code based on Latin square matrix
CN107888334A (en) Random volume, decoder and method based on LT codes and LDPC code cascade
KR102634684B1 (en) Apparatus of parity puncturing for encoding variable-length signaling information and method using the same

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