发明名称 一种密文图像的可逆水印算法
摘要 本发明提出了一种密文图像的可逆水印算法,该方法涉及图像信息安全,加密信号处理领域,该方法对密文图像进行整数小波变换后,根据秘钥直接将水印信息嵌入到图像的高频区子带中,再通过相应的逆变换及乘法逆元方法移除数据扩展后得到含水印的密文图片;在接收端,进行相同的变换后,根据密钥直接提取水印,并在解密后完成原始图像的无损恢复。该方法嵌入容量高,保密性强,水印的提取是可逆的,能实现图像无损或近无损嵌入和提取水印。
申请公布号 CN106611400A 申请公布日期 2017.05.03
申请号 CN201610373421.8 申请日期 2016.05.31
申请人 四川用联信息技术有限公司 发明人 范勇;胡成华
分类号 G06T1/00(2006.01)I 主分类号 G06T1/00(2006.01)I
代理机构 代理人
主权项 一种密文图像的可逆水印算法,该方法涉及图像信息安全,加密信号处理领域,其主要特征是:本方法对密文图像进行整数小波变换后,根据秘钥直接将水印信息嵌入到图像的高频区子带中,再通过相应的逆变换及乘法逆元方法移除数据扩展后得到含水印的密文图片;在接收端,进行相同的变换后,根据密钥直接提取水印,并在解密后完成原始图像的无损恢复能够在提取出密文图像中嵌入的水印后无损的恢复原始密文图像的信息,本方法的具体实施步骤如下:步骤1:图像加密图像、视频等信息在上传到云端前,先要进行加密处理,加密后,选取<img file="859522dest_path_image001.GIF" wi="12" he="15" />为私钥,(N,g)为公钥,<img file="248915dest_path_image002.GIF" wi="53" he="23" />,对明文图像F进行加密,密文图像为C,设随机大质数p、q,<img file="657899dest_path_image003.GIF" wi="305" he="30" />,<img file="867164dest_path_image004.GIF" wi="28" he="27" />是<img file="102621dest_path_image005.GIF" wi="26" he="22" />中所有与<img file="471155dest_path_image006.GIF" wi="22" he="19" />互质的整数集合,<img file="113357dest_path_image005.GIF" wi="27" he="21" />是小于<img file="140744dest_path_image007.GIF" wi="22" he="19" />的整数集合,则密文图像C的加密公式为:<img file="831488dest_path_image008.GIF" wi="231" he="31" />步骤2:密文图像高频DWT小波变换密文图像进行整数条件的小波变换,图像进行DWT变换,为解决小数问题,依据整数约束条件:<img file="992211dest_path_image009.GIF" wi="459" he="31" />以<img file="680681dest_path_image010.GIF" wi="28" he="23" />为扩展因子,对密文图像进行k层高频整数小波变换,得到各级系数子带:<img file="923925dest_path_image011.GIF" wi="414" he="33" />其中,K表示小波分解层数;步骤3: DWT变换后高频子带系数高、低位分解经DWT变换后得到k层小波系数组,然后将高频子带<img file="356044dest_path_image012.GIF" wi="37" he="17" />中的小波系数分为两部分:一部分:高位部分,即绝对值权值大于或等于<img file="636852dest_path_image013.GIF" wi="22" he="20" />;另一部分:低位部分,即绝对值权值小于<img file="496224dest_path_image014.GIF" wi="22" he="22" />;可以表示为:<img file="229693dest_path_image015.GIF" wi="432" he="55" />设其中绝对值大于<img file="265170dest_path_image014.GIF" wi="23" he="22" />的部分为<img file="400485dest_path_image016.GIF" wi="57" he="31" />,它描述的是<img file="430758dest_path_image012.GIF" wi="41" he="27" />的高位,用<img file="589207dest_path_image017.GIF" wi="40" he="20" />来描述<img file="425445dest_path_image018.GIF" wi="41" he="27" />的低位;步骤4:定义水印和水印嵌入令<img file="618529dest_path_image019.GIF" wi="198" he="29" />,即<img file="879090dest_path_image020.GIF" wi="15" he="13" />等于低位部分,将<img file="259256dest_path_image020.GIF" wi="15" he="13" />作为水印,首先先将<img file="899185dest_path_image020.GIF" wi="15" he="13" />进行猫脸变换也就是置乱处理,变换后记为<img file="946775dest_path_image021.GIF" wi="29" he="18" />,按照图像加密的方法,对<img file="318851dest_path_image021.GIF" wi="29" he="18" />进行加密,加密后得到水印密文,用<img file="251559dest_path_image022.GIF" wi="80" he="33" />来表示:进行如下运算实现水印嵌入,其中<img file="429600dest_path_image023.GIF" wi="15" he="24" />为数据中的正负号标志:<img file="331696dest_path_image024.GIF" wi="355" he="51" />用<img file="874673dest_path_image025.GIF" wi="49" he="24" />取代k层DWT变换中的<img file="557327dest_path_image026.GIF" wi="42" he="21" />系数部分,然此时各级系数子带为:<img file="270550dest_path_image027.GIF" wi="433" he="29" />进行小波反变换得到:<img file="292732dest_path_image028.GIF" wi="147" he="31" /><img file="6611dest_path_image029.GIF" wi="54" he="26" />就是加入可逆水印后的密文图像;因为<img file="910981dest_path_image030.GIF" wi="30" he="30" />是整数,所以在进行小波逆变换的时候,扩展因子由于加密的同态性,被完全移除;步骤5 :水印可逆提取以及图像的恢复步骤5.1:将<img file="368508dest_path_image031.GIF" wi="119" he="29" />定义为水印提取的密钥;步骤5.2:对含水印的密文图像进行整数DWT变换,按照水印的嵌入逆运算,提取出高频分量<img file="372760dest_path_image025.GIF" wi="50" he="25" />;步骤5.3:利用水印提取私钥和水印嵌入公钥<img file="319857dest_path_image025.GIF" wi="49" he="23" />去除水印,去除水印的方法如下:<img file="649207dest_path_image032.GIF" wi="349" he="55" />步骤5.4:去除符号标志:<img file="910424dest_path_image033.GIF" wi="240" he="37" />步骤5.5:利用乘法逆元除去扩展因子<img file="703936dest_path_image034.GIF" wi="33" he="27" />得到<img file="759617dest_path_image035.GIF" wi="59" he="29" />,解密水印图像,进行置乱还原,恢复原始水印<img file="659088dest_path_image020.GIF" wi="15" he="12" />;步骤5.6:还原小波变换系数矩阵,进行小波逆变换得到原始图像。
地址 610054 四川省成都市成华区电子信息产业大厦1101室