Color image blind watermarking method based on fast quaternion Schur decomposition
Through fast quaternion Schur decomposition and two-dimensional logically adjusted sine mapping technology, combined with quantized index modulation of quaternion real symmetric matrix, a large-capacity watermark with strong robustness, high invisibility and high real-time performance in color images is achieved , solves the problem that watermarks are easily damaged in the existing technology, and improves the effect of copyright protection.
Patent Information
- Application Number
- CN202410931941.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-27
AI Technical Summary
Existing digital watermarking technology is difficult to achieve strong robustness, high invisibility, and high real-time large-capacity watermarking in color images. Especially in the face of complex geometric attacks, the watermark is easily destroyed, and it is difficult to effectively protect the copyright of the image. .
A color image blind watermarking method based on fast quaternion Schur decomposition is used to encrypt the watermark information through two-dimensional logically adjusted sinusoidal mapping technology, and the quaternion real symmetric matrix is used for quantized index modulation to achieve watermark embedding and extraction, while using geometry Correction techniques improve robustness.
It achieves high robustness and high invisibility under complex geometric attacks, while ensuring the real-time and large capacity of watermarks, and can effectively protect the copyright of images.
Smart Images

Figure CN118710482A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of information security, and relates to copyright protection of large-capacity color digital images with strong robustness, high invisibility and high real-time performance. Background Art
[0002] With the development of 5G communication technology, multimedia information processing methods continue to develop and diversify, bringing many conveniences to people's lives. However, these conveniences also bring a series of information security issues, resulting in frequent copyright disputes and other issues. Therefore, verifying the copyright of digital works is a key issue in digital watermarking technology. Good digital watermarking technology needs to consider many aspects of performance such as robustness, invisibility, real-time, and embedding capacity. In addition, the current copyright protection logo tends to be more beautiful and high-information color image digital watermarks, which makes people pay more attention to color images. Therefore, designing a large-capacity digital watermarking algorithm with strong robustness, high invisibility, and high real-time performance has become a research hotspot in current digital watermarking technology. Summary of the invention
[0003] The purpose of the present invention is to provide a color image blind watermarking method based on fast quaternion Schur decomposition, which is characterized by being implemented through a specific watermark embedding process and a watermark extraction process: The watermark embedding process is described as follows: Step 1: First, take a picture of size 24-bit color digital watermark image Divided into three layered watermark images: red, green and blue ; Then, each layered watermark image Key-based and The two-dimensional logic adjustment sine mapping technology is used for encryption; finally, the scrambled layered watermark image is Each pixel represented by a decimal number in is represented by an 8-bit binary number and connected in sequence to form a length of The layered watermark bit sequence ,in Respectively represent the red, green and blue layers; Step 2: Make a picture of size 24-bit raw color host image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue in sequence vertically; according to the length of the layered watermark information, the function Generate a pseudo-random sequence , according to the pseudo-random sequence from the host image Select the embedded image block ; Step 3: Embed the image block Add to each element Random values in the interval and convert them into quaternion real symmetric matrix According to formula (1), The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; [ u C R , r C R ] = FQD ( H C R ) (1) in, H R = [ H 0 - H 1 - H 2 - H 3 H 1 H 0 - H 3 H 2 H 2 H 3 H 0 - H 1 H 3 - H 2 H 1 H 0 ] , H C R = [ H 0 H 1 H 2 H 3 ] , , represents the function that generates the zero matrix, , , are the pixel values of the red, green, and blue primary color channels of the image block, Represents the fast quaternion Schur decomposition function; Step 4: Select the three layered watermark sequences in order Take out a watermark information to be embedded in each , based on the embedded watermark information And formula (2), for Make changes to get And realize the embedding of watermark; (2) in, is the rounding function, yes In the The value of row 1, column 1, yes The modified The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; Step 5: Use formula (3) to perform inverse fast quaternion Schur decomposition to obtain the real number representation matrix of the quaternion containing the watermark The first column of the block ; (3) Step 6: Modify the matrix The first column in the block Update to carrier image The corresponding position in ; Step 7: Repeat steps 3 to 6 of this process until all watermark information is embedded. Finally, the watermarked image is obtained. ; The watermark extraction process is described as follows: Step 1: Determine the watermarked image Whether it has been attacked: If it has been attacked geometrically, use formula (4) to Perform image correction, otherwise, execute the second step of this process; (4) in, is the image correction function; Step 2: Add the watermarked image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue vertically; Step 3: Use the functions mentioned in the watermark embedding process Generate a pseudo-random sequence , and select all image blocks containing watermarks according to the pseudo-random sequence; Step 4: Select an image block , so that it contains three layers of image blocks vertically in the order of the three primary colors of red, green, and blue, and converts it into a quaternion real symmetric matrix , according to formula (5) for the image block The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; [ u C R * , r C R * ] = FQD ( H C R * ) (5) in, H R * = [ H 0 - H 1 * - H 2 * - H 3 * H 1 * H 0 - H 3 * H 2 * H 2 * H 3 * H 0 - H 1 * H 3 * - H 2 * H 1 * H 0 ] , H C R * = [ H 0 H 1 * H 2 * H 3 * ] , , represents the function that generates the zero matrix, , , are the pixel values of the red, green and blue primary color channels of the watermarked image block, Represents the fast quaternion Schur decomposition function; Step 5: Using formula (6), the real symmetric matrix of the watermarked quaternion obtained from the decomposition The first column of the block Extract watermark from ; (6) in, is the modulo operation function, yes In the The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; Step 6: Repeat steps 4 and 5 until all binary watermark bits are extracted, and then obtain the extracted layered binary watermark sequence , and then convert each 8-bit binary information into a decimal pixel value as a group, where Respectively represent the red, green and blue layers; Step 7: Use the key-based and The two-dimensional logical adjustment sine mapping is used for decryption to obtain the layered watermark image ,in Respectively represent the red, green and blue layers; Step 8: Put the three layers of watermark image Recombined to form a watermark image ,in Represents the red, green and blue layers respectively.
[0004] This method uses quaternions to represent the host image, and obtains the maximum coefficient of the upper triangular matrix after Schur decomposition. The maximum coefficient is quantized by quaternion quantization index modulation technology to complete the embedding and blind extraction of color digital watermarks. In addition, this method also uses image geometric correction technology to further improve its robustness. This method not only has good robustness in complex geometric attacks, but also has good watermark invisibility and high real-time performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 It is a picture of size The original color host image.
[0006] Figure 2 It is a picture of size The original color watermark image.
[0007] Figure 3 Yes Figure 2 The watermark image shown is embedded into the host image Figure 1 The obtained watermarked image has a structural similarity SSIM value of 0.949 and a peak signal-to-noise ratio PSNR value of 38.417 dB.
[0008] Figure 4 is from Figure 3 The normalized cross-correlation coefficient NC value of the watermark extracted from is 1.000.
[0009] Figure 5 (a) Figure 5 (b) Figure 5 (c) Figure 5 (d) Figure 5 (e) Figure 5 (f) Figure 5 (g) Figure 5 (h) Figure 5 (i) Figure 5 (j) is Figure 3 The watermarks extracted from the watermarked images shown in the figure are attacked with JPEG90, JPEG2000 (5:1), salt and pepper noise (0.2%), Gaussian low-pass filtering (3×3), shearing (25%), scaling (400%), rotation (15°), translation (35, -25), affine (0.12, 0.12), and oblique transformation (50, 1; 512, 60; 450, 512; 1,400), and their normalized cross-correlation coefficient NC values are 0.966, 0.969, 0.981, 0.947, 0.885, 0.985, 0.941, 0.948, 0.807, and 0.832, respectively. DETAILED DESCRIPTION
[0010] The purpose of the present invention is to provide a color image blind watermarking method based on fast quaternion Schur decomposition, which is characterized by being implemented through a specific watermark embedding process and a watermark extraction process: The watermark embedding process is described as follows: Step 1: First, take a picture of size 24-bit color digital watermark image Divided into three layered watermark images: red, green and blue ; Then, each layered watermark image Key-based and The two-dimensional logic adjustment sine mapping technology is used for encryption; finally, the scrambled layered watermark image is Each pixel represented by a decimal number in is represented by an 8-bit binary number (for example, a pixel value is 168, which is converted into a binary watermark sequence of 10101000), and is concatenated in sequence to form a length of The layered watermark bit sequence ,in Represent the red, green and blue three-layer watermark images respectively. Ka i = [ 0 . 56823603 , 0 . 00427592 , 0 . 71750067 ] , Kb i = [ 0 . 12516930 , 0 . 56120908 , 0 . 87443383 ] ; Step 2: Make a picture of size 24-bit raw color host image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue in sequence vertically; according to the length of the layered watermark information, the function Generate a pseudo-random sequence , according to the pseudo-random sequence from the host image Select the embedded image block , where the pseudo-random sequence ρ = [ 11021 , 3363 , … , x n ] , ; Step 3: Embed the image block Add to each element Random values in the interval and convert them into quaternion real symmetric matrix According to formula (1), The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; [ u C R , r C R ] = FQD ( H C R ) (1) in, H R = [ H 0 - H 1 - H 2 - H 3 H 1 H 0 - H 3 H 2 H 2 H 3 H 0 - H 1 H 3 - H 2 H 1 H 0 ] , H C R = [ H 0 H 1 H 2 H 3 ] , , represents the function that generates the zero matrix, , , are the pixel values of the three primary color channels of the image block R, B, and G, respectively. represents the fast quaternion Schur decomposition function; here H 0 = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] , the pixel block of its red channel H 1 = [ 9 2 1 2 1 1 3 5 1 2 7 9 6 1 1 8 1 2 8 1 2 1 9 9 1 1 4 1 2 0 1 1 6 1 0 3 1 1 5 1 1 8 1 1 6 ] , pixel block of green channel H 2 = [ 7 4 1 0 0 1 1 4 1 0 9 7 5 9 7 1 0 7 1 0 3 7 6 9 1 98 9 6 7 8 8 7 9 1 9 2 ] , pixel block of the blue channel H 3 = [ 2 8 5 5 6 7 5 9 32 5 2 6 0 5 3 3 4 4 7 51 4 6 3 7 4 7 4 8 4 4 ] ,Add to After the random value in the interval, The pixel block of the red channel H 1 = [ 9 1 . 6 8 0 3 1 2 0 . 9 2 0 2 1 3 5 . 4 4 1 8 127 . 3939 95 . 5195 117 . 9854 128 . 3508 121 . 3572 98 . 9632 113 . 5128 120 . 2300 115 . 6651 103 . 2249 114 . 9874 117 . 6087 116 . 1323 ] , pixel block of green channel H 2 = [ 7 3 . 5 2 0 5 100 . 2590 113 . 6117 108 . 5557 74 . 6167 97 . 3183 106 . 5840 102 . 9798 75 . 8164 90 . 8446 98 . 2127 95 . 9017 77 . 6579 86 . 8188 91 . 0995 92 . 3480 ] , pixel block of the blue channel H 3 = [ 28 . 2178 55 . 4867 66 . 5637 58 . 5704 32 . 1021 51 . 8381 59 . 8646 52 . 7903 34 . 0524 46 . 7399 50 . 5700 46 . 2901 37 . 4491 47 . 2964 47 . 8194 44 . 4054 ] According to formula (1), The first column of the block H C R = [ H 0 H 1 H 2 H 3 ] Perform fast quaternion Schur decomposition to obtain the quaternion real number representation unitary matrix The first column of the block u C R = [ u 0 u 1 u 2 u 3 ] and quaternion real numbers represent the upper triangular matrix The first column of the block r C R = [ r 0 r 1 r 2 r 3 ] , where the matrix u 0 = [ - 0 . 4736 - 0 . 0803 0 . 3184 - 0 . 0670 - 0 . 4912 - 0 . 1076 - 0 . 3796 0 . 2451 - 0 . 5061 0 . 0045 - 0 . 3057 - 1 . 1215 - 0 . 5262 0 . 1352 0 . 3732 0 . 9487 ] , u 1 = [ 0 . 0030 - 0 . 5383 0 . 1630 - 0 . 2361 - 0 . 0083 - 0 . 1820 - 0 . 4387 0 . 7456 - 0 . 0118 0 . 2132 0 . 4664 - 0 . 4075 - 0 . 0182 0 . 4578 - 0 . 1770 - 0 . 1082 ] , u 2 = [ 0 . 0 0 2 4 0 . 1833 - 0 . 2282 0 . 1432 0 . 0080 0 . 1084 0 . 5076 0 . 3905 0 . 0107 - 0 . 1007 - 0 . 1268 0 . 5417 0 . 0169 - 0 . 1806 - 0 . 1523 - 1 . 0940 ] , u 3 = [ 0 . 0009 0 . 4134 - 0 . 2105 - 0 . 4932 0 . 0059 0 . 1093 0 . 3056 1 . 4419 0 . 0105 - 0 . 1726 - 0 . 2322 - 0 . 1060 0 . 0152 - 0 . 2974 0 . 1275 - 0 . 8246 ] ; r 0 = [ 1 . 5 0 2 7 - 3 . 7594 11 . 5250 4 . 1711 - 0 . 9905 0 . 4814 1 . 2456 - 7 . 0874 0 . 2806 0 . 7974 0 . 9647 - 0 . 8826 - 0 . 1677 0 . 1629 0 . 1765 1 . 0512 ] , r 1 = [ 4 5 3 . 8 3 5 8 12 . 9916 16 . 2345 - 1 . 3619 - 1 . 3303 15 . 8578 - 4 . 5097 - 3 . 4361 1 . 3175 - 1 . 4356 0 . 5387 0 . 1290 - 0 . 0473 0 . 0354 0 . 0811 - 0 . 1260 ] , r 2 = [ 3 9 3 . 0 8 9 7 - 19 . 4553 13 . 1473 17 . 5808 43 . 6275 6 . 8357 9 . 6678 6 . 0921 - 1 . 8756 - 0 . 3452 - 0 . 2826 1 . 0961 - 0 . 2740 0 . 1479 0 . 0966 0 . 2137 ] , r 3 = [ 1 5 8 . 6 6 1 4 28 . 8152 10 . 0240 16 . 6530 - 25 . 2259 17 . 1537 - 2 . 9649 - 3 . 8388 0 . 5453 - 0 . 8592 - 0 . 1449 1 . 1379 - 0 . 1058 - 0 . 3112 0 . 2028 - 0 . 0664 ] ; Step 4: Select the three layered watermark sequences in order Take out a watermark information to be embedded in each , based on the embedded watermark information And formula (2), for Make changes to get And realize the embedding of watermark; (2) in, is the rounding function, yes In the The value of row 1, column 1, yes The modified The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; for example, when the watermark information , , ,when When , it means embedding in the R channel. r 1 = [ 4 5 3 . 8 3 5 8 12 . 9916 16 . 2345 - 1 . 3619 - 1 . 3303 15 . 8578 - 4 . 5097 - 3 . 4361 1 . 3175 - 1 . 4356 0 . 5387 0 . 1290 - 0 . 0473 0 . 0354 0 . 0811 - 0 . 1260 ] , , ,so ;when When , it means embedding in the G channel. r 2 = [ 3 9 3 . 0 8 9 7 - 19 . 4553 13 . 1473 17 . 5808 43 . 6275 6 . 8357 9 . 6678 6 . 0921 - 1 . 8756 - 0 . 3452 - 0 . 2826 1 . 0961 - 0 . 2740 0 . 1479 0 . 0966 0 . 2137 ] , , ,so ;when When , it means embedding in channel B. r 3 = [ 1 5 8 . 6 6 1 4 28 . 8152 10 . 0240 16 . 6530 - 25 . 2259 17 . 1537 - 2 . 9649 - 3 . 8388 0 . 5453 - 0 . 8592 - 0 . 1449 1 . 1379 - 0 . 1058 - 0 . 3112 0 . 2028 - 0 . 0664 ] , , ,so ; At this point, an upper triangular matrix The first column of the block The embedding of watermark information is completed, which is expressed as r C R * = [ r 0 r 1 * r 2 * r 3 * ] ,in, r 1 * = [ 4 5 1 12 . 9916 16 . 2345 - 1 . 3619 - 1 . 3303 15 . 8578 - 4 . 5097 - 3 . 4361 1 . 3175 - 1 . 4356 0 . 5387 0 . 1290 - 0 . 0473 0 . 0354 0 . 0811 - 0 . 1260 ] , r 2 * = [ 3 6 3 - 19 . 4553 13 . 1473 17 . 5808 43 . 6275 6 . 8357 9 . 6678 6 . 0921 - 1 . 8756 - 0 . 3452 - 0 . 2826 1 . 0961 - 0 . 2740 0 . 1479 0 . 0966 0 . 2137 ] , r 3 * = [ 1 4 3 28 . 8152 10 . 0240 16 . 6530 - 25 . 2259 17 . 1537 - 2 . 9649 - 3 . 8388 0 . 5453 - 0 . 8592 - 0 . 1449 1 . 1379 - 0 . 1058 - 0 . 3112 0 . 2028 - 0 . 0664 ] ; Step 5: Use formula (3) to perform inverse fast quaternion Schur decomposition to obtain the real number representation matrix of the quaternion containing the watermark The first column of the block ; (3) Get here H C R * = [ H 0 * H 1 * H 2 * H 3 * ] ,in H 0 * = [ 0 . 9135 0 . 2287 0 . 0267 0 . 3689 - 0 . 1941 1 . 1373 - 0 . 0771 0 . 2694 - 0 . 2637 0 . 0767 0 . 8521 0 . 2068 - 0 . 3815 - 0 . 0287 - 0 . 2659 1 . 0971 ] , H 1 * = [ 91 . 2502 119 . 9875 134 . 5755 126 . 7702 95 . 0436 116 . 9949 127 . 4288 120 . 6908 98 . 4275 112 . 4465 119 . 2349 114 . 9327 102 . 6497 113 . 8640 116 . 5616 115 . 3589 ] , H 2 * = [ 66 . 8250 93 . 1536 106 . 5349 101 . 1852 67 . 7613 90 . 0455 99 . 3512 95 . 4337 68 . 7819 83 . 3851 90 . 7974 88 . 1588 70 . 3913 79 . 1142 83 . 4472 84 . 3476 ] , H 3 * = [ 24.7699 51.7725 62.4921 54.5901 28.3616 47.8026 55.4620 48.4746 30.1503 42.5254 45.9797 41.7854 33.3029 42.8113 42.9464 39.6177 ] ; Step 6: Modify the matrix The first column in the block Update to carrier image The corresponding position in ; Step 7: Repeat steps 3 to 6 of this process until all watermark information is embedded. Finally, the watermarked image is obtained. ; The watermark extraction process is described as follows: Step 1: Determine the watermarked image Whether it has been attacked: If it has been attacked geometrically, use formula (4) to Perform image correction, otherwise, execute the second step of this process; (4) in, is the image correction function; Step 2: Add the watermarked image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue vertically; Step 3: Use the functions mentioned in the watermark embedding process Generated pseudo-random sequence , and select all the image blocks containing watermarks according to the pseudo-random sequence; here, the pseudo-random sequence ρ = [ 11021 , 3363 , … , x n ] , ; Step 4: Select an image block , so that it contains three layers of image blocks vertically in the order of the three primary colors of red, green, and blue, and converts it into a quaternion real symmetric matrix , according to formula (5) for the image block The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; [ u C R * , r C R * ] = FQD ( H C R * ) (5) in, H R * = [ H 0 - H 1 * - H 2 * - H 3 * H 1 * H 0 - H 3 * H 2 * H 2 * H 3 * H 0 - H 1 * H 3 * - H 2 * H 1 * H 0 ] , H C R * = [ H 0 H 1 * H 2 * H 3 * ] , , represents the function that generates the zero matrix, , , are the pixel values of the three primary color channels R, B, and G of the watermarked image block, represents the fast quaternion Schur decomposition function; at this time, H 0 = [ 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ] , the pixel block of its red channel H 1 * = [ 9 1 1 2 0 1 3 5 1 2 7 9 5 1 1 7 1 2 7 1 2 1 9 8 1 1 2 1 1 9 1 1 5 1 0 3 1 1 4 1 1 7 1 1 5 ] , pixel block of green channel H 2 * = [ 6 7 9 3 1 0 7 1 0 1 6 8 9 0 9 9 9 5 6 9 8 3 91 8 8 7 0 7 9 8 3 8 4 ] , pixel block of the blue channel H 3 * = [ 2 5 5 2 6 2 5 5 28 4 8 5 5 4 8 3 0 4 3 46 4 2 3 3 4 3 4 3 4 0 ] ;right The first column of the block H C R * = [ H 0 H 1 * H 2 * H 3 * ] Perform fast quaternion Schur decomposition to obtain the quaternion real number representation unitary matrix The first column of the block u C R * = [ u 0 * u 1 * u 2 * u 3 * ] and quaternion real numbers represent the upper triangular matrix The first column of the block r C R * = [ r 0 * r 1 * r 2 * r 3 * ] ,in u 0 * = [ - 0 . 4737 - 0 . 1332 - 0 . 3845 - 0 . 0780 - 0 . 4916 - 0 . 1177 0 . 7508 0 . 0232 - 0 . 5054 0 . 0412 - 0 . 4729 - 0 . 2515 - 0 . 5265 0 . 1587 0 . 0892 0 . 3050 ] , u 1 * = [ 0 . 0032 - 0 . 5009 0 . 0451 - 0 . 1435 - 0 . 0062 - 0 . 1730 - 0 . 0936 - 0 . 0071 - 0 . 0101 0 . 2084 - 0 . 2145 1 . 0951 - 0 . 0163 0 . 4240 0 . 2558 - 0 . 9556 ] , u 2 * = [ 0 . 0 0 2 4 0 . 1086 0 . 0497 0 . 1807 0 . 0061 0 . 0876 - 0 . 2693 - 0 . 7260 0 . 0099 - 0 . 0670 0 . 3531 - 0 . 1562 0 . 0151 - 0 . 1293 - 0 . 1317 0 . 7011 ] , u 3 * = [ 0.0009 0.4686 -0.1263 0.2662 0.0063 0.1349 0.2020 -0.0485 0.0101 -0.1935 0.0502 0.2698 0.0188 -0.3536 -0.1357 -0.4943 ] ;matrix , , , They are r 0 * = [ 1 . 5 5 8 7 - 3 . 1465 2 . 1434 6 . 8252 - 1 . 2703 0 . 4597 2 . 4302 - 1 . 0089 0 . 7966 0 . 0905 0 . 8540 0 . 3192 - 0 . 1324 0 . 0085 - 0 . 0696 1 . 1276 ] , r 1 * = [ 4 4 9 . 0 5 9 5 15 . 1438 - 3 . 2102 3 . 1436 - 4 . 4431 16 . 9990 - 3 . 3852 7 . 4562 1 . 1859 0 . 3671 0 . 0742 0 . 7518 - 0 . 2466 0 . 4288 0 . 2498 - 0 . 2923 ] , r 2 * = [ 3 6 3 . 2 3 3 4 -23.4716 3.2570 -27.0738 46.2117 3.2045 -4.5283 4.6412 2.2516 -1.0104 0.4246 1.4707 0.2462 0.2929 0.1331 -0.3326 ] , r 3 * = [ 1 4 7 . 2 6 7 3 24.7193 -14.2400 15.9232 -18.8159 17.1106 -0.9602 10.5816 -0.1831 1.8149 -0.9373 0.3864 -0.3123 0.1585 0.0889 -0.1181 ] ; Step 5: Using formula (6), the real symmetric matrix of the watermarked quaternion obtained from the decomposition The first column of the block Extract watermark from ; (6) in, is the modulo operation function, yes In the The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; at this time, , ,when When , it means extraction is done in the R channel. r 1 * = [ 4 4 9 . 0 5 9 5 15.1438 -3.2102 3.1436 -4.4431 16.9990 -3.3852 7.4562 1.1859 0.3671 0.0742 0.7518 -0.2466 0.4288 0.2498 -0.2923 ] , , ,and , so it can be determined ;when When , it means that the extraction is done in the G channel. r 2 * = [ 3 6 3 . 2 3 3 4 -23.4716 3.2570 -27.0738 46.2117 3.2045 -4.5283 4.6412 2.2516 -1.0104 0.4246 1.4707 0.2462 0.2929 0.1331 -0.3326 ] , , ,and , so it can be determined ;when When , it means extraction is done on channel B. r 3 * = [ 1 4 7 . 2 6 7 3 24.7193 -14.2400 15.9232 -18.8159 17.1106 -0.9602 10.5816 -0.1831 1.8149 -0.9373 0.3864 -0.3123 0.1585 0.0889 -0.1181 ] , , ,and , so it can be determined ; It can be seen that the extracted watermark information , which is similar to the watermark information embedded above Assume consistency; Step 6: Repeat steps 4 and 5 until all binary watermark bits are extracted, and then obtain the extracted layered binary watermark sequence , and then convert each 8-bit binary information into a decimal pixel value as a group, where Respectively represent the red, green and blue layers; Step 7: Use the key-based and The two-dimensional logical adjustment sine mapping is used for decryption to obtain the layered watermark image ,in Respectively represent the red, green and blue layers; at this time, Ka i = [ 0 . 56823603 , 0 . 00427592 , 0 . 71750067 ] , Kb i = [ 0 . 12516930 , 0 . 56120908 , 0 . 87443383 ] ; Step 8: Put the three layers of watermark image Recombined to form a watermark image ,in Represents the red, green and blue layers respectively.
[0011] This method uses quaternions to represent the host image, and obtains the maximum coefficient of the upper triangular matrix after Schur decomposition. The maximum coefficient is quantized by quaternion quantization index modulation technology to complete the embedding and blind extraction of color digital watermarks. In addition, this method also uses image geometric correction technology to further improve its robustness. This method not only has good robustness in complex geometric attacks, but also has good watermark invisibility and high real-time performance. Verification of the effectiveness of the present invention
[0012] In order to prove the effectiveness of the present invention, Figure 1 The sizes shown are The 24-bit standard image is used as the host image and is used Figure 2 The size of the picture shown is The 24-bit color image is used as a digital watermark for verification.
[0013] Figure 3 Yes Figure 2 The watermark shown is embedded into the host image Figure 1 The obtained watermarked image has a structural similarity SSIM value of 0.949 and a peak signal-to-noise ratio PSNR value of 38.417dB; Figure 4 is from Figure 3The normalized cross-correlation coefficient NC values of the watermarks extracted from are 1.000; Figure 5 (a) Figure 5 (b) Figure 5 (c) Figure 5 (d) Figure 5 (e) Figure 5 (f) Figure 5 (g) Figure 5 (h) Figure 5 (i) Figure 5 (j) is Figure 3 The watermarks extracted from the watermarked images shown in the figure are attacked with JPEG90, JPEG2000 (5:1), salt and pepper noise (0.2%), Gaussian low-pass filtering (3×3), shearing (25%), scaling (400%), rotation (15°), translation (35, -25), affine (0.12, 0.12), and oblique transformation (50, 1; 512, 60; 450, 512; 1,400), and their normalized cross-correlation coefficient NC values are 0.966, 0.969, 0.981, 0.947, 0.885, 0.985, 0.941, 0.948, 0.807, and 0.832, respectively.
[0014] In summary, on the basis of good resistance to conventional attacks, the color digital watermark image extracted by this method also has good identifiability and high NC value under complex geometric attacks, which shows that the method has strong robustness; at the same time, the embedded color digital watermark image has good visual effect, which meets the invisibility requirement of the watermark method; in addition, the total running time of this method under Windows11 version22H2, Intel(R)Core(TM)i7-9750HCPU@2.60GHz, 8GB RAM and MATLAB(R2021b) environment is 3.8594 seconds, which meets the high real-time requirements; in addition, the binary information actually embedded in the color digital image is It has a large watermark capacity and meets the needs of digital watermark copyright protection for large-capacity color images.
Claims
1. The purpose of the present invention is to provide a color image blind watermarking method based on fast quaternion Schur decomposition. Features This is achieved through specific watermark embedding and watermark extraction processes: The watermark embedding process is described as follows: Step 1: First, take a picture of size 24-bit color digital watermark image Divided into three layered watermark images: red, green and blue ; Then, each layered watermark image Key-based and The two-dimensional logic adjustment sine mapping technology is used for encryption; finally, the scrambled layered watermark image is Each pixel represented by a decimal number in is represented by an 8-bit binary number and connected in sequence to form a length of The layered watermark bit sequence ,in Respectively represent the red, green and blue layers; Step 2: Make a picture of size 24-bit raw color host image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue in sequence vertically; according to the length of the layered watermark information, the function Generate a pseudo-random sequence , according to the pseudo-random sequence from the host image Select the embedded image block ; Step 3: Embed the image block Add to each element Random values in the interval and convert them into quaternion real symmetric matrix According to formula (1), The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; (1) in, , , , represents the function that generates the zero matrix, , , are the pixel values of the red, green, and blue primary color channels of the image block, Represents the fast quaternion Schur decomposition function; Step 4: Select the three layered watermark sequences in order Take out a watermark information to be embedded in each , based on the embedded watermark information And formula (2), for Make changes to get And realize the embedding of watermark; (2) in, is the rounding function, yes In the The value of row 1, column 1, yes The modified The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; Step 5: Use formula (3) to perform inverse fast quaternion Schur decomposition to obtain the real number representation matrix of the quaternion containing the watermark The first column of the block ; (3) Step 6: Modify the matrix The first column in the block Update to carrier image The corresponding position in ; Step 7: Repeat steps 3 to 6 of this process until all watermark information is embedded. Finally, the watermarked image is obtained. ; The watermark extraction process is described as follows: Step 1: Determine the watermarked image Whether it has been attacked: If it has been attacked geometrically, use formula (4) to Perform image correction, otherwise, execute the second step of this process; (4) in, is the image correction function; Step 2: Add the watermarked image Divide into size Non-overlapping image blocks, each of which contains three layers of red, green and blue vertically; Step 3: Use the functions mentioned in the watermark embedding process Generate a pseudo-random sequence , and select all image blocks containing watermarks according to the pseudo-random sequence; Step 4: Select an image block , so that it contains three layers of image blocks vertically in the order of the three primary colors of red, green, and blue, and converts it into a quaternion real symmetric matrix , according to formula (5) for the image block The first column of the block Perform fast quaternion Schur decomposition to obtain the unitary matrix of the quaternion real number representation The first column of the block and the quaternion real representation upper triangular matrix The first column of the block ; (5) in, , , , represents the function that generates the zero matrix, , , are the pixel values of the red, green and blue primary color channels of the watermarked image block, Represents the fast quaternion Schur decomposition function; Step 5: Using formula (6), the real symmetric matrix of the watermarked quaternion obtained from the decomposition The first column of the block Extract watermark from ; (6) in, is the modulo operation function, yes In the The value of row 1, column 1, , Respectively represent the red, green and blue layers. is the size of the image block, is the quantization step size; Step 6: Repeat steps 4 and 5 until all binary watermark bits are extracted, and then obtain the extracted layered binary watermark sequence , and then convert each 8-bit binary information into a decimal pixel value as a group, where Respectively represent the red, green and blue layers; Step 7: Use the key-based and The two-dimensional logical adjustment sine mapping is used for decryption to obtain the layered watermark image ,in Respectively represent the red, green and blue layers; Step 8: Put the three layers of watermark image Recombined to form a watermark image ,in Represents the red, green and blue layers respectively.
