CN102223561A - Blind watermark embedding and extracting method of stereoscopic video image - Google Patents
Blind watermark embedding and extracting method of stereoscopic video image Download PDFInfo
- Publication number
- CN102223561A CN102223561A CN2011101836360A CN201110183636A CN102223561A CN 102223561 A CN102223561 A CN 102223561A CN 2011101836360 A CN2011101836360 A CN 2011101836360A CN 201110183636 A CN201110183636 A CN 201110183636A CN 102223561 A CN102223561 A CN 102223561A
- Authority
- CN
- China
- Prior art keywords
- image block
- stereoscopic video
- coefficient
- discrete cosine
- watermark
- 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.)
- Granted
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种立体视频图像的盲水印嵌入和提取方法,通过将立体视频图像分成互不重叠的图像块,对各个图像块实施离散余弦变换和二级离散小波变换,分析立体视频图像的左、右视点图像的离散余弦变换直流系数和二级离散小波变换的低频系数之间的大小关系,从而在立体视频图像中定义图像块的内部关系和两图像块间的块间关系,通过这些关系和水印信息是否一致来决定水印嵌入方式,其中关系嵌入时不改变原始立体视频图像的数据,量化嵌入时对离散余弦变换直流系数修改幅度小的图像块的离散余弦变换直流系数进行修改,这样有效保证了立体视频图像的质量;同时在水印提取时不需要原始立体视频图像,实现了盲检测。
The invention discloses a method for blind watermark embedding and extraction of a stereoscopic video image. By dividing the stereoscopic video image into non-overlapping image blocks, performing discrete cosine transform and secondary discrete wavelet transform on each image block, and analyzing the stereoscopic video image The size relationship between the discrete cosine transform DC coefficients of the left and right viewpoint images and the low-frequency coefficients of the second-level discrete wavelet transform, so as to define the internal relationship of the image block and the inter-block relationship between the two image blocks in the stereoscopic video image, through these Whether the relationship and the watermark information are consistent determines the watermark embedding method, wherein the data of the original stereoscopic video image is not changed when the relationship is embedded, and the DC coefficient of the image block whose DC coefficient is modified by the discrete cosine transform is modified when the quantization is embedded, so that The quality of the stereoscopic video image is effectively guaranteed; at the same time, the original stereoscopic video image is not needed when the watermark is extracted, and blind detection is realized.
Description
技术领域technical field
本发明涉及一种数字水印技术,尤其是涉及一种立体视频图像的盲水印嵌入和提取方法。The invention relates to a digital watermark technology, in particular to a method for blind watermark embedding and extraction of stereoscopic video images.
背景技术Background technique
立体视频图像展现的是某一场景或拍摄对象同一时刻在不同角度的信息,它增加了景物的深度信息,增强了视觉的现实感和逼真感。因此,立体视频系统在立体电视、三维视频会议、远程医疗和特殊效果的广告等领域都有广阔的应用前景。随着立体电影的问世,一些高端作品的非法复制和传播,使得知识产权受到威胁。因此,面向立体视频图像的版权保护措施是十分必要的。Stereoscopic video images show the information of a certain scene or object at different angles at the same moment, which increases the depth information of the scene and enhances the sense of visual reality and lifelikeness. Therefore, the stereoscopic video system has broad application prospects in fields such as stereoscopic television, three-dimensional video conferencing, telemedicine and special effect advertisements. With the advent of three-dimensional movies, the illegal duplication and dissemination of some high-end works have threatened intellectual property rights. Therefore, copyright protection measures for stereoscopic video images are very necessary.
数字水印技术能够很好地在数字图像、音频和视频等数字产品中嵌入一定的秘密信息,以便保护数字产品的版权、证明数字产品的真实可靠性、跟踪盗版行为或者提供产品的附加信息。根据不同的应用,数字水印可以分为鲁棒水印、脆弱水印和半脆弱水印。鲁棒水印用于版权保护等方面,而脆弱水印和半脆弱水印用于视频或多媒体数据的完整性检验。然而,现有的数字水印技术主要针对二维图像,而如何将数字水印技术应用到立体视频图像成为一个需要突破的问题。Digital watermarking technology can well embed certain secret information in digital products such as digital images, audio and video, so as to protect the copyright of digital products, prove the authenticity of digital products, track piracy or provide additional information of products. According to different applications, digital watermarking can be divided into robust watermarking, fragile watermarking and semi-fragile watermarking. Robust watermarks are used for copyright protection, while fragile watermarks and semi-fragile watermarks are used for integrity verification of video or multimedia data. However, the existing digital watermarking technology is mainly aimed at two-dimensional images, and how to apply digital watermarking technology to stereoscopic video images has become a problem that needs to be broken through.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种在保证立体视频图像质量基本保持不变或变化不大的前提下,能够有效地保护图像版权的盲水印嵌入和提取方法。The technical problem to be solved by the present invention is to provide a blind watermark embedding and extraction method that can effectively protect image copyright on the premise that the quality of stereoscopic video images remains basically unchanged or does not change much.
本发明解决上述技术问题所采用的技术方案为:一种立体视频图像的盲水印嵌入方法,其特征在于包括以下步骤:The technical solution adopted by the present invention to solve the above-mentioned technical problems is: a blind watermark embedding method for stereoscopic video images, which is characterized in that it comprises the following steps:
①在水印嵌入端,令Sorg为尺寸为M×N的原始立体视频图像,原始立体视频图像Sorg包括左视点图像和右视点图像,记原始立体视频图像Sorg的左视点图像为Lorg,记原始立体视频图像Sorg的右视点图像为Rorg,将原始立体视频图像Sorg的左视点图像Lorg和原始立体视频图像Sorg的右视点图像Rorg分别分成(M×N)/(n×n)个互不重叠的尺寸为n×n的图像块,将原始立体视频图像Sorg的左视点图像Lorg中的第i个图像块记为将原始立体视频图像Sorg的右视点图像Rorg中的第i个图像块记为原始立体视频图像Sorg的左视点图像Lorg中的第i个图像块和原始立体视频图像Sorg的右视点图像Rorg中的第i个图像块构成原始立体视频图像Sorg中的第i个图像块对,记为其中,M表示原始立体视频图像Sorg的宽,N表示原始立体视频图像Sorg的高,1≤i≤((M×N)/(n×n));①At the watermark embedding end, let S org be the original stereoscopic video image with size M×N, the original stereoscopic video image S org includes left viewpoint image and right viewpoint image, denote the left viewpoint image of the original stereoscopic video image S org as L org , record the right viewpoint image of the original stereoscopic video image S org as R org , divide the left viewpoint image L org of the original stereoscopic video image S org and the right viewpoint image R org of the original stereoscopic video image S org into (M×N)/ (n×n) non-overlapping image blocks of size n×n, the i-th image block in the left view image L org of the original stereoscopic video image S org is recorded as Denote the i-th image block in the right view image R org of the original stereoscopic video image S org as The i-th image block in the left view image L org of the original stereoscopic video image S org and the i-th image block in the right view image R org of the original stereoscopic video image S org Constitute the i-th image block pair in the original stereoscopic video image S org , denoted as Wherein, M represents the width of the original stereoscopic video image S org , N represents the height of the original stereoscopic video image S org , 1≤i≤((M×N)/(n×n));
②令W为尺寸为m×m的二值水印图像,对二值水印图像W进行置乱变换,得到置乱后的二值水印图像,记为其中,m×m≤((M×N)/(n×n));②Let W be a binary watermark image with a size of m×m, perform scrambling transformation on the binary watermark image W, and obtain the scrambled binary watermark image, denoted as Among them, m×m≤((M×N)/(n×n));
③依次对原始立体视频图像Sorg中的各个图像块对添加水印,其具体过程如下:3. Add watermarks to each image block in the original stereoscopic video image S org in turn, and its specific process is as follows:
③-1、定义当前正在处理的原始立体视频图像Sorg中的第i个图像块对为当前图像块对;③-1. Define the i-th image block pair in the original stereoscopic video image S org currently being processed is the current image block pair;
③-2、对当前图像块对中的分别进行离散余弦变换和二级离散小波变换,对当前图像块对中的分别进行离散余弦变换和二级离散小波变换;③-2. For the current image block pair middle Discrete cosine transform and two-level discrete wavelet transform are performed respectively, and the current image block pair middle Carry out discrete cosine transform and secondary discrete wavelet transform respectively;
③-3、令Intra-L表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-L为“1”,否则,置的内部关系Intra-L为“0”;令Intra-R表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-R为“1”,否则,置的内部关系Intra-R为“0”;令Intra表示的内部关系,判断的内部关系Intra-L和的内部关系Intra-R是否均为“1”,如果是,则置的内部关系Intra为“1”,否则,置的内部关系Intra为“0”;令Inter表示的块间关系,判断的离散余弦变换直流系数是否大于的离散余弦变换直流系数,如果是,则置的块间关系Inter为“1”,否则,置的块间关系Inter为“0”;③-3. Let Intra-L represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-L is "1", otherwise, set The internal relationship Intra-L of is "0"; let Intra-R represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-R is "1", otherwise, set The internal relationship Intra-R of is "0"; let Intra represent internal relationship, judgment The internal relationship of Intra-L and Whether the internal relations Intra-R of are all "1", if yes, then set The internal relation of Intra is "1", otherwise, set The internal relationship Intra of is "0"; let Inter represent The inter-block relationship, judging Is the discrete cosine transform DC coefficient greater than DC coefficient of discrete cosine transform, if yes, then set Inter-block relationship Inter is "1", otherwise, set The inter-block relationship Inter is "0";
上述的二级离散小波变换的设定位置的低频系数与的二级离散小波变换的设定位置的低频系数为各自图像块的二级离散小波变换的相同位置的低频系数;the above The low-frequency coefficients of the set position of the second-order discrete wavelet transform with The low-frequency coefficients at the set position of the second-level discrete wavelet transform are the low-frequency coefficients at the same position of the second-level discrete wavelet transform of the respective image blocks;
③-4、判断当前图像块对的内部关系Intra的值与置乱后的二值水印图像中的第i个二值像素点的像素值wi是否相同,如果相同,则不修改和的离散余弦变换直流系数,并标记当前图像块对的水印嵌入方式为00,然后执行步骤③-7;否则,执行步骤③-5;③-4. Judging the current image block pair The value of the internal relationship Intra and the binary watermarked image after scrambling Whether the pixel value w i of the i-th binary pixel point in is the same, if it is the same, it will not be modified and The DC coefficients of the discrete cosine transform, and mark the current image block pair The embedding mode of the watermark is 00, then perform step ③-7; otherwise, perform step ③-5;
③-5、判断当前图像块对的块间关系Inter的值与置乱后的二值水印图像中的第i个二值像素点的像素值wi是否相同,如果相同,则不修改和的离散余弦变换直流系数,并标记当前图像块对的水印嵌入方式为01,然后执行步骤③-7;否则,执行步骤③-6;③-5. Judging the current image block pair The value of inter-block relationship Inter and the binary watermark image after scrambling Whether the pixel value w i of the i-th binary pixel point in is the same, if it is the same, it will not be modified and The DC coefficients of the discrete cosine transform, and mark the current image block pair The embedding method of the watermark is 01, and then perform step ③-7; otherwise, perform step ③-6;
③-6、对和的离散余弦变换直流系数按照量化步长S分别进行量化,分别得到量化值QL,i和QR,i,
判断置乱后的二值水印图像中的第i个二值像素点的像素值wi是否为“1”,如果是,则修改当前图像块对中的任一个图像块的离散余弦变换直流系数,使修改后的和的离散余弦变换直流系数的奇偶性一致,并标记当前图像块对的水印嵌入方式为10,否则,修改当前图像块对中的任一个图像块的离散余弦变换直流系数,使修改后的和的离散余弦变换直流系数的奇偶性不一致,并标记当前图像块对的水印嵌入方式为10;Judging the binary watermarked image after scrambling Whether the pixel value w i of the i-th binary pixel in is "1", if yes, modify the current image block pair The discrete cosine transform DC coefficients of any image block in , so that the modified and The parity of the DC coefficients of the discrete cosine transform is consistent, and the current image block pair is marked The watermark embedding mode of is 10, otherwise, modify the current image block pair The discrete cosine transform DC coefficients of any image block in , so that the modified and The parity of the DC coefficients of the discrete cosine transform is inconsistent, and the current image block pair is marked The watermark embedding mode of is 10;
③-7、判断i≤m×m是否成立,如果成立,则将i值加1,将原始立体视频图像Sorg中的下一个图像块对作为当前图像块对,并重复执行步骤③-2至步骤③-7,直至处理完m×m个图像块对结束水印嵌入过程;③-7. Determine whether i≤m×m is true, if it is true, add 1 to the value of i, use the next image block pair in the original stereoscopic video image S org as the current image block pair, and repeat step ③-2 Go to step ③-7, until the m×m image block pairs are processed and the watermark embedding process is ended;
④、将二值水印图像的尺寸、水印嵌入方式及量化步长S作为密钥,水印嵌入端将密钥传输给水印提取端。④. The size of the binary watermark image, the watermark embedding method and the quantization step S are used as the key, and the watermark embedding end transmits the key to the watermark extraction end.
所述的步骤③-3中设定位置的低频系数为图像块的二级离散小波变换的任一位置的低频系数。The low-frequency coefficient at the position set in step ③-3 is the low-frequency coefficient at any position of the secondary discrete wavelet transform of the image block.
所述的步骤③-6中在修改当前图像块对中的任一个图像块的离散余弦变换直流系数时,选择和中离散余弦变换直流系数修改幅度小的那个图像块的离散余弦变换直流系数进行修改。In the described step ③-6, modify the current image block pair When the discrete cosine transform DC coefficient of any image block in , choose and The discrete cosine transform direct current coefficient of the image block whose modification range is small among the discrete cosine transform direct current coefficients is modified.
一种使用上述的盲水印嵌入方法嵌入水印的立体视频图像的盲水印提取方法,其特征在于包括以下步骤:A method for extracting a blind watermark using the above-mentioned blind watermark embedding method to embed a watermarked stereoscopic video image, characterized in that it comprises the following steps:
①在水印提取端,令Swat为尺寸为M×N的待检测的立体视频图像,待检测的立体视频图像Swat包括左视点图像和右视点图像,记待检测的立体视频图像Swat的左视点图像为Lwat,记待检测的立体视频图像Swat的右视点图像为Rwat,将待检测的立体视频图像Swat的左视点图像Lwat和待检测的立体视频图像Swat的右视点图像Rwat分别分成(M×N)/(n×n)个互不重叠的尺寸为n×n的图像块,将待检测的立体视频图像Swat的左视点图像Lwat中的第j个图像块记为将待检测的立体视频图像Swat的右视点图像Rwat中的第j个图像块记为待检测的立体视频图像Swat的左视点图像Lwat中的第j个图像块和待检测的立体视频图像Swat的右视点图像Rwat中的第j个图像块构成待检测的立体视频图像Swat中的第j个图像块对,记为其中,M表示待检测的立体视频图像Swat的宽,N表示待检测的立体视频图像Swat的高,1≤j≤((M×N)/(n×n));① At the watermark extraction end, let S wat be the stereoscopic video image to be detected whose size is M×N. The stereoscopic video image S wat to be detected includes left viewpoint image and right viewpoint image. The left viewpoint image is L wat , and the right viewpoint image of the stereoscopic video image S wat to be detected is R wat , and the left viewpoint image L wat of the stereoscopic video image S wat to be detected and the right side of the stereoscopic video image S wat to be detected are The viewpoint image R wat is divided into (M×N)/(n×n) non-overlapping image blocks with a size of n×n, and the j- th image blocks are denoted as Denote the jth image block in the right viewpoint image R wat of the stereoscopic video image S wat to be detected as The jth image block in the left viewpoint image L wat of the stereoscopic video image S wat to be detected and the jth image block in the right view image R wat of the stereoscopic video image S wat to be detected Constitute the jth image block pair in the stereoscopic video image S wat to be detected, denoted as Wherein, M represents the width of the stereoscopic video image S wat to be detected, and N represents the height of the stereoscopic video image S wat to be detected, 1≤j≤((M×N)/(n×n));
②依次对待检测的立体视频图像Swat中的各个图像块对提取水印,其具体过程如下:②The watermark is extracted from each image block pair in the stereoscopic video image S wat to be detected in turn, and the specific process is as follows:
②-1、定义当前正在处理的待检测的立体视频图像Swat中的第j个图像块对为当前图像块对;②-1, define the jth image block pair in the stereoscopic video image S wat to be detected currently being processed is the current image block pair;
②-2、对当前图像块对中的分别进行离散余弦变换和二级离散小波变换,对当前图像块对中的分别进行离散余弦变换和二级离散小波变换;②-2. For the current image block pair middle Discrete cosine transform and two-level discrete wavelet transform are performed respectively, and the current image block pair middle Carry out discrete cosine transform and secondary discrete wavelet transform respectively;
②-3、令Intra-L′表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-L′为“1”,否则,置的内部关系Intra-L′为“0”;令Intra-R′表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-R′为“1”,否则,置的内部关系Intra-R′为“0”;令Intra′表示的内部关系,判断的内部关系Intra-L′和的内部关系Intra-R′是否均为“1”,如果是,则置的内部关系Intra′为“1”,否则,置的内部关系Intra′为“0”;令Inter′表示的块间关系,判断的离散余弦变换直流系数是否大于的离散余弦变换直流系数,如果是,则置的块间关系Inter′为“1”,否则,置的块间关系Inter′为“0”;②-3. Let Intra-L′ express internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-L′ of is "1", otherwise, set The internal relationship Intra-L′ of is “0”; let Intra-R′ represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relation Intra-R′ of is "1", otherwise, set The internal relation Intra-R′ of is “0”; let Intra′ represent internal relationship, judgment The internal relations Intra-L′ and Whether the internal relations Intra-R′ of are all "1", if yes, then set The internal relation Intra' of is "1", otherwise, set The internal relationship Intra' is "0"; let Inter' represent The inter-block relationship, judging Is the discrete cosine transform DC coefficient greater than DC coefficient of discrete cosine transform, if yes, then set The inter-block relationship Inter' is "1", otherwise, set The inter-block relationship Inter' is "0";
上述的二级离散小波变换的设定位置的低频系数与的二级离散小波变换的设定位置的低频系数为各自图像块的二级离散小波变换的相同位置的低频系数;the above The low-frequency coefficients of the set position of the second-order discrete wavelet transform with The low-frequency coefficients at the set position of the second-level discrete wavelet transform are the low-frequency coefficients at the same position of the second-level discrete wavelet transform of the respective image blocks;
②-4、对和的离散余弦变换直流系数按照量化步长S分别进行量化,分别得到量化值Q′L,j和Q′R,j,
②-5、判断当前图像块对的水印嵌入方式是否为00,如果不是,则执行步骤②-6,否则,再判断的内部关系Intra-L′和的内部关系Intra-R′是否均为“1”,如果均为“1”,则从当前图像块对中提取出水印“1”,如果均为“0”或其中一个为“0”,则从当前图像块对中提取出水印“0”,然后执行步骤②-8;②-5. Judging the current image block pair Whether the embedding method of the watermark is 00, if not, go to step ②-6, otherwise, judge again The internal relations Intra-L′ and Whether the internal relationship Intra-R′ of is all "1", if they are all "1", then from the current image block to Extract the watermark "1" from the current image block, if they are all "0" or one of them is "0", then the Extract the watermark "0" from , and then perform steps ②-8;
②-6、判断当前图像块对的水印嵌入方式是否为01,如果不是,则执行步骤②-7,否则,再判断当前图像块对的块间关系Inter′是否为“1”,如果为“1”,则从当前图像块对中提取出水印“1”,如果为“0”,则从当前图像块对中提取出水印“0”,然后执行步骤②-8;②-6. Judging the current image block pair Whether the embedding method of the watermark is 01, if not, execute steps ②-7, otherwise, judge the current image block pair Is the inter-block relationship Inter' of "1", if it is "1", then from the current image block to Extract the watermark "1" from the watermark, if it is "0", then from the current image block pair Extract the watermark "0" from , and then perform steps ②-8;
②-7、判断Q′L,j和Q′R,j是否均为奇数或者均为偶数,如果是,则从当前图像块对中提取出水印“1”,否则,从当前图像块对中提取出水印“0”,然后执行步骤②-8;②-7, judge whether Q′ L, j and Q′ R, j are both odd numbers or even numbers, if yes, then from the current image block to Extract the watermark "1" from the current image block, otherwise, from the current image block pair Extract the watermark "0" from , and then perform steps ②-8;
②-8、判断j≤m×m是否成立,如果成立,则将j值加1,将待检测的立体视频图像Swat中的下一个图像块对作为当前图像块对,并重复执行步骤②-2至步骤②-8,直至处理完m×m个图像块对结束水印提取过程;②-8. Determine whether j≤m×m is true. If it is true, add 1 to the j value, use the next image block pair in the stereoscopic video image S wat to be detected as the current image block pair, and repeat step ② -2 to step ②-8, until the m×m image block pairs are processed to end the watermark extraction process;
③对提取得到的水印图像进行反置乱变换,得到最终提取的二值水印图像。③ Perform inverse scrambling transformation on the extracted watermark image to obtain the final extracted binary watermark image.
所述的步骤②-3中设定位置的低频系数为图像块的二级离散小波变换的任一位置的低频系数。The low-frequency coefficient at the position set in step ②-3 is the low-frequency coefficient at any position of the second-level discrete wavelet transform of the image block.
与现有技术相比,本发明的优点在于通过将立体视频图像分成互不重叠的图像块,对各个图像块实施离散余弦变换和二级离散小波变换,分析立体视频图像的左、右视点图像的离散余弦变换直流系数和二级离散小波变换的低频系数之间的大小关系,从而在立体视频图像中定义图像块的内部关系和两图像块间的块间关系,通过这些关系和水印信息是否一致来决定水印嵌入方式,其中关系嵌入时不改变原始立体视频图像的数据,量化嵌入时对离散余弦变换直流系数修改幅度小的图像块的离散余弦变换直流系数进行修改,这样有效保证了立体视频图像的质量;同时在水印提取时不需要原始立体视频图像,实现了盲检测。在关系嵌入时选用的是块内的离散余弦变换直流系数与二级离散小波变换的低频系数的关系和块间的离散余弦变换直流系数的关系,由于离散余弦变换直流系数和二级离散小波变换的低频系数有着相同的变化趋势,且块间的离散余弦变换直流系数的关系在相同攻击下有着相同的变化关系,因此关系的稳定性较强,从而有效提高了本发明嵌入方法的鲁棒性。在关系嵌入时,不修改原始立体图像的数据,从而有效地提高了嵌入水印的立体图像的质量。Compared with the prior art, the present invention has the advantages of dividing the stereoscopic video image into non-overlapping image blocks, implementing discrete cosine transform and secondary discrete wavelet transform on each image block, and analyzing the left and right viewpoint images of the stereoscopic video image The size relationship between the DC coefficient of the discrete cosine transform and the low-frequency coefficient of the second-level discrete wavelet transform, so as to define the internal relationship of the image block and the inter-block relationship between the two image blocks in the stereoscopic video image, through these relationships and whether the watermark information Unanimously determine the watermark embedding method, wherein the data of the original stereoscopic video image is not changed when the relationship is embedded, and the DC coefficient of the discrete cosine transform DC coefficient of the image block with a small modification range is modified when the quantization is embedded, which effectively guarantees the stereoscopic video. Image quality; at the same time, the original stereoscopic video image is not needed during watermark extraction, and blind detection is realized. When the relationship is embedded, the relationship between the DC coefficient of the discrete cosine transform in the block and the low-frequency coefficient of the second-level discrete wavelet transform and the relationship between the DC coefficients of the discrete cosine transform between the blocks are selected. The low-frequency coefficients have the same variation trend, and the relationship between the discrete cosine transform DC coefficients between the blocks has the same variation relationship under the same attack, so the stability of the relationship is strong, thereby effectively improving the robustness of the embedding method of the present invention . During relational embedding, the data of the original stereo image is not modified, thus effectively improving the quality of the watermarked stereo image.
附图说明Description of drawings
图1a为“puppy”原始立体视频图像的第一时刻的左视点图像;Fig. 1 a is the left viewpoint image of the first moment of " puppy " original stereoscopic video image;
图1b为“puppy”原始立体视频图像的第一时刻的右视点图像;Fig. 1b is the right viewpoint image of the first moment of "puppy" original stereoscopic video image;
图2a为原始二值水印图像;Figure 2a is the original binary watermarked image;
图2b为图2a所示的原始二值水印图像置乱后的二值水印图像;Fig. 2b is the binary watermark image after the original binary watermark image shown in Fig. 2a is scrambled;
图3a为嵌入水印后的“puppy”立体视频图像的第一时刻的左视点图像;Fig. 3 a is the left viewpoint image of the first moment of the "puppy" stereoscopic video image embedded with the watermark;
图3b为嵌入水印后的“puppy”立体视频图像的第一时刻的右视点图像;Fig. 3b is the right viewpoint image at the first moment of the "puppy" stereoscopic video image embedded with the watermark;
图4a为无攻击时从图3a和图3b构成的立体视频图像中提取出的所有水印;Figure 4a is all watermarks extracted from the stereoscopic video image formed by Figure 3a and Figure 3b when there is no attack;
图4b为无攻击时从图3a和图3b构成的立体视频图像中提取出的二值水印图像;Fig. 4b is the binary watermark image extracted from the stereoscopic video image composed of Fig. 3a and Fig. 3b when there is no attack;
图5a为从品质因子为90的JPEG压缩后的立体视频图像中提取出的二值水印图像;Figure 5a is a binary watermark image extracted from a JPEG-compressed stereoscopic video image with a quality factor of 90;
图5b为从品质因子为70的JPEG压缩后的立体视频图像中提取出的二值水印图像;Figure 5b is a binary watermark image extracted from a JPEG-compressed stereoscopic video image with a quality factor of 70;
图5c为从品质因子为50的JPEG压缩后的立体视频图像中提取出的二值水印图像;Figure 5c is a binary watermark image extracted from a JPEG-compressed stereoscopic video image with a quality factor of 50;
图5d为从品质因子为30的JPEG压缩后的立体视频图像中提取出的二值水印图像;Figure 5d is a binary watermark image extracted from a JPEG-compressed stereoscopic video image with a quality factor of 30;
图5e为从品质因子为20的JPEG压缩后的立体视频图像中提取出的二值水印图像;Figure 5e is a binary watermark image extracted from a JPEG-compressed stereoscopic video image with a quality factor of 20;
图6a为从高斯滤波(窗口3×3)后的立体视频图像中提取出的二值水印图像;Figure 6a is a binary watermark image extracted from a stereoscopic video image after Gaussian filtering (window 3×3);
图6b为从中值滤波(窗口3×3)后的立体视频图像中提取出的二值水印图像;Fig. 6b is the binary watermark image extracted from the stereoscopic video image after median filtering (window 3×3);
图6c为从中值滤波(窗口5×5)后的立体视频图像中提取出的二值水印图像;Fig. 6c is the binary watermark image extracted from the stereoscopic video image after median filtering (window 5×5);
图6d为从均值滤波(窗口3×3)后的立体视频图像中提取出的二值水印图像;Figure 6d is a binary watermark image extracted from the stereoscopic video image after mean filtering (window 3×3);
图6e为从均值滤波(窗口5×5)后的立体视频图像中提取出的二值水印图像;Fig. 6e is the binary watermark image extracted from the stereoscopic video image after mean filtering (window 5×5);
图7a为从顶左端剪切1/4后的立体视频图像中提取出的二值水印图像;Fig. 7a is the binary watermark image extracted from the stereoscopic video image cut by 1/4 from the top left end;
图7b为从顶左端剪切1/8后的立体视频图像中提取出的二值水印图像;Figure 7b is a binary watermark image extracted from the stereoscopic video image cut by 1/8 from the top left end;
图7c为从中间剪切1/4后的立体视频图像中提取出的二值水印图像;Figure 7c is a binary watermark image extracted from the stereoscopic video image cut by 1/4 in the middle;
图7d为从中间剪切1/8后的立体视频图像中提取出的二值水印图像;Figure 7d is a binary watermark image extracted from the stereoscopic video image cut by 1/8 in the middle;
图7e为从顶左端剪切1/2后的立体视频图像中提取出的二值水印图像;Figure 7e is a binary watermark image extracted from the stereoscopic video image cut by 1/2 from the top left end;
图8为依次对原始立体视频图像Sorg中的各个图像块对添加水印的过程示意图。FIG. 8 is a schematic diagram of the process of sequentially adding watermarks to each image block pair in the original stereoscopic video image S org .
具体实施方式Detailed ways
以下结合附图实施例对本发明作进一步详细描述。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
实施例一:Embodiment one:
本实施例提出的一种立体视频图像的盲水印嵌入方法,其主要包括以下步骤:The blind watermark embedding method of a kind of stereoscopic video image that present embodiment proposes, it mainly comprises the following steps:
①在水印嵌入端,令Sorg为尺寸为M×N的原始立体视频图像,原始立体视频图像Sorg包括左视点图像和右视点图像,记原始立体视频图像Sorg的左视点图像为Lorg,记原始立体视频图像Sorg的右视点图像为Rorg,将原始立体视频图像Sorg的左视点图像Lorg和原始立体视频图像Sorg的右视点图像Rorg分别分成(M×N)/(n×n)个互不重叠的尺寸为n×n的图像块,将原始立体视频图像Sorg的左视点图像Lorg中的第i个图像块记为将原始立体视频图像Sorg的右视点图像Rorg中的第i个图像块记为原始立体视频图像Sorg的左视点图像Lorg中的第i个图像块和原始立体视频图像Sorg的右视点图像Rorg中的第i个图像块(即左视点图像Lorg和右视点图像Rorg中同一坐标位置的两个图像块)构成原始立体视频图像Sorg中的第i个图像块对,记为其中,M表示原始立体视频图像Sorg的宽,N表示原始立体视频图像Sorg的高,1≤i≤((M×N)/(n×n))。①At the watermark embedding end, let S org be the original stereoscopic video image with size M×N, the original stereoscopic video image S org includes left viewpoint image and right viewpoint image, denote the left viewpoint image of the original stereoscopic video image S org as L org , record the right viewpoint image of the original stereoscopic video image S org as R org , divide the left viewpoint image L org of the original stereoscopic video image S org and the right viewpoint image R org of the original stereoscopic video image S org into (M×N)/ (n×n) non-overlapping image blocks of size n×n, the i-th image block in the left view image L org of the original stereoscopic video image S org is recorded as Denote the i-th image block in the right view image R org of the original stereoscopic video image S org as The i-th image block in the left view image L org of the original stereoscopic video image S org and the i-th image block in the right view image R org of the original stereoscopic video image S org (that is, two image blocks at the same coordinate position in the left viewpoint image L org and the right viewpoint image R org ) constitute the i-th image block pair in the original stereoscopic video image S org , denoted as Wherein, M represents the width of the original stereoscopic video image S org , N represents the height of the original stereoscopic video image S org , 1≤i≤((M×N)/(n×n)).
在本实施例中,测试的原始立体视频图像选用的是“puppy”立体视频序列中第一时刻的立体视频图像,分辨率大小为640×480,即M=640,N=480,图1a和图1b分别给出了“puppy”原始立体视频图像第一时刻的左视点图像和右视点图像。In this embodiment, the original stereoscopic video image of the test is the stereoscopic video image at the first moment in the "puppy" stereoscopic video sequence, and the resolution size is 640*480, that is, M=640, N=480, Fig. 1a and Figure 1b shows the left and right viewpoint images of the "puppy" original stereoscopic video image at the first moment, respectively.
在本实施例中,图像块的尺寸大小n×n可以根据立体视频图像的尺寸大小选定,如可选择8×8、16×16等。在实际应用过程中,如果选择太小,则可能会导致嵌入水印的隐藏性不好,而如果选择太大,则会导致嵌入的水印信息太少。在本实施例中,选择n=8。In this embodiment, the size n×n of the image block can be selected according to the size of the stereoscopic video image, for example, 8×8, 16×16, etc. can be selected. In the actual application process, if the selection is too small, it may cause poor concealment of the embedded watermark, and if the selection is too large, the embedded watermark information will be too little. In this embodiment, n=8 is chosen.
②令W为尺寸为m×m的二值水印图像,对二值水印图像W进行置乱变换,得到置乱后的二值水印图像,记为其中,m×m≤((M×N)/(n×n))。本实施例中,置乱变换采用的是Arnold置乱变换,Arnold置乱变换是一个周期变换,且变换的数据阵列必须是一个方阵,其变换周期与方阵的大小有关,例如64×64的Arnold置乱变换的变换周期为48,那么变换次数L应小于48才能使数据达到置乱的目的。在本实施例中,采用如图2a所示的尺寸为64×64的原始二值水印图像,其置乱后的二值水印图像如图2b所示。②Let W be a binary watermark image with a size of m×m, perform scrambling transformation on the binary watermark image W, and obtain the scrambled binary watermark image, denoted as Among them, m×m≦((M×N)/(n×n)). In this embodiment, the scrambling transformation uses the Arnold scrambling transformation. The Arnold scrambling transformation is a periodic transformation, and the transformed data array must be a square matrix. The transformation period is related to the size of the square matrix, for example, 64×64 The transformation cycle of the Arnold scrambling transformation is 48, so the number of transformations L should be less than 48 to make the data achieve the purpose of scrambling. In this embodiment, the original binary watermark image with a size of 64×64 as shown in FIG. 2a is used, and the scrambled binary watermark image is shown in FIG. 2b.
③依次对原始立体视频图像Sorg中的各个图像块对添加水印,其具体过程(图8给出了具体的水印添加过程)如下:3. Add watermarks to each image block in the original stereoscopic video image S org in turn, and its specific process (Fig. 8 provides the specific watermarking process) is as follows:
③-1、定义当前正在处理的原始立体视频图像Sorg中的第i个图像块对为当前图像块对。③-1. Define the i-th image block pair in the original stereoscopic video image S org currently being processed is the current image block pair.
③-2、对当前图像块对中的分别进行离散余弦变换(Discrete Cosine Transform,DCT)和二级离散小波变换(Discrete Wavelet Transform,DWT),对当前图像块对中的分别进行离散余弦变换和二级离散小波变换。③-2. For the current image block pair middle Carry out discrete cosine transform (Discrete Cosine Transform, DCT) and secondary discrete wavelet transform (Discrete Wavelet Transform, DWT) respectively, for the current image block pair middle Discrete cosine transform and two-stage discrete wavelet transform are carried out respectively.
③-3、令Intra-L表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-L为“1”,否则,置的内部关系Intra-L为“0”;令Intra-R表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-R为“1”,否则,置的内部关系Intra-R为“0”;令Intra表示的内部关系,判断的内部关系Intra-L和的内部关系Intra-R是否均为“1”,如果是,则置的内部关系Intra为“1”,否则,置的内部关系Intra为“0”;令Inter表示的块间关系,判断的离散余弦变换直流系数是否大于的离散余弦变换直流系数,如果是,则置的块间关系Inter为“1”,否则,置的块间关系Inter为“0”。③-3. Let Intra-L represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-L is "1", otherwise, set The internal relationship Intra-L of is "0"; let Intra-R represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-R is "1", otherwise, set The internal relationship Intra-R of is "0"; let Intra represent internal relationship, judgment The internal relationship of Intra-L and Whether the internal relations Intra-R of are all "1", if yes, then set The internal relation of Intra is "1", otherwise, set The internal relationship Intra of is "0"; let Inter represent The inter-block relationship, judging Is the discrete cosine transform DC coefficient greater than DC coefficient of discrete cosine transform, if yes, then set Inter-block relationship Inter is "1", otherwise, set Inter-block relation Inter is "0".
上述的二级离散小波变换的设定位置的低频系数与的二级离散小波变换的设定位置的低频系数为各自图像块的二级离散小波变换的相同位置的低频系数。在本实施例中,上述设定位置的低频系数为图像块的二级离散小波变换的任一位置的低频系数,如此处的二级离散小波变换的低频系数和的二级离散小波变换的低频系数选取的是各自图像块的低频子带的第0行第1列的低频系数。the above The low-frequency coefficients of the set position of the second-order discrete wavelet transform with The low-frequency coefficients at the set position of the second-level discrete wavelet transform are the low-frequency coefficients at the same position of the second-level discrete wavelet transform of the respective image blocks. In this embodiment, the low-frequency coefficient at the above-mentioned setting position is the low-frequency coefficient at any position of the second-level discrete wavelet transform of the image block, as shown here The low-frequency coefficients of the second-order discrete wavelet transform and The low-frequency coefficients of the second-level discrete wavelet transform are selected from the low-frequency coefficients in row 0 and column 1 of the low-frequency sub-bands of the respective image blocks.
③-4、判断当前图像块对的内部关系Intra的值与置乱后的二值水印图像中的第i个二值像素点的像素值wi是否相同,如果相同,则不修改和的离散余弦变换直流系数,并标记当前图像块对的水印嵌入方式为00,然后执行步骤③-7;否则,执行步骤③-5。③-4. Judging the current image block pair The value of the internal relationship Intra and the binary watermarked image after scrambling Whether the pixel value w i of the i-th binary pixel point in is the same, if it is the same, it will not be modified and The DC coefficients of the discrete cosine transform, and mark the current image block pair The embedding mode of the watermark is 00, then go to step ③-7; otherwise, go to step ③-5.
在此,该步骤的水印嵌入称为关系嵌入。Here, the watermark embedding of this step is called relational embedding.
③-5、判断当前图像块对的块间关系Inter的值与置乱后的二值水印图像中的第i个二值像素点的像素值wi是否相同,如果相同,则不修改和的离散余弦变换直流系数,并标记当前图像块对的水印嵌入方式为01,然后执行步骤③-7;否则,执行步骤③-6。③-5. Judging the current image block pair The value of inter-block relationship Inter and the binary watermark image after scrambling Whether the pixel value w i of the i-th binary pixel point in is the same, if it is the same, it will not be modified and The DC coefficients of the discrete cosine transform, and mark the current image block pair The embedding mode of the watermark is 01, then go to step ③-7; otherwise, go to step ③-6.
在此,该步骤的水印嵌入称为关系嵌入。Here, the watermark embedding of this step is called relational embedding.
③-6、对和的离散余弦变换直流系数按照量化步长S分别进行量化,分别得到量化值QL,i和QR,i,
判断置乱后的二值水印图像中的第i个二值像素点的像素值wi是否为“1”,如果是,则修改当前图像块对中的任一个图像块的离散余弦变换直流系数,使修改后的和的离散余弦变换直流系数的奇偶性一致,并标记当前图像块对的水印嵌入方式为10,否则,修改当前图像块对中的任一个图像块的离散余弦变换直流系数,使修改后的和的离散余弦变换直流系数的奇偶性不一致,并标记当前图像块对的水印嵌入方式为10。Judging the binary watermarked image after scrambling Whether the pixel value w i of the i-th binary pixel in is "1", if yes, modify the current image block pair The discrete cosine transform DC coefficients of any image block in , so that the modified and The parity of the DC coefficients of the discrete cosine transform is consistent, and the current image block pair is marked The watermark embedding mode of is 10, otherwise, modify the current image block pair The discrete cosine transform DC coefficients of any image block in , so that the modified and The parity of the DC coefficients of the discrete cosine transform is inconsistent, and the current image block pair is marked The watermark embedding method of is 10.
在本实施例中,在修改当前图像块对中的任一个图像块的离散余弦变换直流系数时,选择和中离散余弦变换直流系数修改幅度小的那个图像块的离散余弦变换直流系数进行修改。In this embodiment, when modifying the current image block pair When the discrete cosine transform DC coefficient of any image block in , choose and The discrete cosine transform direct current coefficient of the image block whose modification range is small among the discrete cosine transform direct current coefficients is modified.
在此,该步骤的水印嵌入称为量化嵌入。Here, the watermark embedding in this step is called quantized embedding.
③-7、判断i≤m×m是否成立,如果成立,则将i值加1,将原始立体视频图像Sorg中的下一个图像块对作为当前图像块对,并重复执行步骤③-2至步骤③-7,直至处理完m×m个图像块对结束水印嵌入过程。③-7. Determine whether i≤m×m is true, if it is true, add 1 to the value of i, use the next image block pair in the original stereoscopic video image S org as the current image block pair, and repeat step ③-2 Proceed to step ③-7, and end the watermark embedding process until the m×m image block pairs are processed.
④、将二值水印图像的尺寸、水印嵌入方式及量化步长S作为密钥,水印嵌入端将密钥传输给水印提取端。④. The size of the binary watermark image, the watermark embedding method and the quantization step S are used as the key, and the watermark embedding end transmits the key to the watermark extraction end.
图3a和图3b分别给出了嵌入图2b所示的二值水印图像后的左视点图像和右视点图像。嵌入水印后,“puppy”立体视频图像的左视点图像和右视点图像的峰值信噪比PSNR分别为49.34dB和51.34dB,表明嵌入水印后的立体视频图像与原始立体视频图像十分相似,水印信息的隐藏性很好。Figure 3a and Figure 3b show the left-viewpoint image and right-viewpoint image respectively after embedding the binary watermark image shown in Figure 2b. After embedding the watermark, the peak signal-to-noise ratio PSNR of the left view image and the right view image of the "puppy" stereoscopic video image are 49.34dB and 51.34dB respectively, indicating that the stereoscopic video image after embedding the watermark is very similar to the original stereoscopic video image, and the watermark information The concealment is very good.
实施例二:Embodiment two:
本实施例提出一种使用实施例一给出的盲水印嵌入方法嵌入水印的立体视频图像的盲水印提取方法,其主要包括以下步骤:This embodiment proposes a blind watermark extraction method for a stereoscopic video image embedded with a watermark using the blind watermark embedding method given in Embodiment 1, which mainly includes the following steps:
①在水印提取端,令Swat为尺寸为M×N的待检测的立体视频图像,待检测的立体视频图像Swat包括左视点图像和右视点图像,记待检测的立体视频图像Swat的左视点图像为Lwat,记待检测的立体视频图像Swat的右视点图像为Rwat,将待检测的立体视频图像Swat的左视点图像Lwat和待检测的立体视频图像Swat的右视点图像Rwat分别分成(M×N)/(n×n)个互不重叠的尺寸为n×n的图像块,将待检测的立体视频图像Swat的左视点图像Lwat中的第j个图像块记为将待检测的立体视频图像Swat的右视点图像Rwat中的第j个图像块记为待检测的立体视频图像Swat的左视点图像Lwat中的第j个图像块和待检测的立体视频图像Swat的右视点图像Rwat中的第j个图像块(即左视点图像Lwat和右视点图像Rwat中同一坐标位置的两个图像块)构成待检测的立体视频图像Swat中的第j个图像块对,记为其中,M表示待检测的立体视频图像Swat的宽,N表示待检测的立体视频图像Swat的高,1≤j≤((M×N)/(n×n))。① At the watermark extraction end, let S wat be the stereoscopic video image to be detected whose size is M×N. The stereoscopic video image S wat to be detected includes left viewpoint image and right viewpoint image. The left viewpoint image is L wat , and the right viewpoint image of the stereoscopic video image S wat to be detected is R wat , and the left viewpoint image L wat of the stereoscopic video image S wat to be detected and the right side of the stereoscopic video image S wat to be detected are The viewpoint image R wat is divided into (M×N)/(n×n) non-overlapping image blocks with a size of n×n, and the j- th image blocks are denoted as Denote the jth image block in the right viewpoint image R wat of the stereoscopic video image S wat to be detected as The jth image block in the left viewpoint image L wat of the stereoscopic video image S wat to be detected and the jth image block in the right view image R wat of the stereoscopic video image S wat to be detected (that is, two image blocks at the same coordinate position in the left viewpoint image L wat and the right viewpoint image R wat ) constitute the jth image block pair in the stereoscopic video image S wat to be detected, denoted as Wherein, M represents the width of the stereo video image S wat to be detected, N represents the height of the stereo video image S wat to be detected, 1≤j≤((M×N)/(n×n)).
在本实施例中,待检测的立体视频图像Swat的尺寸大小与水印嵌入端的原始立体视频图像的尺寸大小一致,图像块的尺寸大小也与水印嵌入端划分的图像块的尺寸大小一致。In this embodiment, the size of the stereoscopic video image S wat to be detected is consistent with the size of the original stereoscopic video image at the watermark embedding end, and the size of the image blocks is also consistent with the size of the image blocks divided by the watermark embedding end.
②依次对待检测的立体视频图像Swat中的各个图像块对提取水印,其具体过程如下:②The watermark is extracted from each image block pair in the stereoscopic video image S wat to be detected in turn, and the specific process is as follows:
②-1、定义当前正在处理的待检测的立体视频图像Swat中的第j个图像块对为当前图像块对。②-1, define the jth image block pair in the stereoscopic video image S wat to be detected currently being processed is the current image block pair.
②-2、对当前图像块对中的分别进行离散余弦变换和二级离散小波变换,对当前图像块对中的分别进行离散余弦变换和二级离散小波变换。②-2. For the current image block pair middle Discrete cosine transform and two-level discrete wavelet transform are performed respectively, and the current image block pair middle Discrete cosine transform and two-stage discrete wavelet transform are carried out respectively.
②-3、令Intra-L′表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-L′为“1”,否则,置的内部关系Intra-L′为“0”;令Intra-R′表示的内部关系,判断的离散余弦变换直流系数是否大于的二级离散小波变换的设定位置的低频系数,如果是,则置的内部关系Intra-R′为“1”,否则,置的内部关系Intra-R′为“0”;令Intra′表示的内部关系,判断的内部关系Intra-L′和的内部关系Intra-R′是否均为“1”,如果是,则置的内部关系Intra′为“1”,否则,置的内部关系Intra′为“0”;令Inter′表示的块间关系,判断的离散余弦变换直流系数是否大于的离散余弦变换直流系数,如果是,则置的块间关系Inter′为“1”,否则,置的块间关系Inter′为“0”。②-3. Let Intra-L′ express internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relationship Intra-L′ of is "1", otherwise, set The internal relationship Intra-L′ of is “0”; let Intra-R′ represent internal relationship, judgment Is the discrete cosine transform DC coefficient greater than The low-frequency coefficient of the set position of the second-level discrete wavelet transform, if it is, then set The internal relation Intra-R′ of is "1", otherwise, set The internal relation Intra-R′ of is “0”; let Intra′ represent internal relationship, judgment The internal relations Intra-L′ and Whether the internal relations Intra-R′ of are all "1", if yes, then set The internal relation Intra' of is "1", otherwise, set The internal relationship Intra' is "0"; let Inter' represent The inter-block relationship, judging Is the discrete cosine transform DC coefficient greater than DC coefficient of discrete cosine transform, if yes, then set The inter-block relationship Inter' is "1", otherwise, set The inter-block relation Inter' is "0".
上述的二级离散小波变换的设定位置的低频系数与的二级离散小波变换的设定位置的低频系数为各自图像块的二级离散小波变换的相同位置的低频系数。在本实施例中,上述设定位置的低频系数为图像块的二级离散小波变换的任一位置的低频系数,如此处的二级离散小波变换的低频系数和的二级离散小波变换的低频系数选取的是各自图像块的低频子带的第0行第1列的低频系数。the above The low-frequency coefficients of the set position of the second-order discrete wavelet transform with The low-frequency coefficients at the set position of the second-level discrete wavelet transform are the low-frequency coefficients at the same position of the second-level discrete wavelet transform of the respective image blocks. In this embodiment, the low-frequency coefficient at the above-mentioned setting position is the low-frequency coefficient at any position of the second-level discrete wavelet transform of the image block, as shown here The low-frequency coefficients of the second-order discrete wavelet transform and The low-frequency coefficients of the second-level discrete wavelet transform are selected from the low-frequency coefficients in row 0 and column 1 of the low-frequency sub-bands of the respective image blocks.
②-4、对和的离散余弦变换直流系数按照量化步长S分别进行量化,分别得到量化值Q′L,j和Q′R,j。在此,
②-5、判断当前图像块对的水印嵌入方式是否为00,如果不是,则执行步骤②-6,否则,再判断的内部关系Intra-L′和的内部关系Intra-R′是否均为“1”,如果均为“1”,则从当前图像块对中提取出水印“1”,如果均为“0”或其中一个为“0”,则从当前图像块对中提取出水印“0”,然后执行步骤②-8。②-5. Judging the current image block pair Whether the embedding method of the watermark is 00, if not, go to step ②-6, otherwise, judge again The internal relations Intra-L′ and Whether the internal relationship Intra-R′ of is all "1", if they are all "1", then from the current image block to Extract the watermark "1" from the current image block, if they are all "0" or one of them is "0", then the Extract the watermark "0" from the data, and then perform steps ②-8.
②-6、判断当前图像块对的水印嵌入方式是否为01,如果不是,则执行步骤②-7,否则,再判断当前图像块对的块间关系Inter′是否为“1”,如果为“1”,则从当前图像块对中提取出水印“1”,如果为“0”,则从当前图像块对中提取出水印“0”,然后执行步骤②-8。②-6. Judging the current image block pair Whether the embedding method of the watermark is 01, if not, execute steps ②-7, otherwise, judge the current image block pair Is the inter-block relationship Inter' of "1", if it is "1", then from the current image block to Extract the watermark "1" from the watermark, if it is "0", then from the current image block pair Extract the watermark "0" from the data, and then perform steps ②-8.
②-7、当当前图像块对的水印嵌入方式为10时,判断Q′L,j和Q′R,j是否均为奇数或者均为偶数,如果是,则从当前图像块对中提取出水印“1”,否则,从当前图像块对中提取出水印“0”,然后执行步骤②-8。②-7. When the current image block is When the watermark embedding method is 10, it is judged whether Q′ L, j and Q′ R, j are all odd numbers or even numbers, and if so, from the current image block to Extract the watermark "1" from the current image block, otherwise, from the current image block pair Extract the watermark "0" from the data, and then perform steps ②-8.
②-8、判断j≤m×m是否成立,如果成立,则将j值加1,将待检测的立体视频图像Swat中的下一个图像块对作为当前图像块对,并重复执行步骤②-2至步骤②-8,直至处理完m×m个图像块对结束水印提取过程。②-8. Determine whether j≤m×m is true. If it is true, add 1 to the j value, use the next image block pair in the stereoscopic video image S wat to be detected as the current image block pair, and repeat step ② -2 to step ②-8, until the m×m image block pairs are processed and the watermark extraction process ends.
③对提取得到的水印图像进行反置乱变换,得到最终提取的二值水印图像。本实施例中,由于采用L次Arnold置乱变换,因此可根据水印嵌入端传输给水印提取端的二值水印图像的尺寸,确定Arnold置乱变换的周期Z,然后对提取得到的所有水印进行(Z-L)次Arnold置乱变换,得到最终提取的二值水印图像。③ Perform inverse scrambling transformation on the extracted watermark image to obtain the final extracted binary watermark image. In this embodiment, since L times of Arnold scrambling transformations are used, the period Z of the Arnold scrambling transformation can be determined according to the size of the binary watermark image transmitted from the watermark embedding end to the watermark extraction end, and then all watermarks obtained by extraction are ( Z-L) Arnold scrambling transformation to obtain the final extracted binary watermark image.
图4a和图4b分别给出了无攻击时从图3a和图3b构成的立体视频图像中提取出的所有水印和最终提取得到的二值水印图像。在本实施例中,采用归一化相似值HC,来计算提取得到的二值水印图像和原始二值水印图像的相似度,0≤HC≤1,其中w(s,t)和分别表示原始二值水印图像和提取出的二值水印图像坐标位置为(s,t)处的像素值,表示异或运算符。HC越大,表示提取得到的二值水印图像越接近原始二值水印图像,HC越小,表示提取得到的二值水印图像与原始二值水印图像相差比较大。通过HC值的大小可以评价水印嵌入算法的鲁棒性。在没有攻击的情况下,本实施例从图3a和图3b构成的立体视频图像中提取出的二值水印图像的归一化相似值HC为1,即和原始二值水印图像完全相同。Figure 4a and Figure 4b respectively show all the watermarks extracted from the stereoscopic video images formed in Figure 3a and Figure 3b when there is no attack and the final extracted binary watermark image. In this embodiment, using the normalized similarity value HC, To calculate the similarity between the extracted binary watermark image and the original binary watermark image, 0≤HC≤1, where w(s, t) and Represent the original binary watermark image and the pixel value at the coordinate position (s, t) of the extracted binary watermark image, Represents the XOR operator. The larger the HC, the closer the extracted binary watermark image is to the original binary watermark image, and the smaller the HC, the larger the difference between the extracted binary watermark image and the original binary watermark image. The robustness of the watermark embedding algorithm can be evaluated by the value of HC. In the case of no attack, the normalized similarity value HC of the binary watermark image extracted from the stereo video image composed of Fig. 3a and Fig. 3b in this embodiment is 1, which is exactly the same as the original binary watermark image.
进一步地,将得到的嵌有水印的立体视频图像进行失真处理,包括不同品质因子下的JPEG压缩、不同窗口大小的高斯滤波、中值滤波、均值滤波,以及不同程度位置的剪切。图5a、图5b、图5c、图5d和图5e分别给出了从品质因子Q分别为90、70、50、30、20的JPEG压缩后的立体视频图像中提取出的二值水印图像;图6a、图6b、图6c、图6d和图6e分别给出了从高斯滤波(窗口3×3)、中值滤波(窗口3×3)、中值滤波(窗口5×5)、均值滤波(窗口3×3)、均值滤波(窗口5×5)后的立体视频图像中提取出的二值水印图像;图7a、图7b、图7c、图7d和图7e分别给出了从顶左端剪切1/4、顶左端剪切1/8、中间剪切1/4、中间剪切1/8、顶左端剪切1/2后的立体视频图像中提取出的二值水印图像。表1给出了上述各种失真处理后提取得到的二值水印图像的归一化相似值HC。从图5a至图7e以及表1可见,在不同类型、不同程度的失真攻击下,本发明方法嵌入的水印具有较好的辨识性,说明本发明的嵌入及提取方法具有较好的鲁棒性。Further, the obtained stereoscopic video images embedded with watermarks are subjected to distortion processing, including JPEG compression under different quality factors, Gaussian filtering with different window sizes, median filtering, mean filtering, and cutting of different degrees of positions. Fig. 5a, Fig. 5b, Fig. 5c, Fig. 5d and Fig. 5e respectively provide the binary watermark images extracted from the JPEG-compressed stereoscopic video images whose quality factors Q are 90, 70, 50, 30, 20 respectively; Fig. 6a, Fig. 6b, Fig. 6c, Fig. 6d and Fig. 6e respectively show Gaussian filtering (window 3×3), median filtering (window 3×3), median filtering (window 5×5), mean filtering (window 3×3) and mean filtering (window 5×5) of the binary watermark image extracted from the stereoscopic video image; Fig. 7a, Fig. 7b, Fig. 7c, Fig. 7d and Fig. 7e respectively show the The binary watermark image extracted from the stereoscopic video image after cutting 1/4, cutting the top left end 1/8, cutting the middle 1/4, cutting the middle 1/8, and cutting 1/2 the top left end. Table 1 shows the normalized similarity value HC of the binary watermark image extracted after the above-mentioned various distortion treatments. From Figure 5a to Figure 7e and Table 1, it can be seen that under different types and degrees of distortion attacks, the watermark embedded by the method of the present invention has better identification, which shows that the embedding and extraction method of the present invention has better robustness .
表1不同类型、不同程度的失真攻击下,水印检测的归一化相似值HCTable 1 The normalized similarity value HC of watermark detection under different types and degrees of distortion attacks
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110183636 CN102223561B (en) | 2011-07-01 | 2011-07-01 | Blind watermark embedding and extracting method of stereoscopic video image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110183636 CN102223561B (en) | 2011-07-01 | 2011-07-01 | Blind watermark embedding and extracting method of stereoscopic video image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102223561A true CN102223561A (en) | 2011-10-19 |
CN102223561B CN102223561B (en) | 2013-07-31 |
Family
ID=44779964
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110183636 Expired - Fee Related CN102223561B (en) | 2011-07-01 | 2011-07-01 | Blind watermark embedding and extracting method of stereoscopic video image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102223561B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366337A (en) * | 2013-08-06 | 2013-10-23 | 山东大学 | Digital watermarking method capable of being applied to 2D-3D (Two Dimensional-Three Dimensional) conversion |
CN103533343A (en) * | 2013-09-29 | 2014-01-22 | 宁波大学 | Stereo image quality objective evaluation method based on digital watermarking |
CN103763578A (en) * | 2014-01-10 | 2014-04-30 | 北京酷云互动科技有限公司 | Method and device for pushing program associated information |
CN106507216A (en) * | 2016-09-23 | 2017-03-15 | 曙光信息产业(北京)有限公司 | The method of the embedded watermark of three-dimensional video-frequency, device and the method for extracting watermark |
CN106803230A (en) * | 2017-01-16 | 2017-06-06 | 浙江工业大学 | A kind of image encryption method based on digital watermarking |
CN108648130A (en) * | 2018-04-04 | 2018-10-12 | 宁波大学 | A kind of total blindness's digital watermark method with copyright protection and tampering location function |
CN111260533A (en) * | 2020-01-17 | 2020-06-09 | 山东师范大学 | Image watermarking method and system fusing in-block and inter-block texture rule features of image |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699508A (en) * | 2009-09-03 | 2010-04-28 | 中兴通讯股份有限公司 | Image digital watermark embedding and extracting method and system |
-
2011
- 2011-07-01 CN CN 201110183636 patent/CN102223561B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101699508A (en) * | 2009-09-03 | 2010-04-28 | 中兴通讯股份有限公司 | Image digital watermark embedding and extracting method and system |
Non-Patent Citations (1)
Title |
---|
王侠: "数字水印技术的研究与应用", 《数字技术与应用》, 31 March 2011 (2011-03-31) * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366337A (en) * | 2013-08-06 | 2013-10-23 | 山东大学 | Digital watermarking method capable of being applied to 2D-3D (Two Dimensional-Three Dimensional) conversion |
CN103533343A (en) * | 2013-09-29 | 2014-01-22 | 宁波大学 | Stereo image quality objective evaluation method based on digital watermarking |
CN103763578A (en) * | 2014-01-10 | 2014-04-30 | 北京酷云互动科技有限公司 | Method and device for pushing program associated information |
CN106507216A (en) * | 2016-09-23 | 2017-03-15 | 曙光信息产业(北京)有限公司 | The method of the embedded watermark of three-dimensional video-frequency, device and the method for extracting watermark |
CN106507216B (en) * | 2016-09-23 | 2019-08-02 | 曙光信息产业(北京)有限公司 | The method that three-dimensional video-frequency is embedded in the method, apparatus of watermark and extracts watermark |
CN106803230A (en) * | 2017-01-16 | 2017-06-06 | 浙江工业大学 | A kind of image encryption method based on digital watermarking |
CN108648130A (en) * | 2018-04-04 | 2018-10-12 | 宁波大学 | A kind of total blindness's digital watermark method with copyright protection and tampering location function |
CN111260533A (en) * | 2020-01-17 | 2020-06-09 | 山东师范大学 | Image watermarking method and system fusing in-block and inter-block texture rule features of image |
Also Published As
Publication number | Publication date |
---|---|
CN102223561B (en) | 2013-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Keshavarzian et al. | ROI based robust and secure image watermarking using DWT and Arnold map | |
Divecha et al. | Implementation and performance analysis of DCT-DWT-SVD based watermarking algorithms for color images | |
CN102223561A (en) | Blind watermark embedding and extracting method of stereoscopic video image | |
CN112381701B (en) | RST attack resisting stereo image zero watermarking method based on FFST and Hessenberg decomposition | |
CN102930498B (en) | A kind of digital watermark embedding based on Lifting Wavelet and extracting method | |
Khalifa et al. | A robust non-blind algorithm for watermarking color images using multi-resolution wavelet decomposition | |
Ullah et al. | Dual-purpose semi-fragile watermark: authentication and recovery of digital images | |
Ahuja et al. | All aspects of digital video watermarking under an umbrella | |
CN110309632A (en) | Zero-Watermarking Algorithm Based on Multi-channel Transform Domain Features | |
CN114359012B (en) | Robust combined domain color image zero watermark embedding and extracting method | |
CN104123693A (en) | Multi-functional digital watermarking method for three-dimensional picture | |
CN102156956B (en) | High robustness watermark method based on singular value decomposition and discrete cosine transform | |
CN111681152B (en) | Anti-printing scanning digital watermark method for printed picture | |
CN110570345B (en) | A Blind Watermarking Method for Spatial Color Digital Image Based on Discrete Cosine Transform | |
CN101272485A (en) | A digital watermark superposition and detection method for digital film copyright protection | |
Fan et al. | A Robust Watermarking Technique Resistant JPEG Compression. | |
Venugopala et al. | Evaluation of video watermarking algorithms on mobile device | |
CN112488903A (en) | Spatial domain color digital image blind watermarking method fusing multilevel discrete Fourier transform | |
Gao et al. | A video dual watermarking algorithm against geometric attack based on integer wavelet and SIFT | |
Cai et al. | A multiple watermarks algorithm for image content authentication | |
CN102708535A (en) | Zero-watermark insertion and extraction methods with multiple keys for digital images | |
Kabir et al. | A Secure IWT Watermarking Technique using QR Decomposition and 2D Henon Maps | |
Chen et al. | A geometric robust watermarking algorithm based on DWT-DCT and Zernike moments | |
Abrar et al. | Robust Watermarking Scheme for Digital Image Authentication and Security | |
Maiti et al. | A binary watermarking scheme using quantization levels of BTC-PF method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130731 Termination date: 20210701 |