WO2019113810A1 - Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system - Google Patents

Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system Download PDF

Info

Publication number
WO2019113810A1
WO2019113810A1 PCT/CN2017/115765 CN2017115765W WO2019113810A1 WO 2019113810 A1 WO2019113810 A1 WO 2019113810A1 CN 2017115765 W CN2017115765 W CN 2017115765W WO 2019113810 A1 WO2019113810 A1 WO 2019113810A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
value
vertices
matrix
embedding
Prior art date
Application number
PCT/CN2017/115765
Other languages
French (fr)
Chinese (zh)
Inventor
彭翔
王启垒
何文奇
刘晓利
Original Assignee
深圳大学
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳大学 filed Critical 深圳大学
Priority to PCT/CN2017/115765 priority Critical patent/WO2019113810A1/en
Publication of WO2019113810A1 publication Critical patent/WO2019113810A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Definitions

  • the invention belongs to the field of three-dimensional digital watermarking, and in particular relates to a three-dimensional blind watermark embedding and extracting detection method and device in a partial spherical coordinate system.
  • 3D digital models are increasingly appearing in people's field of vision as a new form of digital media.
  • 3D digital models are becoming an important form of digital media.
  • the illegal possession, theft, modification, and dissemination of the three-dimensional digital model are also increasing, and the intellectual property protection of the three-dimensional digital model is imminent.
  • digital watermark can also be used to protect intellectual property rights of 3D digital models.
  • the research on more mature digital watermarking technology is mostly concentrated on one-dimensional or two-dimensional digital carriers such as audio, image and video.
  • the 3D model watermark can be divided into a blind watermark and a non-blind watermark.
  • the latter needs the original model when detecting the watermark, while the former does not need it.
  • the non-blind The watermark value is not large, and the blind watermark technology has practical application value.
  • the watermark is further divided into a checkable watermark, a readable watermark, and a visible watermark according to the content.
  • the detection result of the watermark detectable is a binary form of 0 or 1.
  • the detection result of the readable watermark is a string form, and the detection result of the visible watermark is an image form. Undoubtedly, the detection result of the visible watermark is more intuitive and meaningful.
  • the carrier of the three-dimensional model watermark is different.
  • the vertices of the 3D model are irregular sampling, and there is no natural ordering, which makes no direct mathematical tools to process them, so the watermark embedding is very difficult.
  • 3D non-blind watermark can also extract watermark by means of resampling and realignment, while blind watermark can only rely on its own watermark. Watermark extraction, embedding difficulty and extraction difficulty is more, which is one of the reasons why most 3D model watermarks use non-blind detection.
  • the invention provides a method and a device for embedding and extracting a three-dimensional blind watermark in a partial spherical coordinate system, aiming at realizing invisibility embedding of a watermark of a three-dimensional digital model, realizing online blind extraction of the watermark after embedding, and the watermark content is meaningful Visual watermark.
  • the present invention provides a three-dimensional blind watermark embedding and extraction detection method in a partial spherical coordinate system, the method comprising: a blind watermark embedding step S1 and a blind watermark extraction detecting step S2;
  • the blind watermark embedding step S1 includes:
  • Step S11 pre-processing the original watermark image to be embedded, and obtaining the attribute value (L, J, I) of the watermark element of the original watermark image;
  • L is the row index code value
  • J is the column index code value
  • I is the element value, ie the energy value
  • Step S12 Filter all candidate vertices satisfying the screening condition from the three-dimensional model to be embedded in the watermark according to the first preset screening condition;
  • Step S13 establishing a local spherical coordinate system under the custom for the candidate vertices, and determining a spherical coordinate value of each of the candidate vertices among them, ⁇ , r are three attribute values of each candidate vertex satisfying the screening condition;
  • Step S14 comparing the attribute value of the watermark element with the attribute value of all candidate vertices satisfying the screening condition, searching for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point embedded in the watermark element, and changing the candidate The position of the vertex in its spherical coordinate system, making it
  • the value of ⁇ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element;
  • the candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
  • the blind watermark extraction detecting step S2 includes:
  • Step S21 Filter all possible embedded vertices satisfying the screening condition from the three-dimensional model to be detected according to the first preset screening condition;
  • Step S22 establishing a local spherical coordinate system under the custom embedding vertices, and determining a spherical coordinate value of each of the possible embedded vertices among them, ⁇ , r are three attribute values of each possible embedding vertex that satisfy the screening condition;
  • Step S23 combining the attribute values of the possible embedding vertices with the index value and the energy value extraction of each of the possible embedding vertices satisfying the screening condition in the three-dimensional model, to obtain a matrix S4;
  • Step S24 inversely transforming the matrix S4 back into the airspace to obtain an extracted watermark image
  • Step S25 Calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
  • the invention also provides a three-dimensional blind watermark embedding and extracting detecting device in a partial spherical coordinate system, the device comprising: a blind watermark embedding module and a blind watermark extraction detecting module;
  • the blind watermark embedding module includes:
  • a pre-processing sub-module configured to pre-process the original watermark image to be embedded, to obtain an attribute value (L, J, I) of the watermark element of the original watermark image;
  • L is the row index code value
  • J is the column index code value
  • I is the element value, ie the energy value
  • a first screening sub-module configured to filter, from the three-dimensional model of the watermark to be embedded, all candidate vertices satisfying the screening condition according to the first preset screening condition
  • a first coordinate system establishing submodule configured to establish a local spherical coordinate system under the custom vertices, and determine a spherical coordinate value of each of the candidate vertices among them, ⁇ , r are three attribute values of each candidate vertex satisfying the screening condition;
  • a watermark embedding sub-module configured to compare a property value of the watermark element with an attribute value of all candidate vertices satisfying a filter condition, and search for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point at which the watermark element is embedded , changing the position of this candidate vertex in its spherical coordinate system, making it
  • the value of ⁇ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element;
  • the candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
  • the blind watermark extraction detection module includes:
  • a second screening sub-module configured to filter, from the three-dimensional model to be detected, all possible embedded vertices satisfying the screening condition according to the first preset screening condition
  • a second coordinate system establishing submodule configured to establish a local spherical coordinate system under the custom embedding vertices, and determine a spherical coordinate value of each of the possible embedded vertices among them, ⁇ , r are three attribute values of each possible embedding vertex that satisfy the screening condition;
  • An extraction submodule configured to perform an index value and an energy value extraction on the possible embedded vertex satisfying the filter condition in the three-dimensional model in combination with the attribute value of the possible embedding vertex, to obtain a matrix S4;
  • An inverse transform sub-module configured to inverse transform the matrix S4 back into the airspace to obtain an extracted watermark image
  • the determining sub-module is configured to calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
  • the present invention has the beneficial effects that the method and device for three-dimensional blind watermark embedding and extracting detection in a partial spherical coordinate system provided by the present invention include a watermark embedding portion and a watermark extraction detecting portion, wherein the watermark embedding portion
  • the processing process is: pre-processing the embedded original watermark image, obtaining the energy value and the index value to be embedded, and then screening out the candidate vertices satisfying the condition from the three-dimensional model of the watermark to be embedded according to the first preset screening condition, and The local spherical coordinate system of the candidate vertices is established.
  • the processing process of the watermark extraction detection part is: first, according to the first
  • the preset filter condition selects the three-dimensional model to be detected and may embed the vertices to establish a partial spherical sitting that may embed the vertices.
  • the target system obtains the spherical coordinate value, and extracts the index value and the energy value, then inversely transforms back into the spatial domain to obtain the extracted watermark image, and finally performs correlation calculation on the extracted watermark image and the original watermark image to determine whether the three-dimensional model contains a watermark;
  • the invention realizes the invisibility embedding of the watermark of the three-dimensional digital model, and does not need to be repeatedly embedded, can realize the online blind extraction of the watermark after embedding, and can resist the affine transformation attack and the shear attack, and the watermark
  • the content is a meaningful visual watermark, which has great practical value.
  • FIG. 1 is a schematic flow chart of a method for embedding and extracting a three-dimensional blind watermark in a partial spherical coordinate system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a blind watermark embedding step according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a three-dimensional digital model of a watermark to be embedded according to an embodiment of the present invention
  • FIG. 6 is a three-dimensional digital model embedded in a watermark according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of a blind watermark extraction detection step according to an embodiment of the present invention.
  • FIG. 8 is a watermark image obtained by performing watermark extraction on a three-dimensional model embedded in a watermark according to an embodiment of the present invention.
  • FIG. 9 is a schematic block diagram of a three-dimensional blind watermark embedding and extracting detection apparatus in a partial spherical coordinate system according to an embodiment of the present invention.
  • the invention provides a new blind watermarking method for transform domain coding in a partial spherical coordinate system, including embedding Into the part and the extraction detection part, the main implementation idea is: embedding the index value and energy value of the spectrum energy matrix of the original watermark image into the custom coordinates of the local spherical coordinate system of the model vertex, and then extracting the local spherical coordinate system The index value and the energy value are inversely transformed back into the spatial domain to obtain the extracted watermark image, and the watermark image is compared with the original watermark image to determine whether the watermark is included; wherein the transform domain of the embedded portion is a two-dimensional discrete cosine transform The transform domain of the extracted detection portion is a two-dimensional inverse discrete cosine transform, and the watermark image is a binary image.
  • blind watermark embedding step S1 blind watermark extraction detection step S2;
  • the blind watermark embedding step S1 includes:
  • Step S11 pre-processing the original watermark image to be embedded, and obtaining the attribute value (L, J, I) of the watermark element of the original watermark image;
  • L is the row index coded value
  • J is the column index coded value
  • I is the element value, ie, the energy value
  • a picture with a size of W1 ⁇ W2 and a content of the letter L is selected as the original watermark picture, which is denoted as S; as shown in FIG. 3, the original watermark picture is obtained, and FIG. 4 is obtained by preprocessing the original watermark picture. image.
  • the step S11 specifically includes:
  • Step S111 using a two-dimensional discrete cosine transform formula to perform two-dimensional discrete cosine transform on the original watermark image to be embedded, to obtain a spectral matrix S1 of the discrete cosine transform domain of the original watermark image;
  • the two-dimensional discrete cosine transform formula is:
  • W1 represents the length of the original watermark picture
  • W2 represents the width of the original watermark picture
  • the original watermark picture is a binary watermark picture
  • the matrix of the original watermark picture is represented as f(x, y)
  • S1(u, v A spectral matrix obtained by discrete cosine transform of a matrix f(x, y) of the original watermark image, the spectral matrix being a real matrix with positive and negative coefficients.
  • Step S112 extracting the positive and negative coefficient matrix of the spectrum matrix S1 as the recovery key K1, performing absolute value on the spectrum matrix S1, and performing normalization processing to obtain a matrix S2, and the maximum value of the matrix S2.
  • the recovery key K2 As the recovery key K2;
  • the spectrum coefficient matrix is used as the secret key K1
  • the normalization coefficient is used as the secret key K2
  • the scrambling parameter is used as the secret key K3.
  • Step S113 performing Arnold scrambling on the matrix S2 by using a scrambling matrix to obtain a matrix S3, where the scrambling matrix is:
  • each element in the matrix S3 has three Attribute values (m, n, I), where m is the row index value, n is the column index value, and I is the element value, ie the energy value;
  • Step S114 using the following formula to respectively encode the attribute values m, n of each element in the matrix S3 into an angle value, to obtain a new attribute value (L, J, I) of each element of the matrix S3;
  • ⁇ and ⁇ are preset constants, ⁇ is a value between 0 and 1, and considering the invisibility of the watermark, the alpha value should be set to a value between 0 and 0.5, and this value is embedded.
  • the visual effect of the 3D model is minimally determined as the basis for determination; thus, the new attribute value (L, J, I) of each element of the matrix S3 is obtained, where L is the row index encoding value and J is the column index encoding value.
  • I is an energy value
  • L i represents an index code value of the i-th row
  • J j represents an index code value of the j-th column.
  • Step S12 Filter all candidate vertices satisfying the screening condition from the three-dimensional model to be embedded in the watermark according to the first preset screening condition;
  • a three-dimensional model to be embedded in the watermark is a vertex of the three-dimensional model to be embedded in the watermark, and the watermark information is embedded in the attributes of the vertex.
  • the first preset screening condition includes: a first screening condition, a second screening condition, and a third screening condition, wherein the first screening condition is a centroid neighbor point of a vertex and a centroid of a ring neighbor point
  • the distance maximum ratio needs to be smaller than the threshold A
  • the second screening condition is that the normal angle under two different definitions of the centroid of a ring neighbor point needs to be greater than the threshold B
  • the third screening condition is that the candidate vertex is not Neighbor point.
  • the reason for setting the second screening condition is that when the local spherical coordinate system is established for the vertices of the three-dimensional model, it is required that the normal n a and the normal n t of the vertices of each three-dimensional model cannot overlap or cannot coincide.
  • the step S12 specifically includes:
  • Step S121 the centroid link neighbor point three-dimensional model is calculated to be embedded watermarks vertices V i to Z i, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if each of the distance If the maximum ratio is greater than the threshold A, the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first candidate vertices satisfying the condition;
  • Step S122 calculating normal directions n a and n t for the first candidate vertex, if the angle between the normal n a and the normal n t is less than the threshold B, then the first candidate vertex is eliminated, for all The first candidate vertex traverses this operation to obtain all second candidate vertices satisfying the condition;
  • n a is defined as:
  • n t is defined as:
  • Step S123 it is checked whether all the second candidate vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second candidate vertices are candidate vertices of the watermark embedding.
  • Step S13 establishing a local spherical coordinate system under the custom for the candidate vertices, and determining a spherical coordinate value of each of the candidate vertices among them, ⁇ , r are three attribute values of each candidate vertex satisfying the screening condition;
  • step S13 needs to establish respective local spherical coordinate systems for the watermarkable candidate vertices obtained in step S12, and determine the spherical coordinate values of each candidate vertex.
  • the general spherical coordinate system and the rectangular coordinate system are transformed as follows:
  • step S13 the spherical coordinate value Finding the spherical coordinate value of the candidate vertex for the customized encoded spherical coordinate value
  • the formula is as follows:
  • (x, y, z) is the coordinate value of the candidate vertex in the Cartesian coordinate system
  • (x 0 , y 0 , z 0 ) is the centroid point coordinate of the ring neighbor of the candidate vertex
  • is the centroid point to the neighbor point The mean of the distance.
  • the candidate vertex V i its spherical coordinate system is determined by the one-ring neighbor centroids Z i , n a , n t obtained in step 12, and the centroid Z i is taken as the origin of the spherical coordinate system, and the centroid normal is n a
  • the normal n t is projected into the plane defined by the centroid Z i and the normal n a , and the obtained projection vector is taken as the X axis of the spherical coordinate system.
  • the angle between the vector of the centroid Z i to the vertex V i and the Z axis of the spherical coordinate system is recorded as
  • the forward angle referred to the X-axis spherical coordinates is ⁇ i
  • the centroid Z i to vertex V i is the distance from the centroid Z i to the ratio of the distance of a ring neighbor point vertex V i mean is denoted r i.
  • the spherical coordinate value of each candidate vertex can be regarded as its three attributes, these three attributes do not change with the change of the coordinate system, and have strong stability.
  • Step S14 comparing the attribute value of the watermark element with the attribute value of all candidate vertices satisfying the screening condition, searching for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point embedded in the watermark element, and changing the candidate The position of the vertex in its spherical coordinate system, making it
  • the value of ⁇ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element;
  • the candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
  • the step S14 is an embedded part of the watermark.
  • the embedding of the watermark image needs to first consider the visual difference between the 3D model and the original 3D model after embedding the watermark, so additional constraints are needed when embedding the watermark. From step 11 and step 13, respectively, the attribute values of the original watermark image and the three attribute values of the candidate vertex are obtained, and the embedding is performed according to the size of the watermark element attribute value I, in the order of whether it is large to small or small to large. You can set it yourself.
  • the essence of the step of embedding the watermark is to determine which candidate vertex is embedded by the watermark element by the attribute value difference, and then determine the coordinate value of the candidate vertex after the position is changed by the watermark element attribute value; wherein, by changing the candidate vertex in it Position in the spherical coordinate system, making it
  • the value of ⁇ (under the custom) is equal to the index code value L, J of the watermark element, respectively, such that its r value (under the custom) is equal to the watermark element value I, that is, the distance between the vertex and the centroid point of mass and the centroid to one
  • the ratio of the mean value of the ring neighbor point distance is equal to the watermark element value I, thereby realizing the purpose of embedding the index information and the energy value.
  • the blind watermark extraction detecting step S2 includes:
  • Step S21 Filter all possible embedded vertices satisfying the screening condition from the three-dimensional model to be detected according to the first preset screening condition;
  • the step S21 includes:
  • Step S211 the centroid point of a neighboring ring vertex V i of the three-dimensional model calculated Z i to be detected, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if the respective distance
  • the maximum ratio is greater than the threshold A (the threshold set when the watermark is embedded), then the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first possible embedded vertices satisfying the condition;
  • Step S212 calculating normals n a and n t under two different definitions for the first possible embedded vertex, if the angle between the centroid normal n a and the normal n t of the vertex-ring neighbor point is less than the threshold B (the threshold set when the watermark is embedded), then culling the first possible embedded vertex, traversing the operation for all the first possible embedding vertices, and obtaining all the second possible embedding vertices satisfying the condition;
  • the threshold B the threshold set when the watermark is embedded
  • n a is defined as:
  • n t is defined as:
  • Step S213 it is checked whether all the second possible embedding vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second possible embedding vertices are the finally selected possible embedding vertices.
  • Step S22 establishing a local spherical coordinate system under the custom embedding vertices, and determining a spherical coordinate value of each of the possible embedded vertices among them, ⁇ , r are three attribute values of each possible embedding vertex that satisfy the screening condition;
  • step S22 is to establish a local spherical coordinate system and acquire a spherical coordinate value. From step 21, it is possible to embed the vertices. Step 22 needs to establish respective spherical coordinate systems for these possible embedding vertices, and determine the spherical coordinate values of each possible embedding vertex, and the spherical coordinate values are the values of the custom encoding when the watermark is embedded. .
  • the establishment of the local spherical coordinate system and the acquisition of the spherical coordinate value are as follows in step S13, thereby obtaining the possible embedding of the vertex.
  • Step S23 combining the attribute values of the possible embedding vertices with the index value and the energy value extraction of each of the possible embedding vertices satisfying the screening condition in the three-dimensional model, to obtain a matrix S4;
  • the step S23 includes:
  • Step S231 using the following formula to attribute the attribute value of the possible embedding vertex Perform anti-coding
  • Step S232 establishing a zero matrix S4 of the same size as the matrix S3, each matrix element has three attributes (m, n, 0), m and n are row and column values, respectively, and the possible vertices are embedded.
  • the value of ⁇ satisfies the following inequality
  • the r value of the possible embedding vertex is replaced by the zero value of the m row and n column of the matrix S3; all possible embedding vertices are traversed to find the vertex satisfying the index threshold condition, and the r value is replaced
  • a new matrix S4 is obtained;
  • ⁇ 1 and ⁇ 2 respectively represent a set threshold value, which satisfies the above inequality
  • the value of ⁇ is the index value
  • the corresponding r value is the energy value.
  • Step S24 inversely transforming the matrix S4 back into the airspace to obtain an extracted watermark image
  • the step S24 includes:
  • Step S241 using the recovery key K3 in step S113 as a restore key, Arnold reduction of the matrix S4, to obtain a reduction matrix S5;
  • Step S242 multiplying the elements in the reduction matrix S5 by the recovery key K2 to obtain a matrix S6;
  • Step S243 using the recovery key K1 in step S112 to multiply the matrix S6, thereby obtaining a spectrum matrix S7;
  • Step S244 performing a two-dimensional inverse discrete cosine transform on the spectrum matrix S7 by using a two-dimensional inverse discrete cosine transform formula to obtain a matrix S8, where the matrix S8 is an extracted watermark image, and the two-dimensional inverse discrete cosine transform formula as follows:
  • S8(x, y) represents a watermark image matrix S8 obtained by inverse discrete cosine transform from the extracted spectral matrix S7(u, v); S8 is as shown in FIG.
  • Step S25 Calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
  • the watermark correlation calculation formula is:
  • W1 represents the length of the original watermark picture
  • W2 represents the width of the original watermark picture
  • S(i,j) represents the matrix of the original watermark picture
  • S(i,j) represents the matrix of the extracted watermark picture
  • represents the watermark correlation Degree
  • the invention also provides a three-dimensional blind watermark embedding and extraction detecting device in a partial spherical coordinate system. As shown in FIG. 9, the device comprises: a blind watermark embedding module 1 and a blind watermark extraction detecting module 2.
  • the blind watermark embedding module 1 includes:
  • the pre-processing sub-module 11 is configured to pre-process the original watermark image to be embedded, and obtain the attribute value (L, J, I) of the watermark element of the original watermark image;
  • L is the row index code value
  • J is the column index code value
  • I is the element value, ie the energy value
  • a first screening sub-module 12 configured to filter, from the three-dimensional model of the watermark to be embedded, all candidate vertices satisfying the screening condition according to the first preset screening condition;
  • a first coordinate system establishing sub-module 13 configured to establish a local spherical coordinate system under the customization of the candidate vertices, and determine a spherical coordinate value of each of the candidate vertices among them, ⁇ , r are three attribute values of each candidate vertex satisfying the screening condition;
  • the watermark embedding sub-module 14 is configured to compare the attribute value of the watermark element with the attribute value of all the candidate vertices satisfying the filtering condition, and search for a candidate vertex that has the smallest difference from the attribute value of the watermark element as the watermark element embedded in the watermark element.
  • is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element;
  • the candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
  • the blind watermark extraction detection module 2 includes:
  • a second screening sub-module 21 configured to filter, from the three-dimensional model to be detected, all possible embedded vertices satisfying the screening condition according to the first preset screening condition
  • a second coordinate system establishing sub-module 22 configured to establish a local spherical coordinate system under the custom embedding vertices, and determine a spherical coordinate value of each of the possible embedded vertices among them, ⁇ , r are three attribute values of each possible embedding vertex that satisfy the screening condition;
  • the extraction sub-module 23 is configured to perform an index value and an energy value extraction on the possible embedded vertex satisfying the filter condition in the three-dimensional model in combination with the attribute value of the possible embedding vertex, to obtain a matrix S4;
  • the determining sub-module 25 is configured to calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
  • the invention provides a method and device for three-dimensional blind watermark embedding and extracting detection in a partial spherical coordinate system, and combines the idea of airspace and frequency domain to realize invisibility embedding of watermark (so-called invisibility embedding refers to model embedding After the watermark, it does not cause obvious visual difference of the model) and the blind detection of the watermarked 3D model, without the participation of the original 3D model, and can resist the affine attack and the cut attack, and the watermark is a visual watermark, which has Great practical value.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

A method and apparatus for embedding and extraction detection of a three-dimensional blind watermark in a local spherical coordinate system, applicable to the field of three-dimensional digital watermarks. An embedding part (S1) comprises: first preprocessing an original watermark image to be embedded to obtain an energy value and an index value to be embedded, then filtering candidate vertices meeting a condition from a three-dimensional model of a watermark to be embedded, establishing local spherical coordinate systems of the candidate vertices, and finally embedding index information and the energy value by performing attribute substitution under the constraint of invisibility, thereby completing an embedding process of the watermark image; and an extraction detection part (S2) comprises: first filtering possible embedded vertices, establishing local spherical coordinate systems of the possible embedded vertices to obtain spherical coordinate values, extracting the index value and the energy value, then performing reverse transformation to return back to a spatial domain to obtain an extracted watermark image, and finally performing relevant calculation on the extracted watermark image and the original watermark image to determine whether the watermark is present. The invisibility embedding and blind extraction for a three-dimensional model visual blind watermark is achieved.

Description

局部球坐标系下的三维盲水印嵌入和提取检测方法及装置Three-dimensional blind watermark embedding and extraction detection method and device in local spherical coordinate system 技术领域Technical field
本发明属于三维数字水印领域,尤其涉及一种局部球坐标系下的三维盲水印嵌入和提取检测方法及装置。The invention belongs to the field of three-dimensional digital watermarking, and in particular relates to a three-dimensional blind watermark embedding and extracting detection method and device in a partial spherical coordinate system.
背景技术Background technique
近年来,随着三维成像技术的发展,三维数字模型作为一种新的数字媒体形式正在越来越多的出现在人们的视野中。尤其是随着计算机图形学、虚拟现实、3D游戏、3D展示等的发展,三维数字模型正在成为一种重要的数字媒体形式。而针对三维数字模型的的非法占有、盗用、修改、传播等行为也越来越多,对于三维数字模型的知识产权保护迫在眉睫。In recent years, with the development of 3D imaging technology, 3D digital models are increasingly appearing in people's field of vision as a new form of digital media. Especially with the development of computer graphics, virtual reality, 3D games, 3D display, etc., 3D digital models are becoming an important form of digital media. The illegal possession, theft, modification, and dissemination of the three-dimensional digital model are also increasing, and the intellectual property protection of the three-dimensional digital model is imminent.
数字水印作为版权保护的有效技术手段,同样也可以用来对三维数字模型进行知识产权保护。而较为成熟的数字水印技术研究多集中在音频、图像和视频等一维或者二维数字载体上,对于三维模型水印的研究较少。根据检测水印时是否要原始模型,三维模型水印可分为盲水印与非盲水印,后者在检测水印时需要原始模型,而前者则不需要,在当前的三维模型检索技术条件下,非盲水印价值不大,而盲水印技术有着较为实际的应用价值。另外,水印按内容又分为可检水印、可读水印、可视水印。可检水印的检测结果为0或1的二值形式,可读水印的检测结果为字符串形式,可视水印的检测结果为图像形式。无疑,可视水印的检测结果更直观更有意义。As an effective technical means of copyright protection, digital watermark can also be used to protect intellectual property rights of 3D digital models. The research on more mature digital watermarking technology is mostly concentrated on one-dimensional or two-dimensional digital carriers such as audio, image and video. There are few researches on watermarking of three-dimensional models. According to whether the original model is used to detect the watermark, the 3D model watermark can be divided into a blind watermark and a non-blind watermark. The latter needs the original model when detecting the watermark, while the former does not need it. Under the current 3D model retrieval technology, the non-blind The watermark value is not large, and the blind watermark technology has practical application value. In addition, the watermark is further divided into a checkable watermark, a readable watermark, and a visible watermark according to the content. The detection result of the watermark detectable is a binary form of 0 or 1. The detection result of the readable watermark is a string form, and the detection result of the visible watermark is an image form. Undoubtedly, the detection result of the visible watermark is more intuitive and meaningful.
与图像水印、音频水印和视频水印相比,三维模型水印的载体不同。三维模型的顶点是不规则采样,没有自然的排列顺序,这使得没有直接的数学工具对其进行处理,因而水印嵌入难度很大。相比于三维盲水印,三维非盲水印还可以借助于重采样和重对齐进行水印的提取,而盲水印则只能依靠自身水印载 体进行水印提取,嵌入难度和提取难度更大,这也是多数三维模型水印采用非盲检测的原因之一。Compared with image watermarking, audio watermarking and video watermarking, the carrier of the three-dimensional model watermark is different. The vertices of the 3D model are irregular sampling, and there is no natural ordering, which makes no direct mathematical tools to process them, so the watermark embedding is very difficult. Compared with 3D blind watermark, 3D non-blind watermark can also extract watermark by means of resampling and realignment, while blind watermark can only rely on its own watermark. Watermark extraction, embedding difficulty and extraction difficulty is more, which is one of the reasons why most 3D model watermarks use non-blind detection.
而在目前的三维模型检索技术条件下,三维模型可视化盲水印的研究虽然很艰难,却具有重要的实际意义。Under the current three-dimensional model retrieval technology, the research on visualized blind watermarking of 3D model is very difficult, but it has important practical significance.
发明内容Summary of the invention
本发明提供一种局部球坐标系下的三维盲水印嵌入和提取检测方法及装置,旨在实现三维数字模型水印的不可见性嵌入,嵌入后实现水印的在线盲提取,并且水印内容为有意义的可视化水印。The invention provides a method and a device for embedding and extracting a three-dimensional blind watermark in a partial spherical coordinate system, aiming at realizing invisibility embedding of a watermark of a three-dimensional digital model, realizing online blind extraction of the watermark after embedding, and the watermark content is meaningful Visual watermark.
本发明提供了一种局部球坐标系下的三维盲水印嵌入和提取检测方法,所述方法包括:盲水印嵌入步骤S1和盲水印提取检测步骤S2;The present invention provides a three-dimensional blind watermark embedding and extraction detection method in a partial spherical coordinate system, the method comprising: a blind watermark embedding step S1 and a blind watermark extraction detecting step S2;
其中,所述盲水印嵌入步骤S1包括:The blind watermark embedding step S1 includes:
步骤S11,对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);Step S11, pre-processing the original watermark image to be embedded, and obtaining the attribute value (L, J, I) of the watermark element of the original watermark image;
其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值;Where L is the row index code value, J is the column index code value, and I is the element value, ie the energy value;
步骤S12,根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;Step S12: Filter all candidate vertices satisfying the screening condition from the three-dimensional model to be embedded in the watermark according to the first preset screening condition;
步骤S13,对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
Figure PCTCN2017115765-appb-000001
其中,
Figure PCTCN2017115765-appb-000002
θ、r作为每个满足筛选条件的候选顶点的三个属性值;
Step S13, establishing a local spherical coordinate system under the custom for the candidate vertices, and determining a spherical coordinate value of each of the candidate vertices
Figure PCTCN2017115765-appb-000001
among them,
Figure PCTCN2017115765-appb-000002
θ, r are three attribute values of each candidate vertex satisfying the screening condition;
步骤S14,将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
Figure PCTCN2017115765-appb-000003
θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水 印元素进行上述操作,直到完全嵌入;
Step S14, comparing the attribute value of the watermark element with the attribute value of all candidate vertices satisfying the screening condition, searching for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point embedded in the watermark element, and changing the candidate The position of the vertex in its spherical coordinate system, making it
Figure PCTCN2017115765-appb-000003
The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
其中,所述盲水印提取检测步骤S2包括:The blind watermark extraction detecting step S2 includes:
步骤S21,根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;Step S21: Filter all possible embedded vertices satisfying the screening condition from the three-dimensional model to be detected according to the first preset screening condition;
步骤S22,对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
Figure PCTCN2017115765-appb-000004
其中,
Figure PCTCN2017115765-appb-000005
θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
Step S22, establishing a local spherical coordinate system under the custom embedding vertices, and determining a spherical coordinate value of each of the possible embedded vertices
Figure PCTCN2017115765-appb-000004
among them,
Figure PCTCN2017115765-appb-000005
θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
步骤S23,结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;Step S23, combining the attribute values of the possible embedding vertices with the index value and the energy value extraction of each of the possible embedding vertices satisfying the screening condition in the three-dimensional model, to obtain a matrix S4;
步骤S24,对所述矩阵S4进行逆变换回空域,得到提取的水印图片;Step S24, inversely transforming the matrix S4 back into the airspace to obtain an extracted watermark image;
步骤S25,利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。Step S25: Calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
本发明还提供了一种局部球坐标系下的三维盲水印嵌入和提取检测装置,所述装置包括:盲水印嵌入模块和盲水印提取检测模块;The invention also provides a three-dimensional blind watermark embedding and extracting detecting device in a partial spherical coordinate system, the device comprising: a blind watermark embedding module and a blind watermark extraction detecting module;
其中,所述盲水印嵌入模块包括:The blind watermark embedding module includes:
预处理子模块,用于对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);a pre-processing sub-module, configured to pre-process the original watermark image to be embedded, to obtain an attribute value (L, J, I) of the watermark element of the original watermark image;
其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值;Where L is the row index code value, J is the column index code value, and I is the element value, ie the energy value;
第一筛选子模块,用于根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;a first screening sub-module, configured to filter, from the three-dimensional model of the watermark to be embedded, all candidate vertices satisfying the screening condition according to the first preset screening condition;
第一坐标系建立子模块,用于对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
Figure PCTCN2017115765-appb-000006
其中,
Figure PCTCN2017115765-appb-000007
θ、r作为每个满足筛选条件的候选顶点的三个属性值;
a first coordinate system establishing submodule, configured to establish a local spherical coordinate system under the custom vertices, and determine a spherical coordinate value of each of the candidate vertices
Figure PCTCN2017115765-appb-000006
among them,
Figure PCTCN2017115765-appb-000007
θ, r are three attribute values of each candidate vertex satisfying the screening condition;
水印嵌入子模块,用于将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为 嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
Figure PCTCN2017115765-appb-000008
θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水印元素进行上述操作,直到完全嵌入;
a watermark embedding sub-module, configured to compare a property value of the watermark element with an attribute value of all candidate vertices satisfying a filter condition, and search for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point at which the watermark element is embedded , changing the position of this candidate vertex in its spherical coordinate system, making it
Figure PCTCN2017115765-appb-000008
The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
其中,所述盲水印提取检测模块包括:The blind watermark extraction detection module includes:
第二筛选子模块,用于根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;a second screening sub-module, configured to filter, from the three-dimensional model to be detected, all possible embedded vertices satisfying the screening condition according to the first preset screening condition;
第二坐标系建立子模块,用于对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
Figure PCTCN2017115765-appb-000009
其中,
Figure PCTCN2017115765-appb-000010
θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
a second coordinate system establishing submodule, configured to establish a local spherical coordinate system under the custom embedding vertices, and determine a spherical coordinate value of each of the possible embedded vertices
Figure PCTCN2017115765-appb-000009
among them,
Figure PCTCN2017115765-appb-000010
θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
提取子模块,用于结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;An extraction submodule, configured to perform an index value and an energy value extraction on the possible embedded vertex satisfying the filter condition in the three-dimensional model in combination with the attribute value of the possible embedding vertex, to obtain a matrix S4;
逆变换子模块,用于对所述矩阵S4进行逆变换回空域,得到提取的水印图片;An inverse transform sub-module, configured to inverse transform the matrix S4 back into the airspace to obtain an extracted watermark image;
判断子模块,用于利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。The determining sub-module is configured to calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
本发明与现有技术相比,有益效果在于:本发明提供的一种局部球坐标系下的三维盲水印嵌入和提取检测方法及装置,包括水印嵌入部分和水印提取检测部分,其中水印嵌入部分的处理过程为:先对待嵌入的原始水印图片进行预处理,获得待嵌入能量值和索引值,然后按照第一预置筛选条件从待嵌入水印的三维模型中筛选出满足条件的候选顶点,并建立候选顶点的局部球坐标系,最后进行不可见性约束下的属性替换来嵌入索引信息和能量值,即完成了水印图片的嵌入过程;水印提取检测部分的处理过程为:首先,按照第一预置筛选条件从待检测的三维模型中筛选可能嵌入顶点,建立可能嵌入顶点的局部球坐 标系获取球坐标值,并进行索引值和能量值提取,然后逆变换回空域得到提取的水印图片,最后将提取的水印图片与原始水印图片做相关计算来判断该三维模型是否含有水印;本发明与现有技术相比,实现了三维数字模型水印的不可见性嵌入,并且无需重复嵌入,嵌入后可以实现水印的在线盲提取,并且能够抵抗仿射变换攻击和剪切攻击,且水印内容为有意义的可视水印,具有较大的实用价值。Compared with the prior art, the present invention has the beneficial effects that the method and device for three-dimensional blind watermark embedding and extracting detection in a partial spherical coordinate system provided by the present invention include a watermark embedding portion and a watermark extraction detecting portion, wherein the watermark embedding portion The processing process is: pre-processing the embedded original watermark image, obtaining the energy value and the index value to be embedded, and then screening out the candidate vertices satisfying the condition from the three-dimensional model of the watermark to be embedded according to the first preset screening condition, and The local spherical coordinate system of the candidate vertices is established. Finally, the attribute replacement under the constraint of invisibility is used to embed the index information and the energy value, that is, the embedding process of the watermark image is completed; the processing process of the watermark extraction detection part is: first, according to the first The preset filter condition selects the three-dimensional model to be detected and may embed the vertices to establish a partial spherical sitting that may embed the vertices. The target system obtains the spherical coordinate value, and extracts the index value and the energy value, then inversely transforms back into the spatial domain to obtain the extracted watermark image, and finally performs correlation calculation on the extracted watermark image and the original watermark image to determine whether the three-dimensional model contains a watermark; Compared with the prior art, the invention realizes the invisibility embedding of the watermark of the three-dimensional digital model, and does not need to be repeatedly embedded, can realize the online blind extraction of the watermark after embedding, and can resist the affine transformation attack and the shear attack, and the watermark The content is a meaningful visual watermark, which has great practical value.
附图说明DRAWINGS
图1是本发明实施例提供的一种局部球坐标系下的三维盲水印嵌入和提取检测方法的流程示意图;1 is a schematic flow chart of a method for embedding and extracting a three-dimensional blind watermark in a partial spherical coordinate system according to an embodiment of the present invention;
图2是本发明实施例提供的盲水印嵌入步骤的流程示意图;2 is a schematic flowchart of a blind watermark embedding step according to an embodiment of the present invention;
图3是本发明实施例提供的内容为字母L的二值水印图片;3 is a binary watermark image of the letter L provided by the embodiment of the present invention;
图4是本发明实例提供的原始水印图片预处理后得到的水印图片;4 is a watermark image obtained by preprocessing an original watermark image provided by an example of the present invention;
图5是本发明实施例提供的待嵌入水印三维数字模型的示意图;FIG. 5 is a schematic diagram of a three-dimensional digital model of a watermark to be embedded according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的嵌入过水印后的三维数字模型;6 is a three-dimensional digital model embedded in a watermark according to an embodiment of the present invention;
图7是本发明实施例提供的盲水印提取检测步骤的流程示意图;7 is a schematic flowchart of a blind watermark extraction detection step according to an embodiment of the present invention;
图8是本发明实施例提供的对嵌入水印的三维模型进行水印提取后获得的水印图片;FIG. 8 is a watermark image obtained by performing watermark extraction on a three-dimensional model embedded in a watermark according to an embodiment of the present invention;
图9是本发明实施例提供的一种局部球坐标系下的三维盲水印嵌入和提取检测装置的模块示意图。FIG. 9 is a schematic block diagram of a three-dimensional blind watermark embedding and extracting detection apparatus in a partial spherical coordinate system according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供的一种局部球坐标系下的变换域编码的新盲水印方法,包括嵌 入部分和提取检测部分,其主要实现思想为:将原始水印图片频谱能量矩阵的索引值和能量值嵌入到模型顶点的局部球坐标系的自定义坐标中,然后通过提取局部球坐标系中的索引值和能量值,再逆变换回空域,得到提取的水印图片,通过将提取的水印图片和原始水印图片对比来判断是否含有水印;其中,嵌入部分的变换域方式为二维离散余弦变换,提取检测部分的变换域方式为二维逆离散余弦变换,水印图片为二值图片。The invention provides a new blind watermarking method for transform domain coding in a partial spherical coordinate system, including embedding Into the part and the extraction detection part, the main implementation idea is: embedding the index value and energy value of the spectrum energy matrix of the original watermark image into the custom coordinates of the local spherical coordinate system of the model vertex, and then extracting the local spherical coordinate system The index value and the energy value are inversely transformed back into the spatial domain to obtain the extracted watermark image, and the watermark image is compared with the original watermark image to determine whether the watermark is included; wherein the transform domain of the embedded portion is a two-dimensional discrete cosine transform The transform domain of the extracted detection portion is a two-dimensional inverse discrete cosine transform, and the watermark image is a binary image.
下面具体介绍这种局部球坐标系下的三维盲水印嵌入和提取检测方法,如图1所示,包括:盲水印嵌入步骤S1和盲水印提取检测步骤S2;The following is a detailed description of the three-dimensional blind watermark embedding and extraction detection method in the local spherical coordinate system, as shown in Figure 1, including: blind watermark embedding step S1 and blind watermark extraction detection step S2;
其中,如图2所示,所述盲水印嵌入步骤S1包括:Wherein, as shown in FIG. 2, the blind watermark embedding step S1 includes:
步骤S11,对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);Step S11, pre-processing the original watermark image to be embedded, and obtaining the attribute value (L, J, I) of the watermark element of the original watermark image;
其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值。Where L is the row index coded value, J is the column index coded value, and I is the element value, ie, the energy value.
具体地,本发明实施例选取大小为W1×W2,内容为字母L的图片作为原始水印图片,记为S;如图3所示为原始水印图片,图4为原始水印图片预处理后得到的图片。Specifically, in the embodiment of the present invention, a picture with a size of W1×W2 and a content of the letter L is selected as the original watermark picture, which is denoted as S; as shown in FIG. 3, the original watermark picture is obtained, and FIG. 4 is obtained by preprocessing the original watermark picture. image.
所述步骤S11具体包括:The step S11 specifically includes:
步骤S111,利用二维离散余弦变换公式对待嵌入的原始水印图片进行二维离散余弦变换,得到所述原始水印图片的离散余弦变换域的频谱矩阵S1;Step S111, using a two-dimensional discrete cosine transform formula to perform two-dimensional discrete cosine transform on the original watermark image to be embedded, to obtain a spectral matrix S1 of the discrete cosine transform domain of the original watermark image;
所述二维离散余弦变换公式为:The two-dimensional discrete cosine transform formula is:
Figure PCTCN2017115765-appb-000011
Figure PCTCN2017115765-appb-000011
其中,u=0,1,…,W1-1;v=0,1…,W2-1;Where u=0,1,...,W1-1;v=0,1...,W2-1;
Figure PCTCN2017115765-appb-000012
Figure PCTCN2017115765-appb-000012
Figure PCTCN2017115765-appb-000013
Figure PCTCN2017115765-appb-000013
其中,W1代表原始水印图片的长,W2代表原始水印图片的宽,所述原始水印图片为二值水印图片,所述原始水印图片的矩阵表示为f(x,y),S1(u,v)表示对原始水印图片的矩阵f(x,y)离散余弦变换后得到的频谱矩阵,此频谱矩阵为有正负系数的实数矩阵。Wherein W1 represents the length of the original watermark picture, W2 represents the width of the original watermark picture, the original watermark picture is a binary watermark picture, and the matrix of the original watermark picture is represented as f(x, y), S1(u, v A spectral matrix obtained by discrete cosine transform of a matrix f(x, y) of the original watermark image, the spectral matrix being a real matrix with positive and negative coefficients.
步骤S112,提取所述频谱矩阵S1的正负系数矩阵作为恢复秘钥K1,对所述频谱矩阵S1进行绝对值化,并做归一化处理,得到矩阵S2,以所述矩阵S2的最大值作为恢复秘钥K2;Step S112, extracting the positive and negative coefficient matrix of the spectrum matrix S1 as the recovery key K1, performing absolute value on the spectrum matrix S1, and performing normalization processing to obtain a matrix S2, and the maximum value of the matrix S2. As the recovery key K2;
具体地,本发明实施例是将频谱系数矩阵作为秘钥K1,归一化系数作为秘钥K2,置乱参数作为秘钥K3。Specifically, in the embodiment of the present invention, the spectrum coefficient matrix is used as the secret key K1, the normalization coefficient is used as the secret key K2, and the scrambling parameter is used as the secret key K3.
步骤S113,利用置乱矩阵对所述矩阵S2进行Arnold置乱得到矩阵S3,所述置乱矩阵为:Step S113, performing Arnold scrambling on the matrix S2 by using a scrambling matrix to obtain a matrix S3, where the scrambling matrix is:
Figure PCTCN2017115765-appb-000014
Figure PCTCN2017115765-appb-000014
其中,a和b是设定的参数,k是迭代次数,W2是原始水印图片的宽,a、b、k、W2作为恢复秘钥K3;所述矩阵S3中的每个元素都有了三个属性值(m,n,I),其中,m为行索引值,n为列索引值,I为元素值即能量值;Where a and b are set parameters, k is the number of iterations, W2 is the width of the original watermark image, a, b, k, W2 are used as the recovery key K3; each element in the matrix S3 has three Attribute values (m, n, I), where m is the row index value, n is the column index value, and I is the element value, ie the energy value;
步骤S114,利用如下公式分别将所述矩阵S3中每个元素的属性值m、n编码成角度值,得到所述矩阵S3的每个元素的新属性值(L,J,I);Step S114, using the following formula to respectively encode the attribute values m, n of each element in the matrix S3 into an angle value, to obtain a new attribute value (L, J, I) of each element of the matrix S3;
Figure PCTCN2017115765-appb-000015
Figure PCTCN2017115765-appb-000015
Figure PCTCN2017115765-appb-000016
Figure PCTCN2017115765-appb-000016
其中,α和β为预设常数,β为0到1之间的某个数值,而考虑到水印的不可见性,α值应设为0到0.5之间的某个数值,此数值以嵌入水印后三维模型视 觉效果改变最小为确定依据;至此,得到了矩阵S3的每个元素的新属性值(L,J,I),其中,L为行索引编码值,J为列索引编码值,I为能量值,Li表示第i行的索引编码值,Jj表示第j列的索引编码值。Where α and β are preset constants, β is a value between 0 and 1, and considering the invisibility of the watermark, the alpha value should be set to a value between 0 and 0.5, and this value is embedded. After the watermarking, the visual effect of the 3D model is minimally determined as the basis for determination; thus, the new attribute value (L, J, I) of each element of the matrix S3 is obtained, where L is the row index encoding value and J is the column index encoding value. I is an energy value, L i represents an index code value of the i-th row, and J j represents an index code value of the j-th column.
步骤S12,根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;Step S12: Filter all candidate vertices satisfying the screening condition from the three-dimensional model to be embedded in the watermark according to the first preset screening condition;
具体地,如图5所示为待嵌入水印的三维模型;所述候选顶点为待嵌入水印的三维模型的顶点,水印信息将嵌入在这些顶点的属性中。Specifically, as shown in FIG. 5, a three-dimensional model to be embedded in the watermark; the candidate vertex is a vertex of the three-dimensional model to be embedded in the watermark, and the watermark information is embedded in the attributes of the vertex.
具体地,所述第一预置筛选条件包括:第一筛选条件、第二筛选条件和第三筛选条件,其中,所述第一筛选条件为顶点的一环邻居点与一环邻居点的质心的距离最大比值需小于阈值A,所述第二筛选条件为一环邻居点质心的两个不同定义下的法向夹角需大于阈值B,所述第三筛选条件为候选顶点之间为非邻居点。其中,设立第二筛选条件的原因是,为三维模型顶点建立局部球坐标系时,要求每个三维模型顶点的法向na和法向nt不能重合或不能接近重合。对于三维数字模型中的每个顶点,如果不考虑属性信息,三角网格模型M可以表示为M={VM,KM},其中VM={0,1,2,…M-1}是M的顶点集合,M表示顶点的数目,KM是M的所有拓扑连接关系的集合,KM的元素分为3种类型:顶点v={i},边e={i,j},面f={i,j,k}。如果边{i,j}∈KM,则顶点{i}和{j}互称邻居;顶点{i}的一环邻居定义为N(i)={j|{i,j}∈KM}。Specifically, the first preset screening condition includes: a first screening condition, a second screening condition, and a third screening condition, wherein the first screening condition is a centroid neighbor point of a vertex and a centroid of a ring neighbor point The distance maximum ratio needs to be smaller than the threshold A, and the second screening condition is that the normal angle under two different definitions of the centroid of a ring neighbor point needs to be greater than the threshold B, and the third screening condition is that the candidate vertex is not Neighbor point. The reason for setting the second screening condition is that when the local spherical coordinate system is established for the vertices of the three-dimensional model, it is required that the normal n a and the normal n t of the vertices of each three-dimensional model cannot overlap or cannot coincide. For each vertex in the 3D digital model, if the attribute information is not considered, the triangular mesh model M can be expressed as M = {V M , K M }, where V M = {0, 1, 2, ... M-1} Is the set of vertices of M, M represents the number of vertices, K M is the set of all topological connection relations of M , and the elements of K M are divided into three types: vertex v={i}, edge e={i,j}, Face f = {i, j, k}. If the edge {i,j}∈K M , the vertices {i} and {j} are mutually called neighbors; the one-ring neighbor of the vertex {i} is defined as N(i)={j|{i,j}∈K M }.
所述步骤S12具体包括:The step S12 specifically includes:
步骤S121,计算待嵌入水印的三维模型中的顶点Vi的一环邻居点的质心点Zi,分别连接Zi与Vi的一环邻居点,并计算相应的距离,若各个所述距离的最大比值大于阈值A,则将此顶点剔除,对所述三维模型的所有顶点遍历此操作,得到所有满足条件的第一候选顶点;Step S121, the centroid link neighbor point three-dimensional model is calculated to be embedded watermarks vertices V i to Z i, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if each of the distance If the maximum ratio is greater than the threshold A, the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first candidate vertices satisfying the condition;
步骤S122,对所述第一候选顶点计算法向na和nt,若所述法向na和所述法向nt的夹角小于阈值B,则剔除该第一候选顶点,对所有的第一候选顶点遍历此操作,得到所有满足条件的第二候选顶点; Step S122, calculating normal directions n a and n t for the first candidate vertex, if the angle between the normal n a and the normal n t is less than the threshold B, then the first candidate vertex is eliminated, for all The first candidate vertex traverses this operation to obtain all second candidate vertices satisfying the condition;
其中,所述法向na的定义为:Wherein the normal n a is defined as:
对质心点Zi与Vi的一环邻居点进行连线,得到若干个新的以质心点为顶点的三角形,记为T(Zi),三角形的个数记为N,新的三角形的法向记为nj,以所有的所述三角形的法向的均值作为质心点Zi的法向na,即:Connect a circle of neighbor points of the centroid point Z i and V i to obtain a number of new triangles with the centroid point as the apex, denoted as T(Z i ), and the number of triangles is denoted as N, the new triangle The normal is denoted as n j , and the mean of all the normals of the triangle is taken as the normal n a of the centroid point Z i , namely:
Figure PCTCN2017115765-appb-000017
Figure PCTCN2017115765-appb-000017
所述法向nt的定义为:The normal n t is defined as:
根据各个所述三角形的法向nj和面积Sj的平方来计算质心的另一个法向nt,即:Calculating another normal n t of the centroid according to the square of the normal n j and the area S j of each of the triangles, namely:
Figure PCTCN2017115765-appb-000018
Figure PCTCN2017115765-appb-000018
步骤S123,检验所有满足条件的所述第二候选顶点中是否有互为邻居的顶点,若有,则将其剔除,剩余的第二候选顶点即为可嵌入水印的候选顶点。Step S123, it is checked whether all the second candidate vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second candidate vertices are candidate vertices of the watermark embedding.
步骤S13,对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
Figure PCTCN2017115765-appb-000019
其中,
Figure PCTCN2017115765-appb-000020
θ、r作为每个满足筛选条件的候选顶点的三个属性值;
Step S13, establishing a local spherical coordinate system under the custom for the candidate vertices, and determining a spherical coordinate value of each of the candidate vertices
Figure PCTCN2017115765-appb-000019
among them,
Figure PCTCN2017115765-appb-000020
θ, r are three attribute values of each candidate vertex satisfying the screening condition;
具体地,步骤S13需要对步骤S12得到的可嵌入水印的候选顶点建立各自的局部球坐标系,并确定各个候选顶点的球坐标值,一般的球坐标系与直角坐标系的变换公式如下:Specifically, step S13 needs to establish respective local spherical coordinate systems for the watermarkable candidate vertices obtained in step S12, and determine the spherical coordinate values of each candidate vertex. The general spherical coordinate system and the rectangular coordinate system are transformed as follows:
r=sqrt(x2+y2+z2)r=sqrt(x 2 +y 2 +z 2 )
θ=arccos(z/r)θ=arccos(z/r)
Figure PCTCN2017115765-appb-000021
Figure PCTCN2017115765-appb-000021
具体地,所述步骤S13中,球坐标值
Figure PCTCN2017115765-appb-000022
为经过自定义的编码的球坐标值,求所述候选顶点的球坐标值
Figure PCTCN2017115765-appb-000023
的公式如下:
Specifically, in step S13, the spherical coordinate value
Figure PCTCN2017115765-appb-000022
Finding the spherical coordinate value of the candidate vertex for the customized encoded spherical coordinate value
Figure PCTCN2017115765-appb-000023
The formula is as follows:
r=sqrt((x-x0)2+(y-y0)2+(z-z0)2)/ρr=sqrt((xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 )/ρ
θ=arccos(|z-z0|/r)θ=arccos(|zz 0 |/r)
Figure PCTCN2017115765-appb-000024
Figure PCTCN2017115765-appb-000024
其中,(x,y,z)为候选顶点在直角坐标系中的坐标值,(x0,y0,z0)为候选顶点的一环邻居的质心点坐标,ρ为质心点到邻居点距离的均值。Where (x, y, z) is the coordinate value of the candidate vertex in the Cartesian coordinate system, (x 0 , y 0 , z 0 ) is the centroid point coordinate of the ring neighbor of the candidate vertex, and ρ is the centroid point to the neighbor point The mean of the distance.
具体地,对于候选顶点Vi,它的球坐标系由步骤12中求得的一环邻居质心Zi、na、nt确定,质心Zi作为球坐标系的原点,质心法向na作为球坐标系的Z轴,法向nt向质心Zi和法向na确定的平面内进行投影,得到的投影向量作为球坐标系的X轴。质心Zi到顶点Vi的向量与球坐标系Z轴的夹角记为
Figure PCTCN2017115765-appb-000025
与球坐标系的X轴的正向夹角记为θi,质心Zi到顶点Vi的距离与质心Zi到顶点Vi的一环邻居点的距离的均值的比值记为ri。遍历所有候选顶点进行上述操作,从而获得所有候选顶点的自定义下的球坐标值
Figure PCTCN2017115765-appb-000026
而每个候选顶点的球坐标值可以看做是它的三个属性,这三个属性不随坐标系的改变而变化,具有很强的稳定性。
Specifically, for the candidate vertex V i , its spherical coordinate system is determined by the one-ring neighbor centroids Z i , n a , n t obtained in step 12, and the centroid Z i is taken as the origin of the spherical coordinate system, and the centroid normal is n a As the Z axis of the spherical coordinate system, the normal n t is projected into the plane defined by the centroid Z i and the normal n a , and the obtained projection vector is taken as the X axis of the spherical coordinate system. The angle between the vector of the centroid Z i to the vertex V i and the Z axis of the spherical coordinate system is recorded as
Figure PCTCN2017115765-appb-000025
The forward angle referred to the X-axis spherical coordinates is θ i, the centroid Z i to vertex V i is the distance from the centroid Z i to the ratio of the distance of a ring neighbor point vertex V i mean is denoted r i. Traversing all candidate vertices to perform the above operations, thereby obtaining the spherical coordinate values under the custom of all candidate vertices
Figure PCTCN2017115765-appb-000026
The spherical coordinate value of each candidate vertex can be regarded as its three attributes, these three attributes do not change with the change of the coordinate system, and have strong stability.
步骤S14,将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
Figure PCTCN2017115765-appb-000027
θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水印元素进行上述操作,直到完全嵌入;
Step S14, comparing the attribute value of the watermark element with the attribute value of all candidate vertices satisfying the screening condition, searching for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point embedded in the watermark element, and changing the candidate The position of the vertex in its spherical coordinate system, making it
Figure PCTCN2017115765-appb-000027
The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
具体地,所述步骤S14即为水印的嵌入部分。而水印图片的嵌入需要首先考虑嵌入水印后三维模型与原始三维模型的视觉差异,所以在嵌入水印时需要另外进行约束。由步骤11和步骤13分别得到了原始水印图片的属性值和候选顶点的三个属性值,按照水印元素属性值I的大小进行嵌入,而到底是按由大到小还是由小到大的顺序则可自行设定。Specifically, the step S14 is an embedded part of the watermark. The embedding of the watermark image needs to first consider the visual difference between the 3D model and the original 3D model after embedding the watermark, so additional constraints are needed when embedding the watermark. From step 11 and step 13, respectively, the attribute values of the original watermark image and the three attribute values of the candidate vertex are obtained, and the embedding is performed according to the size of the watermark element attribute value I, in the order of whether it is large to small or small to large. You can set it yourself.
具体地,上述嵌入水印步骤的实质是由属性值差值确定哪个候选顶点嵌入哪个水印元素,再由水印元素属性值确定该候选顶点被改变位置后的坐标值;其中,通过改变候选顶点在它的球坐标系中的位置,使得它的
Figure PCTCN2017115765-appb-000028
θ(自定义下 的)值分别等于水印元素的索引编码值L、J,使得它的r值(自定义下的)等于水印元素值I,即顶点与一环质心点的距离和质心到一环邻居点距离的均值的比值等于水印元素值I,从而实现了嵌入索引信息和能量值的目的,嵌入完毕后在候选顶点中剔除此候选顶点,遍历水印元素进行上述操作直到完全嵌入;嵌入水印后的三维模型如图6所示。
Specifically, the essence of the step of embedding the watermark is to determine which candidate vertex is embedded by the watermark element by the attribute value difference, and then determine the coordinate value of the candidate vertex after the position is changed by the watermark element attribute value; wherein, by changing the candidate vertex in it Position in the spherical coordinate system, making it
Figure PCTCN2017115765-appb-000028
The value of θ (under the custom) is equal to the index code value L, J of the watermark element, respectively, such that its r value (under the custom) is equal to the watermark element value I, that is, the distance between the vertex and the centroid point of mass and the centroid to one The ratio of the mean value of the ring neighbor point distance is equal to the watermark element value I, thereby realizing the purpose of embedding the index information and the energy value. After the embedding is completed, the candidate vertex is removed from the candidate vertex, and the watermark element is traversed to perform the above operation until fully embedded; The latter three-dimensional model is shown in Figure 6.
其中,如图7所示,所述盲水印提取检测步骤S2包括:Wherein, as shown in FIG. 7, the blind watermark extraction detecting step S2 includes:
步骤S21,根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;Step S21: Filter all possible embedded vertices satisfying the screening condition from the three-dimensional model to be detected according to the first preset screening condition;
具体地,所述步骤S21包括:Specifically, the step S21 includes:
步骤S211,计算待检测的所述三维模型的顶点Vi的一环邻居点的质心点Zi,分别连接Zi与Vi的一环邻居点,并计算相应的距离,若各个所述距离的最大比值大于阈值A(水印嵌入时设定的阈值),则将此顶点剔除,对所述三维模型的所有顶点遍历此操作,得到所有满足条件的第一可能嵌入顶点;Step S211, the centroid point of a neighboring ring vertex V i of the three-dimensional model calculated Z i to be detected, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if the respective distance The maximum ratio is greater than the threshold A (the threshold set when the watermark is embedded), then the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first possible embedded vertices satisfying the condition;
步骤S212,对所述第一可能嵌入顶点计算两种不同定义下的法向na和nt,若所述顶点一环邻居点质心法向na和法向nt的夹角小于阈值B(水印嵌入时设定的阈值),则剔除该第一可能嵌入顶点,对所有的第一可能嵌入顶点遍历此操作,得到所有满足条件的第二可能嵌入顶点;Step S212, calculating normals n a and n t under two different definitions for the first possible embedded vertex, if the angle between the centroid normal n a and the normal n t of the vertex-ring neighbor point is less than the threshold B (the threshold set when the watermark is embedded), then culling the first possible embedded vertex, traversing the operation for all the first possible embedding vertices, and obtaining all the second possible embedding vertices satisfying the condition;
其中,所述法向na的定义为:Wherein the normal n a is defined as:
对质心点Zi与Vi的一环邻居点进行连线,得到若干个新的以质心点为顶点的三角形,记为T(Zi),三角形的个数记为N,新的三角形的法向记为nj,以所有的所述三角形的法向的均值作为质心点Zi的法向na,即:Connect the centroid neighbor points of the centroid point Z i and Vi to obtain a number of new triangles with the centroid point as the apex, denoted as T(Z i ), and the number of triangles is denoted by N, the method of the new triangle The direction is denoted as n j , and the mean of all the normals of the triangle is taken as the normal n a of the centroid point Z i , namely:
Figure PCTCN2017115765-appb-000029
Figure PCTCN2017115765-appb-000029
所述法向nt的定义为:The normal n t is defined as:
根据各个所述三角形的法向nj和面积Sj来计算质心的另一个法向nt,即: Calculating another normal n t of the centroid according to the normal n j and the area S j of each of the triangles, namely:
Figure PCTCN2017115765-appb-000030
Figure PCTCN2017115765-appb-000030
步骤S213,检验所有满足条件的所述第二可能嵌入顶点中是否有互为邻居的顶点,若有,则将其剔除,剩余的第二可能嵌入顶点即为最终筛选出的可能嵌入顶点。Step S213, it is checked whether all the second possible embedding vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second possible embedding vertices are the finally selected possible embedding vertices.
步骤S22,对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
Figure PCTCN2017115765-appb-000031
其中,
Figure PCTCN2017115765-appb-000032
θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
Step S22, establishing a local spherical coordinate system under the custom embedding vertices, and determining a spherical coordinate value of each of the possible embedded vertices
Figure PCTCN2017115765-appb-000031
among them,
Figure PCTCN2017115765-appb-000032
θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
具体地,步骤S22是建立局部球坐标系并获取球坐标值。由步骤21得到了可能嵌入顶点,步骤22需要对这些可能嵌入顶点建立各自的球坐标系,并确定各个可能嵌入顶点的球坐标值,而球坐标值为水印嵌入时经过自定义的编码的数值。对于可能嵌入顶点Vi,局部球坐标系的建立和球坐标值的获取方法如步骤S13,从而得到可能嵌入顶点的
Figure PCTCN2017115765-appb-000033
Specifically, step S22 is to establish a local spherical coordinate system and acquire a spherical coordinate value. From step 21, it is possible to embed the vertices. Step 22 needs to establish respective spherical coordinate systems for these possible embedding vertices, and determine the spherical coordinate values of each possible embedding vertex, and the spherical coordinate values are the values of the custom encoding when the watermark is embedded. . For the possible embedding of the vertex V i , the establishment of the local spherical coordinate system and the acquisition of the spherical coordinate value are as follows in step S13, thereby obtaining the possible embedding of the vertex.
Figure PCTCN2017115765-appb-000033
步骤S23,结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;Step S23, combining the attribute values of the possible embedding vertices with the index value and the energy value extraction of each of the possible embedding vertices satisfying the screening condition in the three-dimensional model, to obtain a matrix S4;
具体地,所述步骤S23包括:Specifically, the step S23 includes:
步骤S231,利用下述公式对所述可能嵌入顶点的属性值
Figure PCTCN2017115765-appb-000034
进行反编码;
Step S231, using the following formula to attribute the attribute value of the possible embedding vertex
Figure PCTCN2017115765-appb-000034
Perform anti-coding;
Figure PCTCN2017115765-appb-000035
Figure PCTCN2017115765-appb-000035
步骤S232,建立与所述矩阵S3等大小的零矩阵S4,每个矩阵元素有(m,n,0)三个属性,m、n分别为行、列值,所述可能嵌入顶点的
Figure PCTCN2017115765-appb-000036
θ值满足下述不等式时,便将此可能嵌入顶点的r值替换掉矩阵S3的m行n列的零值;遍历所有可能嵌入顶点来寻找满足索引阈值条件的顶点,并将其r值替换对应索引的矩阵S4的零值,得到新的矩阵S4;
Step S232, establishing a zero matrix S4 of the same size as the matrix S3, each matrix element has three attributes (m, n, 0), m and n are row and column values, respectively, and the possible vertices are embedded.
Figure PCTCN2017115765-appb-000036
When the value of θ satisfies the following inequality, the r value of the possible embedding vertex is replaced by the zero value of the m row and n column of the matrix S3; all possible embedding vertices are traversed to find the vertex satisfying the index threshold condition, and the r value is replaced Corresponding to the zero value of the matrix S4 of the index, a new matrix S4 is obtained;
Figure PCTCN2017115765-appb-000037
Figure PCTCN2017115765-appb-000037
其中,λ1和λ2分别表示设定的阈值,满足上述不等式的
Figure PCTCN2017115765-appb-000038
θ值即为索引值,对应的r值为能量值。
Where λ1 and λ2 respectively represent a set threshold value, which satisfies the above inequality
Figure PCTCN2017115765-appb-000038
The value of θ is the index value, and the corresponding r value is the energy value.
步骤S24,对所述矩阵S4进行逆变换回空域,得到提取的水印图片;Step S24, inversely transforming the matrix S4 back into the airspace to obtain an extracted watermark image;
具体地,所述步骤S24包括:Specifically, the step S24 includes:
步骤S241,利用步骤S113中的所述恢复密钥K3作为还原秘钥,对矩阵S4进行Arnold还原,得到还原矩阵S5;Step S241, using the recovery key K3 in step S113 as a restore key, Arnold reduction of the matrix S4, to obtain a reduction matrix S5;
步骤S242,对所述还原矩阵S5中的元素都乘以所述恢复密钥K2,得到矩阵S6;Step S242, multiplying the elements in the reduction matrix S5 by the recovery key K2 to obtain a matrix S6;
步骤S243,利用步骤S112中的所述恢复秘钥K1对所述矩阵S6进行点乘,从而获得频谱矩阵S7;Step S243, using the recovery key K1 in step S112 to multiply the matrix S6, thereby obtaining a spectrum matrix S7;
步骤S244,对所述频谱矩阵S7利用二维逆离散余弦变换公式进行二维逆离散余弦变换,得到矩阵S8,所述矩阵S8即为提取出的水印图片,所述二维逆离散余弦变换公式如下:Step S244, performing a two-dimensional inverse discrete cosine transform on the spectrum matrix S7 by using a two-dimensional inverse discrete cosine transform formula to obtain a matrix S8, where the matrix S8 is an extracted watermark image, and the two-dimensional inverse discrete cosine transform formula as follows:
Figure PCTCN2017115765-appb-000039
Figure PCTCN2017115765-appb-000039
其中,u=0,1,…,W1-1;v=0,1…,W2-1;Where u=0,1,...,W1-1;v=0,1...,W2-1;
Figure PCTCN2017115765-appb-000040
Figure PCTCN2017115765-appb-000040
Figure PCTCN2017115765-appb-000041
Figure PCTCN2017115765-appb-000041
其中,S8(x,y)表示由提取出的频谱矩阵S7(u,v)经过逆离散余弦变换得到的水印图片矩阵S8;S8如图8所示。Wherein, S8(x, y) represents a watermark image matrix S8 obtained by inverse discrete cosine transform from the extracted spectral matrix S7(u, v); S8 is as shown in FIG.
步骤S25,利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。 Step S25: Calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
具体地,所述步骤S25中,所述水印相关度计算公式为:Specifically, in the step S25, the watermark correlation calculation formula is:
Figure PCTCN2017115765-appb-000042
Figure PCTCN2017115765-appb-000042
其中,W1代表原始水印图片的长,W2代表原始水印图片的宽,S(i,j)代表原始水印图片的矩阵,S(i,j)代表提取的水印图片的矩阵,σ代表水印的相关度;当σ的值大于经验阈值时,则认为此模型嵌入了水印,小于经验阈值时,则认为无水印嵌入。Where W1 represents the length of the original watermark picture, W2 represents the width of the original watermark picture, S(i,j) represents the matrix of the original watermark picture, S(i,j) represents the matrix of the extracted watermark picture, and σ represents the watermark correlation Degree; when the value of σ is greater than the empirical threshold, the model is considered to embed a watermark, and when it is less than the empirical threshold, no watermark embedding is considered.
本发明还提供了一种局部球坐标系下的三维盲水印嵌入和提取检测装置,如图9所示,所述装置包括:盲水印嵌入模块1和盲水印提取检测模块2。The invention also provides a three-dimensional blind watermark embedding and extraction detecting device in a partial spherical coordinate system. As shown in FIG. 9, the device comprises: a blind watermark embedding module 1 and a blind watermark extraction detecting module 2.
其中,所述盲水印嵌入模块1包括:The blind watermark embedding module 1 includes:
预处理子模块11,用于对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);The pre-processing sub-module 11 is configured to pre-process the original watermark image to be embedded, and obtain the attribute value (L, J, I) of the watermark element of the original watermark image;
其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值;Where L is the row index code value, J is the column index code value, and I is the element value, ie the energy value;
第一筛选子模块12,用于根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;a first screening sub-module 12, configured to filter, from the three-dimensional model of the watermark to be embedded, all candidate vertices satisfying the screening condition according to the first preset screening condition;
第一坐标系建立子模块13,用于对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
Figure PCTCN2017115765-appb-000043
其中,
Figure PCTCN2017115765-appb-000044
θ、r作为每个满足筛选条件的候选顶点的三个属性值;
a first coordinate system establishing sub-module 13 configured to establish a local spherical coordinate system under the customization of the candidate vertices, and determine a spherical coordinate value of each of the candidate vertices
Figure PCTCN2017115765-appb-000043
among them,
Figure PCTCN2017115765-appb-000044
θ, r are three attribute values of each candidate vertex satisfying the screening condition;
水印嵌入子模块14,用于将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
Figure PCTCN2017115765-appb-000045
θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水印元素进行上述操作,直到完全嵌入;
The watermark embedding sub-module 14 is configured to compare the attribute value of the watermark element with the attribute value of all the candidate vertices satisfying the filtering condition, and search for a candidate vertex that has the smallest difference from the attribute value of the watermark element as the watermark element embedded in the watermark element. Point, change the position of this candidate vertex in its spherical coordinate system, making it
Figure PCTCN2017115765-appb-000045
The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
其中,所述盲水印提取检测模块2包括:The blind watermark extraction detection module 2 includes:
第二筛选子模块21,用于根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;a second screening sub-module 21, configured to filter, from the three-dimensional model to be detected, all possible embedded vertices satisfying the screening condition according to the first preset screening condition;
第二坐标系建立子模块22,用于对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
Figure PCTCN2017115765-appb-000046
其中,
Figure PCTCN2017115765-appb-000047
θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
a second coordinate system establishing sub-module 22, configured to establish a local spherical coordinate system under the custom embedding vertices, and determine a spherical coordinate value of each of the possible embedded vertices
Figure PCTCN2017115765-appb-000046
among them,
Figure PCTCN2017115765-appb-000047
θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
提取子模块23,用于结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;The extraction sub-module 23 is configured to perform an index value and an energy value extraction on the possible embedded vertex satisfying the filter condition in the three-dimensional model in combination with the attribute value of the possible embedding vertex, to obtain a matrix S4;
逆变换子模块24,用于对所述矩阵S4进行逆变换回空域,得到提取的水印图片;An inverse transform sub-module 24, configured to inverse transform the matrix S4 back into the airspace to obtain an extracted watermark image;
判断子模块25,用于利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。The determining sub-module 25 is configured to calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
本发明提供的一种局部球坐标系下的三维盲水印嵌入和提取检测方法及装置,结合了空域和频域的思想,可以实现水印的不可见性嵌入(所谓不可见性嵌入是指模型嵌入水印后,并不会引起模型明显的视觉差异)以及已嵌入水印的三维模型的盲检测,无需原始三维模型的参与,并且能够抵抗仿射攻击和剪切攻击,且水印为可视化水印,具有较大的实用价值。The invention provides a method and device for three-dimensional blind watermark embedding and extracting detection in a partial spherical coordinate system, and combines the idea of airspace and frequency domain to realize invisibility embedding of watermark (so-called invisibility embedding refers to model embedding After the watermark, it does not cause obvious visual difference of the model) and the blind detection of the watermarked 3D model, without the participation of the original 3D model, and can resist the affine attack and the cut attack, and the watermark is a visual watermark, which has Great practical value.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (9)

  1. 一种局部球坐标系下的三维盲水印嵌入和提取检测方法,其特征在于,所述方法包括:盲水印嵌入步骤S1和盲水印提取检测步骤S2;A method for detecting and embedding a three-dimensional blind watermark in a local spherical coordinate system, the method comprising: a blind watermark embedding step S1 and a blind watermark extraction detecting step S2;
    其中,所述盲水印嵌入步骤S1包括:The blind watermark embedding step S1 includes:
    步骤S11,对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);Step S11, pre-processing the original watermark image to be embedded, and obtaining the attribute value (L, J, I) of the watermark element of the original watermark image;
    其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值;Where L is the row index code value, J is the column index code value, and I is the element value, ie the energy value;
    步骤S12,根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;Step S12: Filter all candidate vertices satisfying the screening condition from the three-dimensional model to be embedded in the watermark according to the first preset screening condition;
    步骤S13,对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
    Figure PCTCN2017115765-appb-100001
    其中,
    Figure PCTCN2017115765-appb-100002
    θ、r作为每个满足筛选条件的候选顶点的三个属性值;
    Step S13, establishing a local spherical coordinate system under the custom for the candidate vertices, and determining a spherical coordinate value of each of the candidate vertices
    Figure PCTCN2017115765-appb-100001
    among them,
    Figure PCTCN2017115765-appb-100002
    θ, r are three attribute values of each candidate vertex satisfying the screening condition;
    步骤S14,将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
    Figure PCTCN2017115765-appb-100003
    θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水印元素进行上述操作,直到完全嵌入;
    Step S14, comparing the attribute value of the watermark element with the attribute value of all candidate vertices satisfying the screening condition, searching for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point embedded in the watermark element, and changing the candidate The position of the vertex in its spherical coordinate system, making it
    Figure PCTCN2017115765-appb-100003
    The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
    其中,所述盲水印提取检测步骤S2包括:The blind watermark extraction detecting step S2 includes:
    步骤S21,根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;Step S21: Filter all possible embedded vertices satisfying the screening condition from the three-dimensional model to be detected according to the first preset screening condition;
    步骤S22,对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
    Figure PCTCN2017115765-appb-100004
    其中,
    Figure PCTCN2017115765-appb-100005
    θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
    Step S22, establishing a local spherical coordinate system under the custom embedding vertices, and determining a spherical coordinate value of each of the possible embedded vertices
    Figure PCTCN2017115765-appb-100004
    among them,
    Figure PCTCN2017115765-appb-100005
    θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
    步骤S23,结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足 筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;Step S23, combining each of the three-dimensional models with the attribute values of the possible embedded vertices The possible embedding vertices of the screening condition are used for index value and energy value extraction to obtain a matrix S4;
    步骤S24,对所述矩阵S4进行逆变换回空域,得到提取的水印图片;Step S24, inversely transforming the matrix S4 back into the airspace to obtain an extracted watermark image;
    步骤S25,利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。Step S25: Calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
  2. 如权利要求1所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S11具体包括:The method of claim 3, wherein the step S11 comprises:
    步骤S111,利用二维离散余弦变换公式对待嵌入的原始水印图片进行二维离散余弦变换,得到所述原始水印图片的离散余弦变换域的频谱矩阵S1;Step S111, using a two-dimensional discrete cosine transform formula to perform two-dimensional discrete cosine transform on the original watermark image to be embedded, to obtain a spectral matrix S1 of the discrete cosine transform domain of the original watermark image;
    所述二维离散余弦变换公式为:The two-dimensional discrete cosine transform formula is:
    Figure PCTCN2017115765-appb-100006
    Figure PCTCN2017115765-appb-100006
    其中,u=0,1,…,W1-1;v=0,1…,W2-1;Where u=0,1,...,W1-1;v=0,1...,W2-1;
    Figure PCTCN2017115765-appb-100007
    Figure PCTCN2017115765-appb-100007
    Figure PCTCN2017115765-appb-100008
    Figure PCTCN2017115765-appb-100008
    其中,所述原始水印图片的大小为W1×W2,W1代表原始水印图片的长,W2代表原始水印图片的宽,所述原始水印图片的矩阵表示为f(x,y),所述原始水印图片记为S,S1(u,v)表示对原始水印图片的矩阵f(x,y)离散余弦变换后得到的频谱矩阵;The size of the original watermark picture is W1×W2, W1 represents the length of the original watermark picture, W2 represents the width of the original watermark picture, and the matrix of the original watermark picture is represented as f(x, y), the original watermark The picture is denoted as S, and S1(u, v) represents a spectrum matrix obtained by discrete cosine transform of the matrix f(x, y) of the original watermark picture;
    步骤S112,提取所述频谱矩阵S1的正负系数矩阵作为恢复秘钥K1,对所述频谱矩阵S1进行绝对值化,并做归一化处理,得到矩阵S2,以所述矩阵S2 的最大值作为恢复秘钥K2;Step S112, extracting the positive and negative coefficient matrix of the spectrum matrix S1 as the recovery key K1, performing absolute value on the spectrum matrix S1, and performing normalization processing to obtain a matrix S2, and the matrix S2 The maximum value as the recovery key K2;
    步骤S113,利用置乱矩阵对所述矩阵S2进行Arnold置乱得到矩阵S3,所述置乱矩阵为:Step S113, performing Arnold scrambling on the matrix S2 by using a scrambling matrix to obtain a matrix S3, where the scrambling matrix is:
    Figure PCTCN2017115765-appb-100009
    Figure PCTCN2017115765-appb-100009
    其中,a和b是设定的参数,k是迭代次数,W2是原始水印图片的宽,a、b、k、W2作为恢复秘钥K3;所述矩阵S3中的每个元素都有三个属性值(m,n,I),其中,m为行索引值,n为列索引值,I为元素值即能量值;Where a and b are the set parameters, k is the number of iterations, W2 is the width of the original watermark picture, a, b, k, W2 are used as the recovery key K3; each element in the matrix S3 has three attributes Value (m, n, I), where m is the row index value, n is the column index value, and I is the element value, ie the energy value;
    步骤S114,利用如下公式分别将所述矩阵S3中每个元素的属性值m、n编码成角度值,得到所述矩阵S3的每个元素的新属性值(L,J,I);Step S114, using the following formula to respectively encode the attribute values m, n of each element in the matrix S3 into an angle value, to obtain a new attribute value (L, J, I) of each element of the matrix S3;
    Figure PCTCN2017115765-appb-100010
    Figure PCTCN2017115765-appb-100010
    Figure PCTCN2017115765-appb-100011
    Figure PCTCN2017115765-appb-100011
    其中,α和β为预设常数,α为0到0.5之间的某个数值,β为0到1之间的某个数值,L为行索引编码值,J为列索引编码值,I为能量值,Li表示第i行的索引编码值,Jj表示第j列的索引编码值。Where α and β are preset constants, α is a value between 0 and 0.5, β is a value between 0 and 1, L is the row index code value, J is the column index code value, and I is The energy value, L i represents the index code value of the i-th row, and J j represents the index code value of the j-th column.
  3. 如权利要求1所述的三维盲水印嵌入和提取检测方法,其特征在于,所述第一预置筛选条件包括:第一筛选条件、第二筛选条件和第三筛选条件,其中,所述第一筛选条件为顶点的一环邻居点与一环邻居点的质心的距离最大比值需小于阈值A,所述第二筛选条件为一环邻居点质心的两个不同定义下的法向夹角需大于阈值B,所述第三筛选条件为候选顶点之间为非邻居点;The method for detecting and embedding a three-dimensional blind watermark according to claim 1, wherein the first preset screening condition comprises: a first screening condition, a second screening condition, and a third screening condition, wherein the first A screening condition is that the maximum ratio of the distance between the one-ring neighbor point of the vertex and the centroid of the one-ring neighbor point needs to be smaller than the threshold A, and the second screening condition is that the normal angle of the two different definitions of the centroid of the neighboring point is required. Greater than the threshold B, the third screening condition is a non-neighboring point between the candidate vertices;
    所述步骤S12具体包括:The step S12 specifically includes:
    步骤S121,计算待嵌入水印的三维模型中的顶点Vi的一环邻居点的质心点Zi,分别连接Zi与Vi的一环邻居点,并计算相应的距离,若各个所述距离的最大比值大于阈值A,则将此顶点剔除,对所述三维模型的所有顶点遍历此操 作,得到所有满足条件的第一候选顶点;Step S121, the centroid link neighbor point three-dimensional model is calculated to be embedded watermarks vertices V i to Z i, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if each of the distance If the maximum ratio is greater than the threshold A, the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first candidate vertices satisfying the condition;
    步骤S122,对所述第一候选顶点计算法向na和nt,若所述法向na和所述法向nt的夹角小于阈值B,则剔除该第一候选顶点,对所有的第一候选顶点遍历此操作,得到所有满足条件的第二候选顶点;Step S122, calculating normal directions n a and n t for the first candidate vertex, if the angle between the normal n a and the normal n t is less than the threshold B, then the first candidate vertex is eliminated, for all The first candidate vertex traverses this operation to obtain all second candidate vertices satisfying the condition;
    其中,所述法向na的定义为:Wherein the normal n a is defined as:
    对质心点Zi与Vi的一环邻居点进行连线,得到若干个新的以质心点为顶点的三角形,记为T(Zi),三角形的个数记为N,新的三角形的法向记为nj,以所有的所述三角形的法向的均值作为质心点Zi的法向na,即:Connect a circle of neighbor points of the centroid point Z i and V i to obtain a number of new triangles with the centroid point as the apex, denoted as T(Z i ), and the number of triangles is denoted as N, the new triangle The normal is denoted as n j , and the mean of all the normals of the triangle is taken as the normal n a of the centroid point Z i , namely:
    Figure PCTCN2017115765-appb-100012
    Figure PCTCN2017115765-appb-100012
    所述法向nt的定义为:The normal n t is defined as:
    根据各个所述三角形的法向nj和面积Sj的平方来计算质心的另一个法向nt,即:Calculating another normal n t of the centroid according to the square of the normal n j and the area S j of each of the triangles, namely:
    Figure PCTCN2017115765-appb-100013
    Figure PCTCN2017115765-appb-100013
    步骤S123,检验所有满足条件的所述第二候选顶点中是否有互为邻居的顶点,若有,则将其剔除,剩余的第二候选顶点即为可嵌入水印的候选顶点。Step S123, it is checked whether all the second candidate vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second candidate vertices are candidate vertices of the watermark embedding.
  4. 如权利要求1所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S13中,球坐标值
    Figure PCTCN2017115765-appb-100014
    为经过自定义的编码的球坐标值,求所述候选顶点的球坐标值
    Figure PCTCN2017115765-appb-100015
    的公式如下:
    The method for detecting and embedding a three-dimensional blind watermark according to claim 1, wherein in the step S13, the spherical coordinate value
    Figure PCTCN2017115765-appb-100014
    Finding the spherical coordinate value of the candidate vertex for the customized encoded spherical coordinate value
    Figure PCTCN2017115765-appb-100015
    The formula is as follows:
    r=sqrt((x-x0)2+(y-y0)2+(z-z0)2)/ρr=sqrt((xx 0 ) 2 +(yy 0 ) 2 +(zz 0 ) 2 )/ρ
    θ=arccos(|z-z0|/r)θ=arccos(|zz 0 |/r)
    Figure PCTCN2017115765-appb-100016
    Figure PCTCN2017115765-appb-100016
    其中,(x,y,z)为候选顶点在直角坐标系中的坐标值,(x0,y0,z0)为候选顶点的一环邻居的质心点坐标,ρ为质心点到邻居点距离的均值。Where (x, y, z) is the coordinate value of the candidate vertex in the Cartesian coordinate system, (x 0 , y 0 , z 0 ) is the centroid point coordinate of the ring neighbor of the candidate vertex, and ρ is the centroid point to the neighbor point The mean of the distance.
  5. 如权利要求1所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S21包括: The method of claim 3, wherein the step S21 comprises:
    步骤S211,计算待检测的所述三维模型的顶点Vi的一环邻居点的质心点Zi,分别连接Zi与Vi的一环邻居点,并计算相应的距离,若各个所述距离的最大比值大于阈值A,则将此顶点剔除,对所述三维模型的所有顶点遍历此操作,得到所有满足条件的第一可能嵌入顶点;Step S211, the centroid point of a neighboring ring vertex V i of the three-dimensional model calculated Z i to be detected, are connected to a ring neighbor point Z i and V i, and to calculate the appropriate distance, if the respective distance If the maximum ratio is greater than the threshold A, the vertex is culled, and all the vertices of the three-dimensional model are traversed by the operation to obtain all the first possible embedded vertices satisfying the condition;
    步骤S212,对所述第一可能嵌入顶点计算法向na和nt,若所述法向na和所述法向nt的夹角小于阈值B,则剔除该第一可能嵌入顶点,对所有的第一可能嵌入顶点遍历此操作,得到所有满足条件的第二可能嵌入顶点;Step S212, calculating normal directions n a and n t for the first possible embedding vertex, and if the angle between the normal n a and the normal n t is less than the threshold B, the first possible embedding vertex is eliminated. Traversing this operation for all first possible embedding vertices, yielding all second possible embedding vertices that satisfy the condition;
    其中,所述法向na的定义为:Wherein the normal n a is defined as:
    对质心点Zi与Vi的一环邻居点进行连线,得到若干个新的以质心点为顶点的三角形,记为T(Zi),三角形的个数记为N,新的三角形的法向记为nj,以所有的所述三角形的法向的均值作为质心点Zi的法向na,即:Connect the centroid neighbor points of the centroid point Z i and Vi to obtain a number of new triangles with the centroid point as the apex, denoted as T(Z i ), and the number of triangles is denoted by N, the method of the new triangle The direction is denoted as n j , and the mean of all the normals of the triangle is taken as the normal n a of the centroid point Z i , namely:
    Figure PCTCN2017115765-appb-100017
    Figure PCTCN2017115765-appb-100017
    所述法向nt的定义为:The normal n t is defined as:
    根据各个所述三角形的法向nj和面积Sj来计算质心的另一个法向nt,即:Calculating another normal n t of the centroid according to the normal n j and the area S j of each of the triangles, namely:
    Figure PCTCN2017115765-appb-100018
    Figure PCTCN2017115765-appb-100018
    步骤S213,检验所有满足条件的所述第二可能嵌入顶点中是否有互为邻居的顶点,若有,则将其剔除,剩余的第二可能嵌入顶点即为最终筛选出的可能嵌入顶点。Step S213, it is checked whether all the second possible embedding vertices satisfying the condition have vertices which are mutually neighbors, and if so, cull them, and the remaining second possible embedding vertices are the finally selected possible embedding vertices.
  6. 如权利要求2所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S23包括:The method of claim 3, wherein the step S23 comprises:
    步骤S231,利用下述公式对所述可能嵌入顶点的属性值
    Figure PCTCN2017115765-appb-100019
    进行反编码;
    Step S231, using the following formula to attribute the attribute value of the possible embedding vertex
    Figure PCTCN2017115765-appb-100019
    Perform anti-coding;
    Figure PCTCN2017115765-appb-100020
    Figure PCTCN2017115765-appb-100020
    步骤S232,建立与所述矩阵S3等大小的零矩阵S4,每个矩阵元素有(m,n,0)三个属性,m、n分别为行、列值,所述可能嵌入顶点的
    Figure PCTCN2017115765-appb-100021
    θ值满足下述不等式时,便将此可能嵌入顶点的r值替换掉矩阵S3的m行n列的零值;遍历所有可能嵌入顶点来寻找满足索引阈值条件的顶点,并将其r值替换对应索引的矩阵S4的零值,得到新的矩阵S4;
    Step S232, establishing a zero matrix S4 of the same size as the matrix S3, each matrix element has three attributes (m, n, 0), m and n are row and column values, respectively, and the possible vertices are embedded.
    Figure PCTCN2017115765-appb-100021
    When the value of θ satisfies the following inequality, the r value of the possible embedding vertex is replaced by the zero value of the m row and n column of the matrix S3; all possible embedding vertices are traversed to find the vertex satisfying the index threshold condition, and the r value is replaced Corresponding to the zero value of the matrix S4 of the index, a new matrix S4 is obtained;
    Figure PCTCN2017115765-appb-100022
    Figure PCTCN2017115765-appb-100022
    其中,λ1和λ2分别表示设定的阈值,满足上述不等式的
    Figure PCTCN2017115765-appb-100023
    θ值即为索引值,对应的r值为能量值。
    Where λ1 and λ2 respectively represent a set threshold value, which satisfies the above inequality
    Figure PCTCN2017115765-appb-100023
    The value of θ is the index value, and the corresponding r value is the energy value.
  7. 如权利要求2所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S24包括:The method of claim 3, wherein the step S24 comprises:
    步骤S241,利用所述恢复密钥K3作为还原秘钥,对矩阵S4进行Arnold还原,得到还原矩阵S5;Step S241, using the recovery key K3 as a restore key, the Arnold reduction of the matrix S4, to obtain a reduction matrix S5;
    步骤S242,对所述还原矩阵S5中的元素都乘以所述恢复密钥K2,得到矩阵S6;Step S242, multiplying the elements in the reduction matrix S5 by the recovery key K2 to obtain a matrix S6;
    步骤S243,利用所述恢复秘钥K1对所述矩阵S6进行点乘,从而获得频谱矩阵S7;Step S243, using the recovery key K1 to multiply the matrix S6, thereby obtaining a spectrum matrix S7;
    步骤S244,对所述频谱矩阵S7利用二维逆离散余弦变换公式进行二维逆离散余弦变换,得到矩阵S8,所述矩阵S8即为提取出的水印图片,所述二维逆离散余弦变换公式如下:Step S244, performing a two-dimensional inverse discrete cosine transform on the spectrum matrix S7 by using a two-dimensional inverse discrete cosine transform formula to obtain a matrix S8, where the matrix S8 is an extracted watermark image, and the two-dimensional inverse discrete cosine transform formula as follows:
    Figure PCTCN2017115765-appb-100024
    Figure PCTCN2017115765-appb-100024
    其中,u=0,1,…,W1-1;v=0,1…,W2-1;Where u=0,1,...,W1-1;v=0,1...,W2-1;
    Figure PCTCN2017115765-appb-100025
    Figure PCTCN2017115765-appb-100025
    Figure PCTCN2017115765-appb-100026
    Figure PCTCN2017115765-appb-100026
    其中,S8(x,y)表示由提取出的频谱矩阵S7(u,v)经过逆离散余弦变换得到的水印图片矩阵S8。Wherein, S8(x, y) represents a watermark image matrix S8 obtained by inverse discrete cosine transform from the extracted spectral matrix S7(u, v).
  8. 如权利要求2所述的三维盲水印嵌入和提取检测方法,其特征在于,所述步骤S25中,所述水印相关度计算公式为:The method for detecting and embedding a three-dimensional blind watermark according to claim 2, wherein in the step S25, the watermark correlation calculation formula is:
    Figure PCTCN2017115765-appb-100027
    Figure PCTCN2017115765-appb-100027
    其中,W1代表原始水印图片的长,W2代表原始水印图片的宽,S(i,j)代表原始水印图片的矩阵,S(i,j)代表提取的水印图片的矩阵,σ代表水印的相关度。Where W1 represents the length of the original watermark picture, W2 represents the width of the original watermark picture, S(i,j) represents the matrix of the original watermark picture, S(i,j) represents the matrix of the extracted watermark picture, and σ represents the watermark correlation degree.
  9. 一种局部球坐标系下的三维盲水印嵌入和提取检测装置,其特征在于,所述装置包括:盲水印嵌入模块和盲水印提取检测模块;A device for embedding and extracting a three-dimensional blind watermark in a partial spherical coordinate system, wherein the device comprises: a blind watermark embedding module and a blind watermark extraction detecting module;
    其中,所述盲水印嵌入模块包括:The blind watermark embedding module includes:
    预处理子模块,用于对待嵌入的原始水印图片进行预处理,得到所述原始水印图片的水印元素的属性值(L,J,I);a pre-processing sub-module, configured to pre-process the original watermark image to be embedded, to obtain an attribute value (L, J, I) of the watermark element of the original watermark image;
    其中,L为行索引编码值,J为列索引编码值,I为元素值即能量值;Where L is the row index code value, J is the column index code value, and I is the element value, ie the energy value;
    第一筛选子模块,用于根据第一预置筛选条件从待嵌入水印的三维模型中筛选出所有满足筛选条件的候选顶点;a first screening sub-module, configured to filter, from the three-dimensional model of the watermark to be embedded, all candidate vertices satisfying the screening condition according to the first preset screening condition;
    第一坐标系建立子模块,用于对所述候选顶点建立自定义下的局部球坐标系,并确定各个所述候选顶点的球坐标值
    Figure PCTCN2017115765-appb-100028
    其中,
    Figure PCTCN2017115765-appb-100029
    θ、r作为每个满足筛选条件的候选顶点的三个属性值;
    a first coordinate system establishing submodule, configured to establish a local spherical coordinate system under the custom vertices, and determine a spherical coordinate value of each of the candidate vertices
    Figure PCTCN2017115765-appb-100028
    among them,
    Figure PCTCN2017115765-appb-100029
    θ, r are three attribute values of each candidate vertex satisfying the screening condition;
    水印嵌入子模块,用于将所述水印元素的属性值和所有满足筛选条件的候选顶点的属性值相比,查找与所述水印元素的属性值相差最小的候选顶点作为 嵌入此水印元素的点,改变此候选顶点在它的球坐标系中的位置,使得它的
    Figure PCTCN2017115765-appb-100030
    θ值分别等于水印元素的行索引编码值L、列索引编码值J,并使得它的r值等于水印元素的元素值I,来嵌入所述水印元素的索引编码值和能量值;嵌入完毕后在所有满足筛选条件的候选顶点中剔除此候选顶点,遍历所述原始水印图片的所有水印元素进行上述操作,直到完全嵌入;
    a watermark embedding sub-module, configured to compare a property value of the watermark element with an attribute value of all candidate vertices satisfying a filter condition, and search for a candidate vertex that has the smallest difference from the attribute value of the watermark element as a point at which the watermark element is embedded , changing the position of this candidate vertex in its spherical coordinate system, making it
    Figure PCTCN2017115765-appb-100030
    The value of θ is equal to the row index code value L and the column index code value J of the watermark element, respectively, and the r value thereof is equal to the element value I of the watermark element to embed the index code value and the energy value of the watermark element; The candidate vertices are culled in all candidate vertices satisfying the screening condition, and all the watermark elements of the original watermark image are traversed until the above is completely embedded;
    其中,所述盲水印提取检测模块包括:The blind watermark extraction detection module includes:
    第二筛选子模块,用于根据所述第一预置筛选条件从待检测的所述三维模型中筛选出所有满足筛选条件的可能嵌入顶点;a second screening sub-module, configured to filter, from the three-dimensional model to be detected, all possible embedded vertices satisfying the screening condition according to the first preset screening condition;
    第二坐标系建立子模块,用于对所述可能嵌入顶点建立自定义下的局部球坐标系,并确定各个所述可能嵌入顶点的球坐标值
    Figure PCTCN2017115765-appb-100031
    其中,
    Figure PCTCN2017115765-appb-100032
    θ、r作为每个满足筛选条件的可能嵌入顶点的三个属性值;
    a second coordinate system establishing submodule, configured to establish a local spherical coordinate system under the custom embedding vertices, and determine a spherical coordinate value of each of the possible embedded vertices
    Figure PCTCN2017115765-appb-100031
    among them,
    Figure PCTCN2017115765-appb-100032
    θ, r are three attribute values of each possible embedding vertex that satisfy the screening condition;
    提取子模块,用于结合所述可能嵌入顶点的属性值对所述三维模型中的每个满足筛选条件的所述可能嵌入顶点进行索引值和能量值提取,得到矩阵S4;An extraction submodule, configured to perform an index value and an energy value extraction on the possible embedded vertex satisfying the filter condition in the three-dimensional model in combination with the attribute value of the possible embedding vertex, to obtain a matrix S4;
    逆变换子模块,用于对所述矩阵S4进行逆变换回空域,得到提取的水印图片;An inverse transform sub-module, configured to inverse transform the matrix S4 back into the airspace to obtain an extracted watermark image;
    判断子模块,用于利用水印相关度计算公式计算所述提取的水印图片与所述原始水印图片的相关度,若所述相关度大于经验阈值,则证明所述三维模型含有水印。 The determining sub-module is configured to calculate a correlation between the extracted watermark image and the original watermark image by using a watermark correlation calculation formula, and if the correlation is greater than an experience threshold, prove that the three-dimensional model includes a watermark.
PCT/CN2017/115765 2017-12-13 2017-12-13 Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system WO2019113810A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/115765 WO2019113810A1 (en) 2017-12-13 2017-12-13 Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/115765 WO2019113810A1 (en) 2017-12-13 2017-12-13 Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system

Publications (1)

Publication Number Publication Date
WO2019113810A1 true WO2019113810A1 (en) 2019-06-20

Family

ID=66819832

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/115765 WO2019113810A1 (en) 2017-12-13 2017-12-13 Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system

Country Status (1)

Country Link
WO (1) WO2019113810A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1487421A (en) * 2003-08-11 2004-04-07 深圳大学 3D digital watermark embedding and detecting method and device based on virtual optics
CN101178805A (en) * 2007-12-12 2008-05-14 北京航空航天大学 Three-dimensional grid digital blind watermark method based on Octree encode
CN101833743A (en) * 2010-04-01 2010-09-15 杭州电子科技大学 Image based three-dimensional grid model blind watermarking method
CN102622721A (en) * 2012-03-06 2012-08-01 福建师范大学 Three-dimensional grid model blind-watermarking method based on depth image mapping

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1487421A (en) * 2003-08-11 2004-04-07 深圳大学 3D digital watermark embedding and detecting method and device based on virtual optics
CN101178805A (en) * 2007-12-12 2008-05-14 北京航空航天大学 Three-dimensional grid digital blind watermark method based on Octree encode
CN101833743A (en) * 2010-04-01 2010-09-15 杭州电子科技大学 Image based three-dimensional grid model blind watermarking method
CN102622721A (en) * 2012-03-06 2012-08-01 福建师范大学 Three-dimensional grid model blind-watermarking method based on depth image mapping

Similar Documents

Publication Publication Date Title
Yarlagadda et al. Satellite image forgery detection and localization using gan and one-class classifier
Lu et al. Multimedia forensic hash based on visual words
Kashyap et al. An evaluation of digital image forgery detection approaches
CN108335256B (en) Three-dimensional blind watermark embedding and extracting detection method and device under local spherical coordinate system
Thajeel et al. State of the art of copy-move forgery detection techniques: a review
Mohammed et al. Boosting image forgery detection using resampling features and copy-move analysis
Hashmi et al. A copy-move image forgery detection based on speeded up robust feature transform and Wavelet Transforms
Cao et al. A recursive embedding algorithm towards lossless 2D vector map watermarking
Luo et al. Convolutional neural networks-based stereo image reversible data hiding method
Flenner et al. Resampling forgery detection using deep learning and a-contrario analysis
CN103377457A (en) Vector geographic data accurate authentication fragile watermarking method
Liu et al. Zero-watermarking method for resisting rotation attacks in 3D models
Nawaz et al. Single and multiple regions duplication detections in digital images with applications in image forensic
Diwan et al. Unveiling copy-move forgeries: Enhancing detection with SuperPoint keypoint architecture
Taya et al. Detecting tampered regions in JPEG images via CNN
WO2019113810A1 (en) Method and apparatus for embedding and extraction detection of three-dimensional blind watermark in local spherical coordinate system
CN116823940A (en) Three-dimensional scene moving object detection method
Muzaffer et al. Recent keypoint based copy move forgery detection techniques
Bertojo et al. A very fast copy-move forgery detection method for 4k ultra hd images
Nataraj et al. Holistic image manipulation detection using pixel co-occurrence matrices
Dixit et al. Copy-move image forgery detection using frequency-based techniques: a review
Patel et al. Review of digital image forgery detection
Wu et al. Review of digital watermarking for 2d-vector map
Banerjee et al. Biometric steganography using face geometry
Fang et al. A fire detection and localisation method based on keyframes and superpixels for large-space buildings

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17934568

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17934568

Country of ref document: EP

Kind code of ref document: A1