Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
YIQ is NTSC (National Television Standards Committee) standard television system.Y is to provide the luminance signal (Luminance) of black-and-white television and color TV, i.e. brightness (Brightness), and I represents In-phase, and color is from orange to cyan, and Q represents Quadrature-phase, and color is from purple to yellow green.
embodiment mono-
With reference to figure 1, Fig. 1 is the realization flow figure of a kind of data waterprint embedded method of providing of the embodiment of the present invention, and details are as follows:
In step S101, obtain original no-watermark RGB image, described original no-watermark image RGB is converted to original no-watermark YIQ image, and to described original no-watermark YIQ Image Segmentation Using, be divided into multiple measure-alike and not overlapped original no-watermark YIQ image subblocks, according to the curved surface fitting model of setting up in advance, original no-watermark YIQ image subblock described in each is carried out to surface fitting, obtain the Y component coding collection of each original no-watermark YIQ image subblock, I component coded set, Q component coded set, wherein, described Y component coding collection comprises Y component constant, described I component coded set comprises I component constant, described Q component coded set comprises Q component constant,
Wherein, from rgb color space being transformed into YIQ color space, watermark is embedded in Y, I, tri-components of Q, its transfer equation is:
Wherein, original no-watermark image representation needs the image of embed watermark, and described embed watermark image includes but not limited to unpressed image and the image having compressed.
Wherein, obtain original no-watermark image, can adopt any mode of prior art to obtain, as obtained by the mode of online, or the mode importing by local data base is obtained.
Wherein, to described original no-watermark Image Segmentation Using, be divided into multiple measure-alike and not overlapped original no-watermark YIQ image subblocks, original no-watermark image X is divided into size for N*N or the not overlapped original no-watermark YIQ image subblock [X of M*N
1, X
2..., X
m], M, N are pixel number.M is original no-watermark YIQ image subblock number.
Wherein, three components of the YIQ of the curved surface fitting model that described basis is set up in advance and described original no-watermark YIQ image subblock, the Image Coding of generation embed watermark information, is specially:
Call the curved surface fitting model of setting up in advance, described curved surface fitting model, is specially:
Wherein, x represents that curved surface horizontal ordinate, y represent curved surface ordinate, a, and b, c, d, f represents surface fitting parameter, f is component constant, can represent Y component constant, I component constant, Q component constant;
Input respectively three components of YIQ, generate Y component coding collection cY
i(x, y, j), I component coded set cI
i(x, y, j), Q component coded set cQ
i(x, y, j);
Wherein, i represents the sequence number of original no-watermark YIQ image subblock, and its value is 1,2 ..., j represents the sequence number of component coding lumped parameter, its value is 1,2 ... 9,6 parameters represent respectively surface fitting parameter a, b, c above, d, e, f, after coordinate and the size of three Parametric Representation no-watermarks.
Further, utilize these Y component coding collection cY
i(x, y, j), I component coded set cI
i(x, y, j), Q component coded set cQ
i(x, y, j), recovers tri-components of YIQ and obtains Y'I'Q', then calculates the error e Y of the Y component of initial carrier image and the Y' component of restoration and reconstruction with following formula.
eY=Y-Y' (3)
The error e I of I component and the error e Q of Q component also copy above formula to calculate.
By calculating its error, follow-up in step S104, recover tri-components of YIQ according to formula (2) with the coding after embed watermark information, error e Y, eI, eQ are compensated to corresponding component and obtain new YIQ color space, newer YIQ color space is reverted to rgb color space.
In step S102, convert the watermark prestoring to watermark sequence;
Wherein, by the watermarking images formation sequence prestoring, adopt preset-key Key1 to do random seed, the pseudo-random sequence of generation and described sequence equal length, according to the sequence order of described pseudo-random sequence, adjusts described sequence, with generating watermark sequence.
For example, by the binary watermarking of M' × N' size, first scan watermark is transformed into the sequence { W that a length is q
l, do random seed with key K ey1 and produce the pseudo-random sequence { r of 0~q-1
l, by new watermark sequence { W
kbe adjusted into
In step S103, described original no-watermark YIQ image subblock is encoded, adopt preset-key to do random seed and generate pseudo-random sequence, choose described original no-watermark YIQ image subblock according to described pseudo-random sequence;
Wherein, tri-components of YIQ that step S101 is handled well, extract respectively the original no-watermark YIQ image subblock that is divided into default size in each component.Be the pseudo-random sequence { r of random seed generation 0~s-1 of key K ey2
l', in each component, in the original no-watermark YIQ image subblock of default size, choose randomly q original no-watermark YIQ image subblock with this Sequence pseudo and carry out embed watermark.
In step S104, the incorporation model that described basis is set up in advance, predefined embedding coefficient, by described Y component constant, described Q component constant and described I component constant in the described original no-watermark YIQ image subblock of choosing, add respectively the numerical value in the above watermark sequence, generate respectively Y component and embed constant, Q component embedding constant, I component embedding constant;
Wherein, the incorporation model that described basis is set up in advance, predefined embedding coefficient, by described Y component constant, described Q component constant and described I component constant, add respectively the numerical value in the above watermark sequence, generate respectively Y component and embed constant, Q component embedding constant, I component embedding constant, be specially:
Call the incorporation model of setting up in advance, described incorporation model, is specially:
Wherein, code
i(x, y, 6) represent the coded set of original no-watermark YIQ image subblock, can represent Y component coding collection cY
i(x, y, j), I component coded set cI
i(x, y, j), Q component coded set cQ
i(x, y, j), x represents that curved surface horizontal ordinate, y represent curved surface ordinate, j represents the sequence number of component coding lumped parameter;
Code
ithe 6th parameter that (x, y, 6) presentation code is concentrated, namely component constant, can represent Y component constant, I component constant, Q component constant;
Wherein, code
i' (x, y, 6) represent the coded set of embed watermark image, can represent the Y component coding collection wY of embed watermark image
i(x, y, j), I component coded set wI
i(x, y, j), Q component coded set wQ
i(x, y, j), x represents that curved surface horizontal ordinate, y represent curved surface ordinate, j represents the sequence number of component coding lumped parameter;
Code
i' the 6th concentrated parameter of (x, y, 6) presentation code, namely component constant, can represent that Y component embeds constant, Q component embeds constant, I component embedding constant.
Wherein α
p(p=1,2,3) are threshold values given in advance, represent the degree of depth that watermark embeds, the less stable of the too small watermark of α value, the excessive quality that can affect carrier image of value, the use value of reduction carrier.Therefore the value of α should suitably be chosen according to concrete condition.
In step S104, Y component coding collection of original no-watermark YIQ image subblock described in each, I component coded set, in Q component coded set, respectively the Y component generating is embedded to constant, Q component embeds constant, I component embeds constant, replace described Y component constant, described Q component embeds constant, described I component embeds constant, generate the Y component coding collection of each embed watermark YIQ image subblock, I component coded set, Q component coded set, according to the Y component coding collection of embed watermark YIQ image subblock described in each, I component coded set, Q component coded set generates the YIQ color space after embed watermark, YIQ color space after embed watermark is converted to rgb color space, generate embed watermark image,
Wherein, Y component coding collection embeds constant by the Y component generating and replaces Y component constant, retains other parameter, can generate the Y component coding collection of embed watermark YIQ image subblock.
Wherein, Q component coded set embeds constant by the Q component generating and replaces Q component constant, retains other parameter, can generate the Q component coded set of embed watermark YIQ image subblock.
Wherein, the I component generating is embedded constant substitute I component constant by I component coded set, retains other parameter, can generate the I component coded set of embed watermark YIQ image subblock.
Wherein, described watermarking images is black white image;
Wherein, the numerical value value in described watermark sequence be 0 or value be 1.
With Y component coding collection, I component coded set, the Q component coded set of embed watermark YIQ image subblock described in each after embed watermark, recover tri-components of YIQ according to formula (2), and error e Y, eI, eQ are compensated to corresponding component and obtain new YIQ color space, newer YIQ color space is reverted to rgb color space.So just obtain embed watermark image.
What the present invention proposed transforms to YIQ color space image from rgb color space, has taked method that self-adaptation is cut apart original no-watermark image to be divided into the original no-watermark YIQ image subblock of pre-set dimension in surface fitting scheme.Taking pre-set dimension 4 × 4 as example, the sub-block to choose 4 × 4 adopts pseudo-random sequence, by the order scramble of original no-watermark YIQ image subblock, then watermark bit is loaded in the parameter of curve stable of original no-watermark YIQ image subblock.In addition the error of bringing in order to eliminate surface fitting, adopts the mode of error compensation to improve the quality of embed watermark image.
Compared with prior art, the present invention adopt stable parameter replacement RGB RGB component, by the order scramble of original no-watermark YIQ image subblock, and the mode that has adopted error compensation has improved the quality of embed watermark image, a little less than can having avoided occurring the stability of RGB component on the one hand, cause being subject to after extraneous attack, the watermark of extracting in RGB component produces larger distortion, even extracts the situation less than the digital watermarking in image;
The common attack such as can effectively avoid resisting on the other hand compression, filtering, noise and cut out, thus good application potential there is.
embodiment bis-
With reference to figure 2, Fig. 2 is the implementing procedure figure of the digital watermarking extracting method that provides of the embodiment of the present invention, and details are as follows:
In step S201, obtain embed watermark RGB image, described embed watermark RGB image is converted to embed watermark YIQ image, and to described embed watermark YIQ Image Segmentation Using, be divided into multiple measure-alike and not overlapped embed watermark YIQ image subblocks, according to the curved surface fitting model of setting up in advance, embed watermark YIQ image subblock described in each is carried out to surface fitting, obtain the Y component coding collection of embed watermark YIQ image subblock described in each, I component coded set, Q component coded set, wherein, described Y component coding collection comprises that Y component embeds constant, described I component coded set comprises that I component embeds constant, described Q component coded set comprises that Q component embeds constant,
Wherein, the image of embed watermark is transformed into YIQ space and obtains three components, due to embed watermark of carrier, so three components are modified, carrying out self-adaptation with the segmentation threshold of previous step, to cut apart three components inevitable different from the segmentation framework of watermarking algorithm step 1, so these three components are cut apart with three self-adaptation segmentation frameworks in initial carrier image YIQ space, then the sub-block of cutting apart is carried out to surface fitting, obtain the wY that encodes
i(x, y, j), wI
i(x, y, j), wQ
i(x, y, j), i=1,2 ...
In step S202, described embed watermark YIQ image subblock is encoded, adopt preset-key to do random seed and generate pseudo-random sequence, choose described embed watermark YIQ image subblock according to described pseudo-random sequence and described coding;
Wherein, by wY
i(x, y, j), wI
i(x, y, j), wQ
iin (x, y, j), the embed watermark YIQ image subblock of all pre-set dimension coding extracts, and does random seed produce pseudo-random sequence { r with key K ey2
l', find out respectively the embed watermark YIQ image subblock of embed watermark in the embed watermark YIQ image subblock of 4 × 4 sizes by this sequence
In step S203, the Y component that the described Y component of the described embed watermark YIQ image subblock of choosing according to each embeds the original no-watermark YIQ image subblock of constant, described I component embedding constant and described Q component embedding constant and correspondence embeds constant, described I component embeds constant and described Q component embedding constant, generates watermark sequence, the watermark sequence of I component and the watermark sequence of Q component of described Y component;
Wherein, the Y component of original no-watermark YIQ image subblock embeds constant, described I component embeds constant and described Q component embeds constant, can be pre-stored, and also can re-execute following steps and generate:
Obtain original no-watermark RGB image, described original no-watermark image RGB is converted to original no-watermark YIQ image, and to described original no-watermark YIQ Image Segmentation Using, be divided into multiple measure-alike and not overlapped original no-watermark YIQ image subblocks, according to the curved surface fitting model of setting up in advance, embed watermark YIQ image subblock described in each is carried out to surface fitting, obtain the Y component coding collection of each original no-watermark YIQ image subblock, I component coded set, Q component coded set, wherein, described Y component coding collection comprises Y component constant, described I component coded set comprises I component constant, described Q component coded set comprises Q component constant,
Wherein, get original no-watermark image X, image is transformed into YIQ color space by rgb color space, tri-components of YIQ are carried out to self-adaptation and cut apart, processing mode and segmentation threshold and watermarking algorithm step S101 are similar.The Y component coding collection, I component coded set, the Q component coded set that obtain like this three of initial carrier image embed watermark YIQ image subblocks described in each are respectively cY
i' (x, y, j), cQ
i' (x, y, j), cI
i' (x, y, j);
In step S204, calculate the value added of same position in watermark sequence, the watermark sequence of I component and the watermark sequence of Q component of described Y component, according to described also meta-rule value added, that set up in advance, restore watermark sequence;
Wherein, step S204, is specially:
Calculate the difference that Y component in all described embed watermark YIQ image subblocks embeds same position between constant and the Y component constant of corresponding original no-watermark YIQ image subblock, according to described difference and the Y component rule of setting up in advance, generate the watermark sequence of Y component;
Calculate the difference that I component in all described embed watermark YIQ image subblocks embeds same position between constant and the I component constant of corresponding original no-watermark YIQ image subblock, according to described difference and the I component judgment rule of setting up in advance, generate the watermark sequence of I component;
Calculate the difference that Q component in all described embed watermark YIQ image subblocks embeds same position between constant and the Q component constant of corresponding original no-watermark YIQ image subblock, according to described difference and the Q component judgment rule of setting up in advance, generate the watermark sequence of Q component;
Wherein, if described Y component rule be difference close to 0, in the watermark sequence of described Y component, the value of this position is 0, if difference close to Y component embed coefficient, in the watermark sequence of described Y component, the value of this position is 1;
Wherein, if described Q component rule be difference close to 0, in the watermark sequence of described Q component, the value of this position is 0, if difference embeds coefficient close to Q component, in the watermark sequence of described Q component, the value of this position is 1;
Wherein, if described I component rule be difference close to 0, in the watermark sequence of described I component, the value of this position is 0, if difference embeds coefficient close to I component, in the watermark sequence of described I component, the value of this position is 1.
In the present embodiment, for Y component, calculate the coefficient difference between sub-block and the corresponding not embed watermark sub-block of all embed watermarks
if this is poor closer to 0, illustrate that the watermark information that this sub-block embeds is 0, if this poor degree of depth α embedding closer to the watermark of Y component
1, illustrate that the watermark information that this sub-block embeds is 1.I and Q component all recover scramble watermark sequence by this principle. so just obtain three watermark sequence w
kY, w
kI, w
kQ.
In step S205, according to the watermark sequence restoring, rebuild watermark;
If described also meta-rule, for to be not less than 2, represents that the value of position described in watermark sequence is 1, if be less than 2, the rule that the value that represents position described in watermark sequence is 0.
Wherein, recover with key K ey1 the watermark sequence w that S204 obtains
kY, w
kI, w
kQ. then recovering watermark information image by scanning opposite sequence is W
kY, W
kI, W
kQif. W
kY(i, j)+W
kI(i, j)+W
kQ>=2, sentence W (i, j)=1, otherwise W (i, j)=0, final watermark of extracting is W.
According to 0 in watermark sequence and 1, draw respectively black pixel and white pixel, reduction watermark sequence.
Wherein, the present invention has adopted stable parameter replacement RGB RGB component, adopt preset-key to do random seed simultaneously and generated pseudo-random sequence, choose embed watermark YIQ image subblock according to described pseudo-random sequence and described coding, make numerical value random dispersion in watermark sequence in each embed watermark YIQ image subblock, even if therefore embed watermark image is attacked, destroy the embed watermark YIQ image subblock of part, the present invention also can be according to the watermark sequence restoring, rebuild watermark, therefore for compression of images, image cutting-out, image stretch, image filtering is attacked has very strong robustness.
A little less than can having avoided occurring the stability of RGB component on the one hand, cause being subject to after extraneous attack, the watermark of extracting in RGB component produces larger distortion, even extracts the situation less than the digital watermarking in image;
The common attack such as can effectively avoid resisting on the other hand compression, filtering, noise and cut out, thus good application potential there is.
embodiment tri-
The present embodiment has mainly been described the implementation process of data waterprint embedded method and digital watermarking extracting method, and details are as follows:
Choose the colored RGB image LENA of 512 × 512 sizes as original carrier image, the watermark that embed is the bianry image that indicates " Shenzhen University " printed words of 64 × 64 sizes.LENA image is transformed into YIQ space by rgb space, then carries out self-adaptation and cut apart, watermark embeds the stage, and the coding that three components are chosen respectively the sub-block of 4096 4 × 4 sizes from front to back carries out the embedding of watermark.Watermark information first becomes watermark sequence according to raster scanning, then carries out pseudorandom scramble.The watermark embedding depth parameter of three components is respectively 4,5,5.
With reference to figure 3, Fig. 3 is the preferably sample figure of original no-watermark image that the embodiment of the present invention provides.
With reference to figure 4, Fig. 4 is the sample figure of the original watermark that provides of the embodiment of the present invention.
With reference to figure 5, Fig. 5 is the preferably sample figure of embed watermark image that the embodiment of the present invention provides.
With reference to figure 6, Fig. 6 is the sample figure of the watermark of the extraction that provides of the embodiment of the present invention.
Wherein, Fig. 3 to Fig. 6 can find out, algorithm has very strong robustness herein.
Reference table 1, table 1 is the watermark of extracting after the JPEG compression attack of different qualities (QF) and the comparison sheet of watermark similarity.
Table 1
Wherein, table 1 is the robustness of carrying out testing algorithm by JPEG compression attack, select respectively classical 512 × 512 LENA and the colored RGB image of PEPPERS as original no-watermark image, in the comparison of the watermark of extracting after the compression of different qualities and NC value, can find out from table institute's data of giving and Fig. 3 to Fig. 6, this paper algorithm compresses and has very strong robustness general JPEG.
Reference table 2, table 2 is Filtering Attacks and the watermark of noise pollution extraction and the mapping table of NC.
Table 2
Wherein, the image that what table 2 provided is after embed watermark is through common several Filtering Attacks and add watermarking images and the NC value after salt-pepper noise that density is 0.01 is attacked, extracted, as can be seen from the table, for the less Filtering Attacks of filtering size, algorithm has very strong robustness.
With reference to figure 7, Fig. 7 is the preferably sample figure of the embed watermark image of cutting 1/4 size that the embodiment of the present invention provides.
With reference to figure 8, Fig. 8 is that the sample figure of the watermark of the embed watermark image of 1/4 size is cut in the extraction that the embodiment of the present invention provides.
With reference to figure 9, Fig. 9 is the preferably sample figure of the embed watermark image of cutting 1/2 size that the embodiment of the present invention provides.
With reference to Figure 10, Figure 10 is that the sample figure of the watermark of the embed watermark image of 1/2 size is cut in the extraction that the embodiment of the present invention provides.
Wherein,, as watermark, cut out and attack experiment with the bianry image of 64 × 64 sizes as embed watermark image with the colour picture of LENA512 × 512 size.
Wherein, embed watermark image is cut to 1/4, and then extract watermark.The similarity NC=0.9055 of Fig. 6 and original watermark;
Wherein, embed watermark image is cut to the similarity NC=0.6916 of 1/2, Fig. 8, watermark information is high-visible, is enough to explanation watermarking algorithm herein and has very strong robustness to cutting out to attack.
embodiment tetra-
With reference to Figure 11, Figure 11 is the structured flowchart of a kind of digital watermark embedding device of providing of the embodiment of the present invention, and this device can run on various terminals.For convenience of explanation, only show the part relevant to the present embodiment.
This digital watermark embedding device, comprising:
The first acquiring unit 111, be used for obtaining original no-watermark RGB image, described original no-watermark image RGB is converted to original no-watermark YIQ image, and to described original no-watermark YIQ Image Segmentation Using, be divided into multiple measure-alike and not overlapped original no-watermark YIQ image subblocks, according to the curved surface fitting model of setting up in advance, original no-watermark YIQ image subblock described in each is carried out to surface fitting, obtain the Y component coding collection of each original no-watermark YIQ image subblock, I component coded set, Q component coded set, wherein, described Y component coding collection comprises Y component constant, described I component coded set comprises I component constant, described Q component coded set comprises Q component constant,
The first generation unit 112, for converting the watermark prestoring to watermark sequence;
First chooses unit 113, for described original no-watermark YIQ image subblock is encoded, adopts preset-key to do random seed and generates pseudo-random sequence, chooses described original no-watermark YIQ image subblock according to described pseudo-random sequence and described coding;
The second generation unit 114, incorporation model, the predefined embedding coefficient set up in advance for described basis, by described Y component constant, described Q component constant and described I component constant in the described original no-watermark YIQ image subblock of choosing, add respectively the numerical value in the above watermark sequence, generate respectively Y component and embed constant, Q component embedding constant, I component embedding constant;
The 3rd generation unit 115, for the Y component coding collection of original no-watermark YIQ image subblock described in each, I component coded set, in Q component coded set, respectively the Y component generating is embedded to constant, Q component embeds constant, I component embeds constant, replace described Y component constant, described Q component embeds constant, described I component embeds constant, generate the Y component coding collection of each embed watermark YIQ image subblock, I component coded set, Q component coded set, according to the Y component coding collection of embed watermark YIQ image subblock described in each, I component coded set, Q component coded set generates the YIQ color space after embed watermark, YIQ color space after embed watermark is converted to rgb color space, generate embed watermark image,
Wherein, described embedding coefficient comprises that Y component embeds coefficient, Q component embeds coefficient, I component embedding coefficient;
Wherein, described watermark is black white image;
Wherein, the numerical value value in described watermark sequence be 0 or value be 1.
Further, in this device, also comprise:
First calls subelement, and for calling the curved surface fitting model of setting up in advance, described curved surface fitting model, is specially:
Wherein, x represents that curved surface horizontal ordinate, y represent curved surface ordinate, a, and b, c, d, f represents surface fitting parameter, f is component constant, can represent Y component constant, I component constant, Q component constant;
Input respectively three components of YIQ, generate Y component coding collection cY
i(x, y, j), I component coded set cI
i(x, y, j), Q component coded set cQ
i(x, y, j);
Wherein, i represents the sequence number of original no-watermark YIQ image subblock, and its value is 1,2 ..., j represents the sequence number of component coding lumped parameter, its value is 1,2 ... 9,6 parameters represent respectively surface fitting parameter a, b, c above, d, e, f, after coordinate and the size of three Parametric Representation no-watermarks.
Further, in this device, described the second generation unit, also comprises:
Second calls subelement, and for calling the incorporation model of setting up in advance, described incorporation model, is specially:
Wherein, code
i(x, y, 6) represent the coded set of original no-watermark YIQ image subblock, can represent Y component coding collection cY
i(x, y, j), I component coded set cI
i(x, y, j), Q component coded set cQ
i(x, y, j), x represents that curved surface horizontal ordinate, y represent curved surface ordinate, j represents the sequence number of component coding lumped parameter;
Code
ithe 6th parameter that (x, y, 6) presentation code is concentrated, namely component constant, can represent Y component constant, I component constant, Q component constant;
Wherein, code
i' (x, y, 6) represent the coded set of embed watermark image, can represent the Y component coding collection wY of embed watermark image
i(x, y, j), I component coded set wI
i(x, y, j), Q component coded set wQ
i(x, y, j), x represents that curved surface horizontal ordinate, y represent curved surface ordinate, j represents the sequence number of component coding lumped parameter;
Code
i' the 6th concentrated parameter of (x, y, 6) presentation code, namely component constant, can represent that Y component embeds constant, Q component embeds constant, I component embedding constant.
The device that the embodiment of the present invention provides can be applied in the embodiment of the method for aforementioned correspondence, and details, referring to the description of above-described embodiment, do not repeat them here.
embodiment five
With reference to Figure 12, Figure 12 is the structured flowchart of a kind of digital watermarking extraction element of providing of the embodiment of the present invention, and this device can run on various terminals.For convenience of explanation, only show the part relevant to the present embodiment.
This digital watermark embedding device, comprising:
Second acquisition unit 121, be used for obtaining embed watermark RGB image, described embed watermark RGB image is converted to embed watermark YIQ image, and to described embed watermark YIQ Image Segmentation Using, be divided into multiple measure-alike and not overlapped embed watermark YIQ image subblocks, according to the curved surface fitting model of setting up in advance, embed watermark YIQ image subblock described in each is carried out to surface fitting, obtain the Y component coding collection of embed watermark YIQ image subblock described in each, I component coded set, Q component coded set, wherein, described Y component coding collection comprises that Y component embeds constant, described I component coded set comprises that I component embeds constant, described Q component coded set comprises that Q component embeds constant,
Second chooses unit 122, for described embed watermark YIQ image subblock is encoded, adopts preset-key to do random seed and generates pseudo-random sequence, chooses described embed watermark YIQ image subblock according to described pseudo-random sequence and described coding;
The 4th generation unit 123, the described Y component embedding constant, described I component embedding constant and the described Q component that are used for the described embed watermark YIQ image subblock of choosing according to each embed Y component embedding constant, described I component embedding constant and the described Q component embedding constant of the original no-watermark YIQ image subblock of constant and correspondence, generate watermark sequence, the watermark sequence of I component and the watermark sequence of Q component of described Y component;
Reduction unit 124, for calculating watermark sequence, the watermark sequence of I component and the watermark sequence same position of Q component value added of described Y component, according to described also meta-rule value added, that set up in advance, restores watermark sequence;
Reconstruction unit 125, for according to the watermark sequence restoring, rebuilds watermark;
If described also meta-rule, for to be not less than 2, represents that the value of position described in watermark sequence is 1, if be less than 2, the rule that the value that represents position described in watermark sequence is 0.
The device that the embodiment of the present invention provides can be applied in the embodiment of the method for aforementioned correspondence, and details, referring to the description of above-described embodiment, do not repeat them here.
embodiment six
A kind of watermaking system, comprises above-mentioned digital watermark embedding device and above-mentioned digital watermarking extraction element.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computing machine, hard disk or CD etc., comprise that some instructions are in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.