为了提高数字图像水印的鲁棒性,提出一种离散余弦变换和汉明码相结合的数字图像水印算法。该算法首先用Arnold变换和汉明码对二值水印图像进行置乱加密和编码;然后对载体图像进行828分块,且对每个子块分别进行二维离散余弦变换;最后再将加密和编码后的水印嵌入到二维离散余弦变换的中频系数中,嵌入强度根据载体图像的特性自适应的确定。实验结果表明,水印表现出良好的安全性和不可感知性,不仅能够有效的抵御噪声、重采样、滤波、压缩、旋转和剪切等单一水印攻击,对多种单一水印攻击组合而成的联合水印攻击也具有较好的鲁棒性,实现了水印的自适应嵌入和盲提取。
In order to improve the robustness of digital image watermarking, a digital image watermarking algorithm is proposed based on discrete cosine transform and Hamming code. Firstly, Arnold transform and Hamming code are used to scrambling encryption and encoding of the binary watermarking image. Then, the carrier image is divided to 8×8 blocks, and each sub-block is carried on two-dimensional discrete cosine transform respectively. Finally, the encrypted and encoded watermarking is embedded into the middle frequency coefficients of the two-dimensional discrete cosine transform, the embedding strength is adaptively determined according to the characteristics of the carrier image. The experimental results show that the security and the imperceptibility of the watermarking are very good, not only it can effectively resist the attack of noise, resampling, filtering, compression, rotation, shearing and so on, but has good robustness against the many kinds of combined attack as well, and implements adaptive embedding and blind extracting of watermarking.