Multiple reversible robust watermark processing method and system for light field images resistant to geometric attacks

By embedding watermark information in the light field image and utilizing quaternion polar harmonic-Fourier moments and code division multiplexing technology, the problem that the light field image watermarking scheme cannot restore the original image and resist geometric attacks is solved, and an efficient Copyright protection and attack resistance.

CN114757811BActive Publication Date: 2024-10-25QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210421464.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-21
Publication Date
2024-10-25
Estimated Expiration
2042-04-21

AI Technical Summary

Technical Problem

Existing light field image watermarking schemes cannot restore the original image after embedding watermark information, and cannot effectively resist geometric attacks, making it difficult to protect the copyright of light field images.

Method used

A multiple reversible robust watermark processing method for light field images that is resistant to geometric attacks is used to embed watermark information into multiple positions of the light field macro-pixel image, and the information loss is reversibly embedded into the light field sub-aperture image, using quaternion poles. Harmonic-Fourier moment and code division multiplexing technology improves the watermark's ability to resist attacks.

Benefits of technology

It achieves efficient copyright protection of light field images, can restore the original image when the image is not attacked, and verifies copyright ownership when it is attacked. It significantly improves the ability to resist geometric attacks and maintains high visual quality and imperceptibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114757811B_ABST
    Figure CN114757811B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and system for processing light field images with multiple reversible robust watermarks that are resistant to geometric attacks, which obtain the original 4D light field image to be processed and the watermark information, pre-process the light field image to obtain a macro-pixel image; embed the watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing the watermark; convert the macro-pixel image containing the watermark into a light field sub-aperture image containing the watermark, and reversibly embed the information loss caused by embedding the watermark into the macro-pixel image into the light field sub-aperture image containing the watermark to obtain a final 4D reversible robust watermark light field image; the present invention embeds the watermark into multiple positions of the light field macro-pixel image, and reversibly embeds the information loss caused by embedding the watermark into the light field macro-pixel image into the light field sub-aperture image, thereby improving the ability to resist geometric attacks and having good imperceptibility and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of digital watermarking, and in particular relates to a method and system for processing multiple reversible robust watermarks of light field images resistant to geometric attacks. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Light field images contain rich visual information and have a wider range of application scenarios than traditional images. However, the complex structure also makes it difficult to protect the copyright of light field images. Currently, there are few watermarking schemes suitable for light field images, and most schemes cannot restore the original image after embedding the watermark information. In addition, geometric attacks are still an unresolved problem in the field of light field image watermarking. Summary of the invention

[0004] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a light field image multiple reversible robust watermark processing method and system that is resistant to geometric attacks, which embeds watermarks into multiple positions of light field macro-pixel images, and reversibly embeds the information loss caused by embedding the watermarks into the light field macro-pixel images into the light field sub-aperture images, thereby improving the ability to resist geometric attacks and having good imperceptibility and robustness.

[0005] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0006] The first aspect of the present invention provides a method for processing multiple reversible robust watermarks of light field images that are resistant to geometric attacks;

[0007] The method for processing multiple reversible robust watermarks of light field images resistant to geometric attacks includes:

[0008] Obtaining the original 4D light field image and watermark information to be processed, preprocessing the light field image, and obtaining a macro-pixel image;

[0009] Embedding watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark;

[0010] The watermarked macro-pixel image is converted into a watermarked light field sub-aperture image, and the information loss caused by embedding the watermark into the macro-pixel image is reversibly embedded into the watermarked light field sub-aperture image to obtain the final 4D reversible robust watermarked light field image;

[0011] The watermarked macro-pixel image is obtained by embedding the watermark information into the quaternion polar harmonic-Fourier moments corresponding to multiple positions;

[0012] The information loss is obtained by calculating the difference between the watermark information before and after it is embedded into the quaternion polar harmonic-Fourier moment.

[0013] Furthermore, the process of obtaining the macro pixel image containing the watermark is as follows:

[0014] Selecting multiple positions in the macro-pixel image as position sub-images, and calculating the quaternion polar harmonic-Fourier moment amplitude of the position sub-images;

[0015] The watermark information is embedded into the quaternion polar harmonic-Fourier moment amplitude through quantization method;

[0016] The quaternion polar harmonic-Fourier moment amplitude and the quaternion polar harmonic-Fourier moment amplitude after the watermark information is embedded are reconstructed into a quaternion polar harmonic-Fourier moment image and a quaternion polar harmonic-Fourier moment image containing a watermark, and the difference between the two reconstructed images is calculated to obtain a difference image;

[0017] The difference image and the position sub-image are combined to obtain a macro-pixel image containing a watermark.

[0018] Furthermore, it is characterized in that the process of obtaining a 4D reversible robust watermark light field image from a watermarked macro-pixel image is as follows:

[0019] Converting the watermarked macro-pixel image into a watermarked sub-aperture image;

[0020] The encoded difference image, the image hash obtained by hash calculation of the original 4D light field image, and the watermark information are encoded and combined to obtain embedded information;

[0021] The embedded information is reversibly embedded into the light field sub-aperture image in the order determined by the key and converted into a 4D reversible robust watermark light field image.

[0022] Furthermore, it also includes extracting watermark information from the reversible robust watermark light field sub-aperture image corresponding to the 4D reversible robust watermark light field image and restoring the original 4D light field image, the specific steps are:

[0023] Converting 4D reversible robust watermark light field image into reversible robust watermark light field sub-aperture image;

[0024] Extracting embedded information fragments and flag arrays in the order determined by the key, splicing the embedded information fragments into embedded information, restoring the sub-aperture image to the state of uncontracted pixels using the flag array, and obtaining a sub-aperture image containing a watermark;

[0025] Split the embedded information into the original light field image hash, the difference image encoding and the extracted watermark information;

[0026] The original light field macro-pixel image is calculated by encoding the watermarked macro-pixel image corresponding to the watermarked sub-aperture image and the difference image, and the original 4D light field image is obtained after conversion.

[0027] Furthermore, it also includes extracting watermark information from the reversible robust watermark light field macro-pixel image corresponding to the 4D reversible robust watermark light field image to determine the copyright ownership, and the specific steps are:

[0028] Convert the 4D reversible robust watermark light field image into a reversible robust watermark light field watermark macro pixel image;

[0029] Selecting a watermarked sub-image from the obtained watermarked macro-pixel image;

[0030] The quaternion harmonic-Fourier moment of the selected watermarked sub-image is calculated, and the watermark information is extracted based on the amplitude of the quaternion harmonic-Fourier moment.

[0031] Furthermore, when the 4D reversible robust watermarked light field image is not attacked, the contained watermark information is extracted to determine the copyright ownership, and the original light field image is restored; when attacked, the contained watermark information is extracted to determine the copyright ownership.

[0032] Furthermore, the positive code rate is used to measure the similarity between the original watermark information and the extracted watermark information to verify the copyright of the light field image.

[0033] A second aspect of the present invention provides a light field image multiple reversible robust watermark processing system that is resistant to geometric attacks.

[0034] A multi-reversible robust watermark processing system for light field images resistant to geometric attacks, including an image preprocessing module, a macro-pixel image watermark embedding module, and a sub-aperture image information embedding module;

[0035] The image preprocessing module is configured to: obtain the original 4D light field image and watermark information to be processed, preprocess the light field image, and obtain a macro pixel image;

[0036] The macro-pixel image watermark embedding module is configured to: embed watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark;

[0037] The sub-aperture image information embedding module is configured to: convert the watermarked macro-pixel image into the watermarked light field sub-aperture image, and reversibly embed the information loss caused by embedding the watermark into the macro-pixel image into the light field sub-aperture image to obtain the final 4D reversible robust watermarked light field image;

[0038] The watermarked macro-pixel image is obtained by embedding the watermark information into the quaternion polar harmonic-Fourier moments corresponding to multiple positions;

[0039] The information loss is obtained by calculating the difference between the watermark information before and after it is embedded into the quaternion polar harmonic-Fourier moment.

[0040] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as described in the first aspect of the present invention.

[0041] The fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method for processing multiple reversible robust watermarks of light field images resistant to geometric attacks as described in the first aspect of the present invention are implemented.

[0042] One or more of the above technical solutions have the following beneficial effects:

[0043] The light field image multi-reversible robust watermark processing scheme resistant to geometric attacks proposed by the present invention significantly improves the watermarking scheme's ability to resist geometric attacks by utilizing the geometric invariance of QPHFMs and the fault tolerance of multiple watermarks; the reversible information hiding based on CDM has the characteristic of zero mean, which ensures that the light field image after multi-level information embedding still has high visual quality; when the image is not attacked, the watermark information can be extracted to restore the original light field image. When the image is attacked, the watermark information can be extracted to verify the copyright of the light field image, which overcomes the problem that the existing light field image watermark processing cannot effectively resist geometric attacks, improves the ability to resist various attacks, and has good imperceptibility and robustness in protecting the copyright of light field images.

[0044] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0046] Figure 1 This is a watermark embedding flow chart of the first embodiment;

[0047] Figure 2 This is a location distribution diagram of the first embodiment;

[0048] Figure 3 A flowchart of extracting watermark information and restoring the original light field image according to the first embodiment;

[0049] Figure 4 It is a system structure diagram of the second embodiment. DETAILED DESCRIPTION

[0050] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0051] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0052] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0053] Terminology explanation:

[0054] Polar harmonic Fourier moments (PHFMs);

[0055] Quaternion polar harmonic Fourier moments (QPHFMs);

[0056] Reversible data hiding;

[0057] Code division multiplexing (CDM).

[0058] Light field image f represented by the dual-plane model L (u, v, s, t) contains four dimensions, which makes it inconvenient to describe the light field image through a two-dimensional image. Usually, the light field image is visualized by projecting the four-dimensional light field onto a two-dimensional image. The present invention adopts two description methods, macro-pixel image and sub-aperture image, in the process of embedding watermarks.

[0059] The dual-plane model of the light field represents the position and direction of light by recording the coordinate information of light passing through two parallel planes; the dual plane refers to the camera plane and the imaging plane. Light passing through different points on the imaging plane can be represented as different coordinates on the camera plane. Pixels from the same position captured by all cameras on the camera plane are combined together to form Macro Pixel , all macro-pixels are combined according to the position of the imaging plane to form a light field macro-pixel image. On the camera plane, the camera at each sampling point can obtain a sub-aperture image. Combining all sub-aperture images according to the position of the acquisition point on the camera plane can form a sub-aperture image array.

[0060] When calculating polar harmonic Fourier moments (PHFMs), it is necessary to convert the image defined in the rectangular coordinate system into polar coordinates. For the image f(r,θ) converted into polar coordinates, its PHFMs are defined as follows:

[0061]

[0062] Where P nm are PHFMs, n(n∈N) is the order, m(m∈Z), exp(-jmθ) is the conjugate of the angular Fourier factor exp(jmθ), R n (r) is the radial basis function;

[0063]

[0064] R n (r) is orthogonal in the range of 0≤r≤1, and its orthogonality relationship can be expressed as;

[0065]

[0066] where δ no is the Kronecker function.

[0067] The basis functions of PHFMs are defined as;

[0068] B nm (r,θ)=R n (r)exp(jmθ) (4)

[0069] From the conjugation property of the angular Fourier factor exp(jmθ) and the orthogonality of the radial basis function, it can be deduced that the basis function B nm (r,θ) are orthogonal within the unit circle, and their orthogonality relationship can be expressed as;

[0070]

[0071] in For B ol The conjugate of (r,θ), 0≤r≤1, 0≤θ≤2π, is the normalization factor.

[0072] Since the basis functions of PHFMs are orthogonal, the original image f(r,θ) can be reconstructed using PHFMs, and the image reconstruction function of f(r,θ) can be expressed as;

[0073]

[0074] Quaternions are an extension of complex numbers, consisting of a real part and three imaginary parts;

[0075] x=x0+x1e1+x2e2+x3e3 (7)

[0076] Where x0, x1, x2, x3 are the real parts and e1, e2, e3 are the imaginary units.

[0077] For a color image f in polar coordinates C (r,θ), can be expressed as:

[0078] f C (r,θ)=f r (r,θ)e1+f g (r,θ)e2+f b (r,θ)e3 (8)

[0079] Among them, f r (r,θ), f g (r,θ), f b (r,θ) represent f C The red, green, and blue components of (r,θ).

[0080] Based on quaternion theory and PHFMs, quaternion polarharmonic Fourier moments (QPHFMs) can be constructed, because the multiplication of quaternions does not satisfy the commutative law, and f C (r,θ) and exp(-μmθ) are both quaternions, so there are two ways to define QPHFMs:

[0081]

[0082]

[0083] in, represents right QPHFMs, Indicates left QPHFMs, R n (r) is the radial basis function of QPHFMs, μ is a unit pure quaternion, which can be expressed as;

[0084]

[0085] The same set of images f C The right QPHFMs and left QPHFMs of (r,θ) can be derived from each other, and their relationship can be expressed as;

[0086]

[0087] in express The conjugate of f C(r,θ) is a pure quaternion matrix, then

[0088] so;

[0089]

[0090] use and The formulas for reconstructing the image can be expressed as;

[0091]

[0092]

[0093] In the following, right QPHFMs will be used unless otherwise stated. As an example in the discussion.

[0094] Code division multiplexing (CDM) is a spread spectrum technology and is widely used in information security transmission and reversible information hiding. In the CDM-based reversible information hiding process, a preset spread spectrum sequence is used to encode and extract embedded information. The Walsh Hadamard matrix is ​​generally used to generate orthogonal spread spectrum sequences. Orthogonal spread spectrum sequences are mutually orthogonal and consist of elements 1 and -1. Since the number of 1 and -1 in each spread spectrum sequence is equal, it has the characteristic of zero mean. Since the spread spectrum sequence has the characteristics of orthogonality and zero mean, reversible information hiding based on CDM can realize the superposition embedding and extraction of embedded information, has high imperceptibility, and can restore the original carrier.

[0095] Embodiment 1

[0096] This embodiment discloses a method for processing multiple reversible robust watermarks of light field images that is resistant to geometric attacks;

[0097] like Figure 1 As shown, the light field image multiple reversible robust watermark processing method resistant to geometric attacks includes:

[0098] S1: Obtain the original 4D light field image and watermark information to be processed, preprocess the light field image, and obtain a macro pixel image;

[0099] Assume that the original 4D light field image f L The size of is U×V×S×T, and the watermark information W is a binary image of size P×Q.

[0100] Calculate the image hash of the original 4D light field image for the subsequent reversible embedding process to verify the consistency of the restored image. Convert the original 4D light field image into a light field macro-pixel image f M, for embedding of multiple robust watermarks.

[0101] S2: embedding watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark. The specific steps are as follows:

[0102] S2-1: Multiple watermark position sub-image selection

[0103] In order to effectively resist geometric attacks such as rotation and cropping, a unique multiple robust watermark position selection method is adopted. In the process of selecting multiple robust watermark positions, the sub-image Located at the center of the light field macro-pixel image, and lie in Around, its distribution pattern is as follows Figure 2 shown.

[0104] S2-2: Quaternion Harmonics - Fourier Moment Calculation

[0105] Calculate sub-image The maximum moment order is N max The quaternion polar harmonic-Fourier moment of the quaternion is obtained, and the number of groups is (N max +1)(2N max +1).

[0106] S2-3: Watermark Embedding

[0107] Five keys K0-K5 are randomly generated using the key generation algorithm. In each set of amplitudes, keys K0-K5 are used to randomly select P×Q QPHFM amplitudes to construct the amplitude sequence A=(A1, A2, …, A P×Q ), the watermark information is embedded into the amplitude sequence using a quantization method. The quantization method is as follows:

[0108]

[0109] Where k = 1, 2, ..., P × Q, λ k =round(A′ k / Δ), A k and A′ k is the initial amplitude of the selected QPHFM moment and the amplitude after embedding the watermark, mod(x,y) is the remainder function, round(x) is the rounding function, Δ is the quantization step size, W(k) is the watermark information, which is a binary sequence converted from a binary image of size P×Q.

[0110] S2-4: Reconstructed image difference sub-image calculation

[0111] The QPHFMs and watermarked QPHFMs of each sub-image are used to reconstruct the sub-images, and the difference sub-images are obtained by combining the two types of reconstructed sub-images.

[0112] S2-5: Watermarked Macropixel Image Construction

[0113] The position sub-image obtained in step S2-1 and the difference sub-image obtained in step S2-4 are combined to obtain the watermark sub-image. Use watermark sub-image Replace the position sub-images in the light field macro-pixel image respectively A watermarked macro-pixel image can be obtained

[0114] S3: converting the watermarked macro-pixel image into a watermarked light field sub-aperture image, reversibly embedding the information loss caused by embedding the watermark into the macro-pixel image into the watermarked light field sub-aperture image, and obtaining the final 4D reversible robust watermarked light field image. The specific steps are:

[0115] S3-1: Difference image coding

[0116] All the difference images obtained in step S2-4 are encoded using Huffman coding to obtain a set of difference image coding sequences and dictionaries.

[0117] S3-2: Reversible embedding preprocessing

[0118] Convert the watermarked macro-pixel image obtained in step S2-5 into a watermarked sub-aperture image As a carrier image for reversible embedding, the difference image coding sequence and dictionary obtained in step S3-1, the image hash of the original 4D light field image obtained in step S1, and the watermark information are encoded and combined to obtain the embedding information M for reversible embedding.

[0119] S3-3: Reversible embedding

[0120] In order to achieve reversible information embedding, the original embedded information needs to be converted into a form containing elements 1 and -1. Assume that the embedded information to be embedded is M = a1, a2, a3, ..., a k , where a i ∈{1,0},1≤i≤k. The converted embedded information is M * =b1,b2,b3,…,b k , where b i ∈{1,-1},1≤i≤k, the conversion formula is as follows:

[0121] b i = -cosπa i (17)

[0122] Select k rows in the Walsh Hadamard matrix to form mutually orthogonal spreading sequences Si ={r1,r2,r3,…,r l}, where 1≤i≤k, l is the length of the spreading sequence, and l is an even number. Select a sub-aperture image I and select adjacent pixels from it to form a sequence P j ={t1,t2,t3,…,t l}, where 1≤j≤k, l is the same as the length of the spreading sequence. The information embedding process can be expressed as:

[0123]

[0124] Where k represents the number of bits of embedded information and α represents the embedding strength. The higher the embedding strength, the greater the change to the original image. j Replace with Get a dense light field subaperture image I * .

[0125] When a large amount of information needs to be embedded, the information can be processed in segments to achieve multi-level embedding. The multi-level embedding process can be expressed as:

[0126]

[0127] Where u represents the number of embedding layers, u×k represents the number of bits of embedded information, and α represents the embedding strength. Represents the information sequence after segment processing, MS i (1≤i≤u) represents the spreading matrix corresponding to each embedding. j Replace with After multi-level embedding, we get a dense light field sub-aperture image I ** .

[0128] The reversible embedding process is to reversibly embed the embedded information M obtained in step S3-2 into the watermarked sub-aperture image in sections. In order to improve the security of embedding the embedded information, the key K6 is used to determine the order of sub-aperture images embedded in the embedded information.

[0129] The first sub-aperture image to be embedded with information is subjected to pixel contraction to obtain the pixel-contracted sub-aperture image and the flag array. The length of the flag array and the flag array are used as the beginning of the first sub-aperture image embedded information. A section of the embedded information M that meets the embedding capacity is used as another part of the embedded information.

[0130] The embedded information is embedded in sections in sequence according to the embedding order determined by the key K6 until all embedded information is embedded, and a reversible robust watermark sub-aperture image is obtained.

[0131] S3-4: Reversible robust watermarking light field image conversion

[0132] The reversible robust watermark sub-aperture image obtained in step S3-3 Transformed into 4D reversible robust watermark light field image Complete the multiple reversible robust watermark embedding process of light field images.

[0133] When the 4D reversible robust watermarked light field image is not attacked, the watermark information is extracted from the reversible robust watermarked light field sub-aperture image to determine the copyright ownership, and the original light field image is restored; when attacked, the watermark information contained in the reversible robust watermarked light field macro-pixel image is extracted to determine the copyright ownership, and the process of extracting the watermark information and restoring the original light field image is as follows: Figure 3 shown.

[0134] When the 4D reversible robust watermark light field image is not attacked, the specific extraction and recovery method is:

[0135] (1) Image conversion

[0136] 4D reversible robust watermarking of light field images Transformed into a reversible robust watermark sub-aperture image Used for embedding information extraction.

[0137] (2) Embedded Information Extraction

[0138] In order to extract reversible robust watermark sub-aperture images A dense particle aperture image I * The information contained in it is restored to the original image, and the sequence is constructed in the same way as the embedding stage By calculation With the spreading sequence S i The inner product of can extract the embedded information, and the calculation process can be expressed as:

[0139]

[0140] Since the spreading sequence S i are orthogonal, the above formula can be simplified to:

[0141]

[0142] Among them, b i represents the extracted embedding information, which consists of 1 or -1, and α represents the embedding strength.

[0143] Since α and S i ·S i T is a positive integer, αb i S i·S i T The symbol is b i Decide when |P j ·S i T |≥|αS i ·S i T |When P j The embedding condition is not met when |P j ·S i T |<|αS i ·S i T |, the extraction process of embedded information can be expressed as:

[0144]

[0145] After extracting the embedded information, the restoration process of the original image can be expressed as:

[0146]

[0147] The carrier aperture image I * All Replace with P j , a watermarked sub-aperture image I can be obtained.

[0148] When extracting the embedded information of multi-level embedding and restoring the original image, the embedded information needs to be extracted from back to front in sequence according to the embedding order and the spreading matrix, and then the image is restored in sequence.

[0149] The key K6 is used to determine the extraction order, and the embedded information fragments and the flag array of each sub-aperture image are extracted according to the extraction order; the sub-aperture image after the information is extracted is restored to the state of uncontracted pixels using the flag array to obtain the sub-aperture image containing the watermark The extracted embedded information fragments are concatenated to obtain the embedded information M.

[0150] (3) Embedded Information Splitting

[0151] The embedded information M obtained in the above step is split into the original light field image hash, the difference image code and the watermark information. The obtained watermark information is used to determine the copyright ownership.

[0152] (4) Difference Image Decoding

[0153] The difference image obtained in the above steps is encoded and decoded to obtain a difference sub-image

[0154] (5) Light field macro-pixel image restoration

[0155] The watermarked sub-aperture image obtained in step (2) Convert to watermarked macropixel image Will By subtracting the difference sub-image obtained in step (4), we can get the original light field macro-pixel image f M .

[0156] (6) Light field image restoration and verification

[0157] The light field macro-pixel image f obtained in step (5) M Converted into a 4D light field image f M , and calculate its image hash; by comparing the calculated image hash with the original light field image hash obtained in step (3), verify the consistency between the restored light field image and the original light field image.

[0158] When the 4D reversible robust watermark light field image is attacked, the specific extraction method is:

[0159] (1) Image conversion

[0160] 4D reversible robust watermarking of light field images Converted into reversible robust watermark macro-pixel image Used for watermark information extraction.

[0161] (2) Watermark sub-image selection

[0162] according to Figure 2 The distribution law shown in the figure selects the watermark sub-image

[0163] (3) QPHFM calculation

[0164] Calculate the watermark sub-image The maximum moment order is N max QPHFMs, and five groups of (N max +1)(2N max +1).

[0165] (4) Watermark information extraction

[0166] In each group of amplitudes, P×Q QPHFM amplitudes are selected using keys K0 to K5 respectively and used to construct the watermarked amplitude sequence The method for extracting watermark information from each set of watermark amplitude sequences is as follows

[0167]

[0168] in, floor(x) is the floor function, W * = {W *(k), 0≤k≤P×Q} is the extracted watermark information.

[0169] (5) Watermark information verification

[0170] The bit correct ratio (BCR) is used to measure the watermark information W′ to be detected and the original watermark information W, and then verify the copyright of the image. The BCR calculation formula is as follows:

[0171]

[0172] Where C is the number of pixels that are the same between W′ and W, and P×Q is the size of the watermark information.

[0173] The five sets of watermark information obtained in step (4) are compared with the original watermark information respectively. As long as one set of watermark information can be verified, the copyright ownership can be determined.

[0174] Embodiment 2

[0175] This embodiment discloses a light field image multiple reversible robust watermark processing system that is resistant to geometric attacks;

[0176] like Figure 4 As shown, a light field image multiple reversible robust watermark processing system resistant to geometric attacks includes an image preprocessing module, a macro-pixel image watermark embedding module, and a sub-aperture image information embedding module;

[0177] The image preprocessing module is configured to: obtain the original 4D light field image and watermark information to be processed, preprocess the light field image, and obtain a macro pixel image;

[0178] The macro-pixel image watermark embedding module is configured to: embed watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark;

[0179] The sub-aperture image information embedding module is configured to: convert the watermarked macro-pixel image into the watermarked light field sub-aperture image, and reversibly embed the information loss caused by embedding the watermark into the macro-pixel image into the light field sub-aperture image to obtain the final 4D reversible robust watermarked light field image;

[0180] The watermarked macro-pixel image is obtained by embedding the watermark information into the quaternion polar harmonic-Fourier moments corresponding to multiple positions;

[0181] The information loss is obtained by calculating the difference between the watermark information before and after it is embedded into the quaternion polar harmonic-Fourier moment.

[0182] Embodiment 3

[0183] The purpose of this embodiment is to provide a computer-readable storage medium.

[0184] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as described in Embodiment 1 of the present disclosure.

[0185] Embodiment 4

[0186] The purpose of this embodiment is to provide an electronic device.

[0187] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the method for processing multiple reversible robust watermarks of light field images resistant to geometric attacks as described in Embodiment 1 of the present disclosure are implemented.

[0188] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.

[0189] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.

[0190] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A multi-reversible robust watermarking method for light field images resistant to geometric attacks, characterized in that: Obtaining the original 4D light field image and watermark information to be processed, preprocessing the light field image, and obtaining a macro-pixel image; Embedding watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark; The watermarked macro-pixel image is converted into a watermarked light field sub-aperture image, and the information loss caused by embedding the watermark into the macro-pixel image is reversibly embedded into the watermarked light field sub-aperture image to obtain the final 4D reversible robust watermarked light field image; The process of obtaining the macro-pixel image containing the watermark is as follows: selecting multiple positions in the macro-pixel image as position sub-images, calculating the quaternion polar harmonic-Fourier moment amplitude of the position sub-image; embedding the watermark information into the quaternion polar harmonic-Fourier moment amplitude by a quantization method; reconstructing the quaternion polar harmonic-Fourier moment amplitude and the quaternion polar harmonic-Fourier moment amplitude after the watermark information is embedded into a quaternion polar harmonic-Fourier moment image and a quaternion polar harmonic-Fourier moment image containing the watermark, and calculating the difference between the two reconstructed images. The difference image is obtained by combining the difference image and the position sub-image to obtain a macro-pixel image containing a watermark; the process of obtaining a 4D reversible robust watermark light field image from the macro-pixel image containing a watermark is as follows: the macro-pixel image containing a watermark is converted into a sub-aperture image containing a watermark; the encoded difference image, the image hash obtained by hash calculation of the original 4D light field image and the watermark information are encoded and combined to obtain embedded information; the embedded information is reversibly embedded into the light field sub-aperture image in an order determined by a key, and converted into a 4D reversible robust watermark light field image; The watermarked macro-pixel image is obtained by embedding the watermark information into the quaternion polar harmonic-Fourier moments corresponding to multiple positions; The information loss is obtained by calculating the difference between the watermark information before and after it is embedded into the quaternion polar harmonic-Fourier moment.

2. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 1, characterized in that: The method for obtaining the macro pixel image containing the watermark is: Selecting multiple positions in the macro-pixel image as position sub-images, and calculating the quaternion polar harmonic-Fourier moment amplitude of the position sub-images; The watermark information is embedded into the quaternion polar harmonic-Fourier moment amplitude through quantization method; The quaternion polar harmonic-Fourier moment amplitude and the quaternion polar harmonic-Fourier moment amplitude after the watermark information is embedded are reconstructed into a quaternion polar harmonic-Fourier moment image and a quaternion polar harmonic-Fourier moment image containing a watermark, and the difference between the two reconstructed images is calculated to obtain a difference image; The difference image and the position sub-image are combined to obtain a macro-pixel image containing a watermark.

3. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 1, characterized in that: The process of obtaining a 4D reversible robust watermark light field image from a watermarked macro-pixel image is as follows: Converting the watermarked macro-pixel image into a watermarked sub-aperture image; The encoded difference image, the image hash obtained by hash calculation of the original 4D light field image, and the watermark information are encoded and combined to obtain embedded information; The embedded information is reversibly embedded into the light field sub-aperture image in the order determined by the key and converted into a 4D reversible robust watermark light field image.

4. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 1, characterized in that: It also includes, when the 4D reversible robust watermark light field image is not attacked, extracting watermark information from the reversible robust watermark light field sub-aperture image to determine the copyright ownership and restoring the original light field image; when attacked, extracting the contained watermark information from the reversible robust watermark light field macro-pixel image to determine the copyright ownership.

5. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 4, characterized in that: Extract watermark information from the reversible robust watermark light field sub-aperture image corresponding to the 4D reversible robust watermark light field image and restore the original 4D light field image. The specific steps are as follows: Converting 4D reversible robust watermark light field image into reversible robust watermark light field sub-aperture image; Extracting embedded information fragments and flag arrays in the order determined by the key, splicing the embedded information fragments into embedded information, restoring the sub-aperture image to the state of uncontracted pixels using the flag array, and obtaining a sub-aperture image containing a watermark; Split the embedded information into the original light field image hash, the difference image encoding and the extracted watermark information; The original light field macro-pixel image is calculated by encoding the watermarked macro-pixel image corresponding to the watermarked sub-aperture image and the difference image, and the original 4D light field image is obtained after conversion.

6. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 4, characterized in that: Extracting watermark information from the reversible robust watermark light field macro-pixel image corresponding to the 4D reversible robust watermark light field image, the specific steps are: Convert the 4D reversible robust watermark light field image into a reversible robust watermark light field watermark macro pixel image; Selecting a watermarked sub-image from the obtained watermarked macro-pixel image; The quaternion harmonic-Fourier moment of the selected watermarked sub-image is calculated, and the watermark information is extracted based on the amplitude of the quaternion harmonic-Fourier moment.

7. The method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as claimed in claim 4, characterized in that: The positive code rate is used to measure the similarity between the original watermark information and the extracted watermark information to verify the copyright of the light field image.

8. A multi-reversible robust watermark processing system for light field images resistant to geometric attacks, characterized by: It includes an image preprocessing module, a macro-pixel image watermark embedding module, and a sub-aperture image information embedding module; The image preprocessing module is configured to: obtain the original 4D light field image and watermark information to be processed, preprocess the light field image, and obtain a macro pixel image; The macro-pixel image watermark embedding module is configured to: embed watermark information into multiple positions in the macro-pixel image to obtain a macro-pixel image containing a watermark; The sub-aperture image information embedding module is configured to: convert the watermarked macro-pixel image into the watermarked light field sub-aperture image, and reversibly embed the information loss caused by embedding the watermark into the macro-pixel image into the light field sub-aperture image to obtain the final 4D reversible robust watermarked light field image; The process of obtaining the macro-pixel image containing the watermark is as follows: selecting multiple positions in the macro-pixel image as position sub-images, calculating the quaternion polar harmonic-Fourier moment amplitude of the position sub-image; embedding the watermark information into the quaternion polar harmonic-Fourier moment amplitude by a quantization method; reconstructing the quaternion polar harmonic-Fourier moment amplitude and the quaternion polar harmonic-Fourier moment amplitude after the watermark information is embedded into a quaternion polar harmonic-Fourier moment image and a quaternion polar harmonic-Fourier moment image containing the watermark, and calculating the difference between the two reconstructed images. The difference image is obtained by combining the difference image and the position sub-image to obtain a macro-pixel image containing a watermark; the process of obtaining a 4D reversible robust watermark light field image from the macro-pixel image containing a watermark is as follows: the macro-pixel image containing a watermark is converted into a sub-aperture image containing a watermark; the encoded difference image, the image hash obtained by hash calculation of the original 4D light field image and the watermark information are encoded and combined to obtain embedded information; the embedded information is reversibly embedded into the light field sub-aperture image in an order determined by a key, and converted into a 4D reversible robust watermark light field image; The watermarked macro-pixel image is obtained by embedding the watermark information into the quaternion polar harmonic-Fourier moments corresponding to multiple positions of the macro-pixel image through a quantization method; The information loss is obtained by calculating the difference between the watermark information before and after it is embedded into the quaternion polar harmonic-Fourier moment.

9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the method for processing multiple reversible robust watermarks for light field images resistant to geometric attacks as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for embedding and detecting robust image watermarks on basis of circular-harmonic-Fourier moments

    CN104504645A

  • Reversible robust watermarking method based on Zernike moment geometric attack resistance

    CN111242831A

  • Light field image watermark processing method and system based on 32-element moment

    CN113610696A

  • Watermark detection method for broadcasting

    WO2008041061A1