A kind of novel fidelity robust digital watermark method
Technical field
The invention belongs to digital watermark technology field, relate in particular to a kind of novel fidelity robust digital watermark method.
Background technology
Aspect raising digital watermarking fidelity and robustness, for fidelity, be generally to find vision in raw data by optimized algorithm to destroy minimum watermark embedding scheme at present; For robustness, be also to find suitable frequency band embed watermark by optimized algorithm, make it time under attack, still can not lose watermark information.Fidelity and robustness are two factors of restriction mutually, both can not give up, and need to seek the unification between them, make watermaking system reach optimum under the constraint of this unified point.
Existing digital watermark technology generally improves fidelity by optimized algorithm, but adopt optimized algorithm to improve to consider aspect robustness less.
In addition, choosing of Digital Watermark Scheme parameter is the problem of finding optimum solution or suboptimal solution in a very large solution space, and has interaction relationship consumingly between each factor of solution space.For this complicated optimization problem, common optimization method can not meet the demands.In recent years, a lot of researchists use genetic algorithm to solve the Parametric optimization problem in this watermaking system, have reached good effect.Genetic algorithm is a kind of optimisation technique based on outstanding candidate result is selected and recombinated, but the chain problem that it exists tectonic block to destroy, namely for existing and influence each other while being related between each factor of solution space, genetic manipulation can destroy the good pattern having found, thereby can not obtain the optimum results of global optimum.
Summary of the invention
The object of the present invention is to provide a kind of novel fidelity robust digital watermark method, be intended to solve existing digital watermark technology and generally improve fidelity by optimized algorithm, but consider less problem adopting optimized algorithm to improve aspect robustness, guaranteeing under digital watermarking fidelity precondition, utilize evolutionary optimization algorithm to be optimized watermark robustness, consider fidelity and robustness, improve the quality of digital watermarking.
The present invention is achieved in that a kind of novel fidelity robust digital watermark method is to embed algorithm as main contents, and detailed process is as follows:
Step 1, to cut apart original image be 8 × 8 sub-blocks that do not cover mutually; To the image of a width N*N, carry out 8*8 and divide block operations, obtain the individual fritter of (N/8) * (N/8);
Step 2, each sub-block is carried out to discrete cosine transform;
Discrete cosine transform formula is as follows:
Wherein, f (x, y) is the original image of size for N*N,
Step 3, turn to target with the watermark information integrity degree maximum extracting in the moisture impression shape under fire, be greater than under 25dB constraint with Y-PSNR (PSNR), watermark weighted value to each sub-block is optimized, and the optimum solution obtaining embeds scheme as final watermark;
Concrete grammar is as follows:
Formula (2) is watermark embedding criterion, wherein W={w (i) } be watermarking images, X={x
0(i) } be original image, X
w={ x
w(i) } for containing watermarking images, H={h (i) } be watermark weighted value;
x
w(i)=x
0(i)×(1+h(i)W(i)) (2)
Formula (3) represents watermark information integrity degree, and wherein W represents original watermark, and We represents the watermark extracting, and Nw is watermark size;
Formula (4) represents Y-PSNR, and wherein I represents original image, and Iw represents that N is original image size containing watermarking images;
The Optimized model that watermark embeds scheme is:
Optimized variable: watermark weighted value H
Objective function: f
int(W, W
e)
Constraint condition: s.t.f
pSNR(I, I
w) > 25.
Further, the algorithm model of described a kind of novel fidelity robust digital watermark method is:
x
w(i)=x
0(i)×(1+h(i)W(i)) (1)
Formula (1) is watermark embedding criterion, wherein W={w (i) } be watermarking images, X={x
0(i) } be original image, X
w={ xw (i) } is for containing watermarking images, H={h (i) } be watermark weighted value.
Formula (2) represents watermark information integrity degree, and wherein W represents original watermark, and We represents the watermark extracting, and Nw is watermark size.
Formula (3) represents Y-PSNR, and wherein I represents original image, and Iw represents that N is original image size containing watermarking images.
The Optimized model that watermark embeds scheme is:
Optimized variable: watermark weighted value H
Objective function: f
int(W, W
e)
Constraint condition: s.t.f
pSNR(I, I
w) > 25.
Further, described novel fidelity robust digital watermark method is used the Estimation of Distribution Algorithm (PFEDA based on sequential important sampling particle filter and Cholesky decomposition
2) Optimized model is optimized, comprise the sampling algorithm that sample distribution is estimated, correlation of variables is not considered in neighborhood sampling, sampling algorithm, the PFEDA that correlation of variables is considered in field sampling
2.
Further, the concrete steps that described sample distribution is estimated are as follows:
Step 1, preferably concentrate each sample as moment of particle filter t=0, i.e. the initial prior distribution particle obtaining of sampling, and individual particle weights is set to 1/m,
Step 2, t=1, with formula (4) renewal
i=1,2,3 ..., m, utilizes formula (5) normalized weight,
for the probability distribution of sample obedience.
Further, the sampling of described neighborhood does not consider that the concrete steps of sampling algorithm of correlation of variables are as follows:
In step 1, the distribution that represents at cum rights particle, put back to use roulette method according to particle weight sampling determine a particle;
Step 2, the selected each component value of particle are as average μ
i, utilize formula (6) to calculate the σ that each component is corresponding
i;
Step 3, from N(μ
i, σ
i), i=1,2 ..., d each component of sampling;
Step 4, a combination component obtain a sample;
Step 5, algorithm finish.
Further, the concrete steps of the sampling algorithm of described field sampling consideration correlation of variables are as follows:
In step 1, the distribution that represents at cum rights particle, put back to use roulette method according to particle weight sampling determine a particle;
Step 2, utilize formula (7) calculate k, go Selected Particles as mean vector μ;
The covariance matrix ∑ of step 3, calculating selected works, if ∑ is null matrix, uses neighborhood sampling not consider that the sampling algorithm of correlation of variables produces sample, and goes to step seven, otherwise continue to carry out step below;
Step 4, use Cholesky decomposition method are obtained A, make k ∑=AA
t;
Step 5, from N(0,1) sampling d separate standards normal variate, y
1, y
2...., y
d;
The each component of sample that step 6, sampling obtain is
(j=1,2 ..., d), d is dimension;
Step 7, algorithm finishes.
Further, the concrete steps of described PFEDA are as follows:
Step 1, initialization first generation colony;
Step 2, to i=1,2 ..., n
p, sampling
wherein p(x) for being uniformly distributed, n
pfor group size;
Step 3, calculating sample adaptive value;
Step 4, block the preferred sample set that selected population adaptive value is good;
Step 5, the probability distribution that uses sample distribution estimation preferably to collect;
Step 6, the historical optimum of reservation, as a sample for population of future generation;
The sampling algorithm sampling n of correlation of variables is considered in step 7, the sampling of execution field
p-1inferiorly obtain population of future generation;
A sample adaptive value in step 8, calculating population;
If step 9, algorithm reach termination condition, finish algorithm, otherwise, go to step four.
effect gathers
The present invention is guaranteeing under digital watermarking fidelity precondition, utilize evolutionary optimization algorithm to be optimized watermark robustness, consider fidelity and robustness, improve the quality of digital watermarking, image after embed watermark is difficult to discover image deterioration compared with original image, and to compression, filtering, the attacks such as convergent-divergent rotational shear have good robustness.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embedding algorithm that provides of the embodiment of the present invention.
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.
As shown in Figure 1, the present invention is achieved in that a kind of novel fidelity robust digital watermark method is to embed algorithm as main contents, and detailed process is as follows:
Step 1: cutting apart original image is 8 × 8 sub-blocks that do not cover mutually; To the image of a width N*N, carry out 8*8 and divide block operations, obtain the individual fritter of (N/8) * (N/8);
Step 2: each sub-block is carried out to discrete cosine transform;
Discrete cosine transform formula is as follows:
Wherein, f (x, y) is the original image of size for N*N,
Step 3: turn to target with the watermark information integrity degree maximum extracting in the moisture impression shape under fire, be greater than under 25dB constraint with Y-PSNR (PSNR), watermark weighted value to each sub-block is optimized, and the optimum solution obtaining embeds scheme as final watermark;
Concrete grammar is as follows:
Formula (2) is watermark embedding criterion, wherein W={w (i) } be watermarking images, X={x
0(i) } be original image, X
w={ x
w(i) } for containing watermarking images, H={h (i) } be watermark weighted value;
x
w(i)=x
0(i)×(1+h(i)W(i)) (2)
Formula (3) represents watermark information integrity degree, and wherein W represents original watermark, and We represents the watermark extracting, and Nw is watermark size;
Formula (4) represents Y-PSNR, and wherein I represents original image, and Iw represents that N is original image size containing watermarking images;
The Optimized model that watermark embeds scheme is:
Optimized variable: watermark weighted value H
Objective function: f
int(W, W
e)
Constraint condition: s.t.f
pSNR(I, I
w) > 25.
Further, the algorithm model of described a kind of novel fidelity robust digital watermark method is:
x
w(i)=x
0(i)×(1+h(i)W(i)) (1)
Formula (1) is watermark embedding criterion, wherein W={W (i) } be watermarking images, X={x
0(i) } be original image, X
w={ x
w(i) } for containing watermarking images, H={h (i) } be watermark weighted value.
Formula (2) represents watermark information integrity degree, and wherein W represents original watermark, and We represents the watermark extracting, and Nw is watermark size.
Formula (3) represents Y-PSNR, and wherein I represents original image, and Iw represents that N is original image size containing watermarking images.
Further, described novel fidelity robust digital watermark method is used the Estimation of Distribution Algorithm (PFEDA based on sequential important sampling particle filter and Cholesky decomposition
2) Optimized model is optimized, comprise the sampling algorithm that sample distribution is estimated, correlation of variables is not considered in neighborhood sampling, sampling algorithm, the PFEDA that correlation of variables is considered in field sampling
2;
The Optimized model that watermark embeds scheme is:
Optimized variable: watermark weighted value H
Objective function: f
int(W, W
e)
Constraint condition: s.t.f
pSNR(I, I
w) > 25.
Further, the concrete steps that described sample distribution is estimated are as follows:
Step 1, preferably concentrate each sample as moment of particle filter t=0, i.e. the initial prior distribution particle obtaining of sampling, and individual particle weights is set to 1/m,
Step 2, t=1, with formula (4) renewal
i=1,2,3 ..., m, utilizes formula (5) normalized weight,
for the probability distribution of sample obedience.
Further, the sampling of described neighborhood does not consider that the concrete steps of sampling algorithm of correlation of variables are as follows:
In step 1, the distribution that represents at cum rights particle, put back to use roulette method according to particle weight sampling determine a particle;
Step 2, the selected each component value of particle are as average μ
i, utilize formula (6) to calculate the σ that each component is corresponding
i;
Step 3, from N(μ
i, σ
i), i=1,2 ..., d each component of sampling;
Step 4, a combination component obtain a sample;
Step 5, algorithm finish.
Further, the concrete steps of the sampling algorithm of described field sampling consideration correlation of variables are as follows:
In step 1, the distribution that represents at cum rights particle, put back to use roulette method according to particle weight sampling determine a particle;
Step 2, utilize formula (7) calculate k, go Selected Particles as mean vector μ;
The covariance matrix ∑ of step 3, calculating selected works, if ∑ is null matrix, uses neighborhood sampling not consider that the sampling algorithm of correlation of variables produces sample, and goes to step seven, otherwise continue to carry out step below;
Step 4, use Cholesky decomposition method are obtained A, make k ∑=AA
t;
Step 5, from N(0,1) sampling d separate standards normal variate, y
1, y
2...., y
d;
The each component of sample that step 6, sampling obtain is
(j=1,2 ..., d), d is dimension;
Step 7, algorithm finishes.
Further, the concrete steps of described PFEDA are as follows:
Step 1, initialization first generation colony;
Step 2, to i=1,2 ..., n
p, sampling
wherein p(x) for being uniformly distributed, n
pfor group size;
Step 3, calculating sample adaptive value;
Step 4, block the preferred sample set that selected population adaptive value is good;
Step 5, the probability distribution that uses sample distribution estimation preferably to collect;
Step 6, the historical optimum of reservation, as a sample for population of future generation;
The sampling algorithm sampling n of correlation of variables is considered in step 7, the sampling of execution field
p-1inferiorly obtain population of future generation;
A sample adaptive value in step 8, calculating population;
If step 9, algorithm reach termination condition, finish algorithm, otherwise, go to step four.
By reference to the accompanying drawings the specific embodiment of the present invention is described although above-mentioned; but not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that performing creative labour can make or distortion still within protection scope of the present invention.