CN102147912B - Adaptive difference expansion-based reversible image watermarking method - Google Patents

Adaptive difference expansion-based reversible image watermarking method Download PDF

Info

Publication number
CN102147912B
CN102147912B CN201110078970XA CN201110078970A CN102147912B CN 102147912 B CN102147912 B CN 102147912B CN 201110078970X A CN201110078970X A CN 201110078970XA CN 201110078970 A CN201110078970 A CN 201110078970A CN 102147912 B CN102147912 B CN 102147912B
Authority
CN
China
Prior art keywords
watermark
image
pixel
difference
embedding
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201110078970XA
Other languages
Chinese (zh)
Other versions
CN102147912A (en
Inventor
王静远
王卓
陈真勇
范围
罗立新
熊璋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Air Technology Co., Ltd.
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201110078970XA priority Critical patent/CN102147912B/en
Publication of CN102147912A publication Critical patent/CN102147912A/en
Application granted granted Critical
Publication of CN102147912B publication Critical patent/CN102147912B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an adaptive difference expansion-based reversible image watermarking method, which comprises a watermark embedding process, a watermark extraction process and an image recovery process; before watermarks are embedded, the original image needs to be pretreated, and the pretreatment comprises alternated division, difference calculation, image complexity calculation and parameter setting; in the embedding process, the corresponding watermarks are embedded by using adaptive expansion; additional information is embedded, and the watermark data and the additional information are mixed and embedded under a specific condition; in the extraction process, the additional information is first extracted, and the difference is calculated; the inverse operation of the adaptive difference expansion is performed, the watermark data are extracted, and the original difference is reduced; and finally, the image is reduced through the reduced difference. The method has reversibility, and can provide higher embedding capacity and better image quality, particularly under the condition of many embedded watermark data.

Description

A kind of reversible image watermark method based on the self-adaptation difference expansion
Technical field
The present invention relates to a kind of embedding and extracting method of reversible image watermark, particularly a kind of reversible image watermark method based on the self-adaptation difference expansion.
Background technology
The numerical information revolution has brought deep variation to the mankind's society and life, and various Digital Medias works have brought new challenge when enriching people's lives.The digital multimedia works copy and distribute the cheap of cost, make digital piracy very general, so the safety problems such as digital copyright protecting and content integrity checking become problem in the urgent need to address.Digital watermarking in digital picture, text, video or sound signal, has become a kind of effective means of protecting digital media content safety by some Information hiding.In most of existing digital watermark methods, host's media are because the embedding of watermark signal can and can't revert to embed watermark state before by permanent change.Although the distortion that watermark is introduced is not easy to be discovered by people's sensory perceptual system usually, but in some require high special dimension to the data fidelity, as military image, medical image, satellite remote sensing images or legal argument image etc., any small distortion is not allowed to.Therefore the application of digital watermark technology in these fields is limited by very large.In order to address this problem, people have proposed the concept of reversible digital watermarking, and this watermarking project, in embed watermark information protection digital publishing rights, can guarantee the virgin state when the extraction end is not embedded into watermark by host's media precise restoration to it.Since Barton in 1997 proposes the concept of reversible water mark for the first time, existing scholar proposes some reversible water mark algorithms in recent years.Existing reversible water mark algorithm consists essentially of two kinds of modes, in spatial domain, embeds and embeds in frequency domain.
Embed reversible water mark in spatial domain, because realization is relatively simple, embedding capacity is larger, thereby becomes the focus of nearest research.Invisible reversible water mark in spatial domain mainly is divided three classes: based on compression of images, based on difference expansion with based on histogram modification.
Algorithm based on compression of images generally adopts lossless compression algorithm that image is compressed with vacating space and carrys out embed watermark in the insensitive part of human eye, embedding capacity depends on compressibility, embedding capacity is generally little, and efficient compression of images computing complexity, so this class watermark computation complexity is higher; Reversible image algorithm based on histogram modification is the statistical property of utilizing image pixel, carries out histogram and moves and obtain embedded space; Algorithm based on difference expansion is to utilize picture material to have correlativity, neighbor has more close value usually, therefore the difference of two neighbors is less, by the difference of extending neighboring pixel, the data of two can be embedded and wherein and not causes obvious distortion.
Based on difference expansion (Difference Expansion, DE) reversible image watermark, the earliest by Tian 2003, propose for the first time (referring to J.Tian.Reversible data embedding using a difference expansion[J] .IEEE Trans.Circuits Systems and Video Technology.2003,13 (8): 890-896).Difference expansion, also can be regarded as a kind of integer wavelet transformation, the HFS of its expansion wavelet transformation, and watermark information is embedded wherein.DE is also sometimes referred to as the displacement expansion, because the process of its embed watermark can be regarded the process of displacement as.The binary form of supposing difference d is shown (d N-1d N-2... d 1d 0) 2, the binary form of the difference d ' after embed watermark is shown (d N-1d N-2... d 1d 0B) 2.This is equivalent to d, to one of left dislocation, then watermark b to be embedded in the lowest order of vacating.Alattar (A.M.Alattar.Reversible watermark using difference expansion oftriplets[C] .Proc.IEEE ICIP.2003:501-504; A.M.Alattar.Reversible watermarkusing difference expansion of quads[C] .Proc.ICASSP.2004:377-380) thought of Tian is applied to three pixels and four vectors that pixel forms.Such benefit one is to strengthen extendible difference number, the 2nd, reduced the shared space of Location Map.
In a word, in existing method, the capacity of embedding is less, and, when embedding large capacity watermark, can't guarantee the quality of image, therefore, the present invention utilizes the complexity difference of image different piece, and zones of different is carried out to the self-adaptation embedding, to reach larger embedding capacity and picture quality preferably.
Summary of the invention
The technical problem to be solved in the present invention is: overcome the deficiencies in the prior art, a kind of reversible image watermark based on the self-adaptation difference expansion is provided, the method, in the situation that the embed watermark data are more, can provide larger embedding capacity and better picture quality.
The technical solution adopted for the present invention to solve the technical problems: a kind of reversible image watermark based on the self-adaptation difference expansion comprises watermark embed process, watermark extraction process and image recovery process; Before watermark embeds, first need original image is carried out to pre-service, comprise alternately division, difference calculating, computed image complexity parameters; In telescopiny, use the self-adaptation expansion to carry out corresponding watermark embedding; Then will embed additional information, watermark data meeting and additional information are mixed embedding under specific circumstances; In leaching process, at first carry out the additional information extraction, difference is calculated; Then carry out the inverse operation of self-adaptation difference expansion, carry out the watermark data extraction and reduce original difference; Finally by the difference after reduction, carry out the reduction of image;
Preprocessing process is:
(1) alternately divide.Original image is replaced to division, obtain two disjoint set of pixels S 1And S 2, and be each pixel structure context in image, so that the realization that the calculating of image complexity afterwards and pixel are estimated.
(2) difference is calculated.Use the context constructed in preprocessing process step (1), the estimated value of each pixel in computed image, then by with original pixels relatively ask difference, this step can be divided into successively two parts: first at first, utilize S 1In pixel estimate S 2In pixel, S now 1For original pixel value; Then second portion, utilize S 2In pixel estimate S 1In pixel, S now 2For the pixel value after embed watermark.
(3) parameter setting.This step mainly comprises the parameter setting of two aspects, at first for original image, utilizes the statistical property of generalized Gaussian distribution, and the feature that calculates image complexity is described α; Then, according to the embed watermark data the number, determine two parameter c and the T of self-adaptation difference expansion, last, when user's demand can not be satisfied, can also judge whether that report embeds unsuccessfully.
In watermark embed process, it is to expand by self-adaptation the process that user data is embedded to carrier image after parameter is determined that watermark data embeds.In specific situation, watermark data can and additional information mixing and be embedded into, at this moment just needing assurance watermark data and additional information to distinguish can be synchronous.Additional information embeds.After user data (or partial information) is embedded into, some additional informations are generally arranged, comprise parameter c here, the position table of T and recording pixel flooding information, also need to adopt certain strategy that they are embedded in carrier image thus.It is necessary that these additional informations start watermark extracting often, thereby need to guarantee that it can be calculated at first when watermark extracting.As shown in Figure 2, it is replaced additional information mode with LSB (least significant bit (LSB)) is embedded in image edge pixels a simple strategy.
The extraction of the reversible image watermark based on the self-adaptation difference expansion and image restoring process are:
1) additional information is extracted.At first this requirements of process obtains starting the necessary additional information of watermark extracting, two parameter c and the T that comprise the self-adaptation difference expansion, the image complexity parameter alpha, in addition, if watermark extracting starts, it also will obtain carrying out the additional information that next step watermark extracting instructed is position table information.For example, need to know whether next difference was expanded, or need to know which kind of situation is identifying the end of all leaching process.
2) difference is calculated.It is identical that this process and difference in watermark embed process are calculated, and will accomplish that difference when embedding is calculated and accomplish to mate fully.Here, be mainly that the division of pixel is consistent, it should be noted that watermark is first S while embedding 2Rear S 1, and be first S while extracting 1Rear S 2.
3) watermark data extracts.This step is mainly to carry out the inverse operation of self-adaptation difference expansion to extract data the original difference of reducing.When extracting operation, need the information in the reference position table, because some pixel is because overflow problem does not carry out the watermark embedding.
4) image restoring.This step need to revert to original state by current pixel by difference and the reference environment after reduction.
The advantage that the present invention compared with prior art had is:
(1) the present invention obtains the different complexity of image each several part by generalized Gaussian distribution, the watermark of carrying out adaptive difference expansion embeds and extracts, carry out a small amount of embedding in the zone of image complexity, the embedding of mass data is carried out in the zone mild at image, compare classic method, obviously increased the embedding capacity of watermark and improved the visual quality of image.
(2) the present invention due to complete structure context, therefore when identical PSNR, than conventional method, improved capacity distortion ratio.
(3) the present invention, by the image plateau region, embedding more watermark, when the embed watermark data are more, can obtain better effect.
The accompanying drawing explanation
The reversible image watermark method schematic diagram that Fig. 1 is the self-adaptation difference expansion in the present invention;
Fig. 2 is that in the present invention, additional information embeds schematic diagram;
Fig. 3 is watermark context model schematic diagram in the present invention;
Fig. 4 be in the present invention watermarking images alternately divide schematic diagram;
Fig. 5 is horizontal and vertical direction context schematic diagram in the present invention.
Embodiment
The present invention is at first based on the Gaussian statistics characteristic, obtain image complexity, then proposing a kind of new pixel division alternately divides and obtains the context estimation model, and then obtain the estimation difference, finally utilize existing image complexity and estimation difference to carry out the self-adaptation difference expansion, realize embedding and the extraction of watermark.
As shown in Figure 1, overall flow of the present invention comprises watermark embedded part and watermark extracting part two large divisions.The watermark embedded part comprises preprocessing process and watermark embed process; Watermark extracting partly comprises extracts preprocessing process and watermark extraction process.Before watermark embeds, first need original image is carried out to pre-service, preprocessing process comprises alternately division, difference calculating, computed image complexity parameters, as shown in dotted line frame in upper left side in Fig. 1; In watermark embed process, use the self-adaptation expansion to carry out corresponding watermark embedding, then will embed additional information, in lower dashed line frame as left as Fig. 1 as shown in.In extracting preprocessing process, at first carry out the additional information extraction, difference is calculated, and then carries out the inverse operation of self-adaptation difference expansion, carries out the watermark data extraction and reduces original difference, as shown in dotted line frame in upper right side in Fig. 1; Finally in watermark extraction process, by the difference after reduction, carry out the extraction of watermark and the reduction of image, as shown in dotted line frame in right side in Fig. 1.Below introduce in detail respectively above-mentioned Four processes, preprocessing process and watermark embed process, extract preprocessing process and watermark extraction process.
1. as shown in Figure 1, preprocessing process specific implementation step of the present invention is as follows:
Step 1: alternately divide.For adaptive difference expansion, need build context model by all pixels around current pixel.Consider in eight pixels around current pixel, with current pixel immediate be laterally with four pixels longitudinally, therefore next hereinafter textural by these four pixels, as shown in Figure 3.Make original image be
L={x (i, j) | 1≤i≤H, 1≤j≤W}, i, j is pixel coordinate position (1)
Wherein H and W distinguish the height and width of presentation video.In order to give each pixel structure context, at first all pixels in original image are divided into to two disjoint set of pixels S 1And S 2, alternately divide, as shown in Figure 4, set of pixels by
S 1 = { x ( i , j ) | ( i mod 2 ) ⊕ ( j mod 2 ) = 0 } S 2 = { x ( i , j ) | ( i mod 2 ) ⊕ ( j mod 2 ) = 1 } - - - ( 2 )
Mean respectively, 1≤i≤H1≤j≤W wherein, mod is the remainder number,
Figure BDA0000052990430000051
For XOR, because the pixel of image border (showing with grey in Fig. 4) does not have complete context, so the present invention does not carry out difference expansion to it.
Step 2: difference is calculated.For the context built, calculate the estimated value of each pixel in image, then by with original pixels relatively obtain its difference.This step can be divided into successively two parts, and at first first, utilize S 1In pixel estimate S 2In pixel, S now 1For original pixel value; Then second portion, utilize S 2In pixel estimate S 1In pixel, S now 2For the pixel value after embed watermark.
Specific algorithm is divided into four neighbor pixels level and the vertical direction of quadrature, and as shown in Figure 5, neighbor pixel is respectively x u, x d, x l, x r, calculate respectively the mean value of two pixels of each direction, and the pixel x that gives the different weights Yi Dui center of these two mean values is estimated.The mean value of both direction is calculated by formula (3).
x v = ( x u + x d ) 2 x h = ( x l + x r ) 2 - - - ( 3 )
Make vertical direction mean value x vWith horizontal direction mean value x hWeights be w v, w h,
Figure BDA0000052990430000053
Account form be
x ^ = w v · x v + w h · x h w v + w h = 1 - - - ( 4 )
Make σ (h) and σ (v) be respectively the mean square deviation of level and vertical direction, press formula
σ ( v ) = 1 3 Σ k = 1 3 ( S v ( k ) - x avg ) 2 σ ( h ) = 1 3 Σ k = 1 3 ( S h ( k ) - x avg ) 2 - - - ( 5 )
Calculated, wherein x avgMean value for adjacent pixel
x avg = x u + x d + x l + x r 4 - - - ( 6 )
And order S vAnd S hFor the pixel set:
S v = { x u , x v , x d } S h = { x l , x h , x r } - - - ( 7 )
Weight w vAnd w hComputing method be
w v = σ ( h ) σ ( h ) + σ ( v ) , w h = 1 - w v - - - ( 8 )
When the estimated value that obtains pixel
Figure BDA0000052990430000062
After, can basis
e = x - x ^ - - - ( 9 )
Calculate the evaluated error of x.S 1And S 2The set E that forms of evaluated error 1And E 2For
E 1 = { e ( i , j ) | x ( i , j ) ∈ S 1 } E 2 = { e ( i , j ) | x ( i , j ) ∈ S 2 } - - - ( 10 )
The evaluated error that wherein e (i, j) is the pixel x (i, j) that calculates by formula (9).These two evaluated error set will be used to the embed watermark data.
Step 3: parameter setting.This step mainly comprises the parameter setting of two aspects, at first calculates image complexity; Then, according to the embed watermark data the number, determine two parameter c and the T of self-adaptation difference expansion, last, when user's demand can not be satisfied, can also judge whether that report embeds unsuccessfully.
The estimation of image complexity: utilize the form parameter of density function of the generalized Gaussian distribution (GGD) in wavelet field as the parameter of measurement of image complexity, the estimation of image complexity is converted to the estimation of the form parameter of pair-density function thus, by curve-fitting method, estimated, and order finally to obtain estimated value be image complexity α.
For generalized Gaussian distribution, generally consider the situation of Gaussian distribution average u=0.If x=is (x 1, x 2..., x n) be the sample from the overall X of GGD of average u=0, because GGD is symmetrical, its first moment about the origin is zero, therefore can adopt absolute moment to be calculated.
When u=0, the single order absolute moment is
m 1 = E { | x | }
= ∫ - ∞ + ∞ | x | α 2 βΓ ( 1 / α ) e - | x β | α dx - - - ( 11 )
= α βΓ ( 1 / α ) ∫ 0 + ∞ | x | e - | x β | α dx
Order
Figure BDA0000052990430000068
Obtain x=β y 1/ α,
Figure BDA0000052990430000069
The above-mentioned formula of substitution obtains
α βΓ ( 1 / α ) ∫ 0 + ∞ y 2 a - 1 e - y dy = β Γ ( 2 / α ) Γ ( 1 / α ) - - - ( 12 )
Again will Substitution obtains
m 1 = E { | x | } = σ Γ ( 2 / α ) Γ ( 1 / α ) Γ ( 3 / α ) - - - ( 13 )
In like manner can obtain second moment is
m 2=E{|x 2|}=σ 2 (14)
And
Figure BDA0000052990430000072
Note
R ( α ) = E 2 { | X | } E { X 2 } = Γ 2 ( 2 / α ) Γ ( 1 / α ) Γ ( 3 / α ) = m 1 2 m 2 - - - ( 15 )
R (α) is called to the Generalized Gaussian parameter ratio function; And m 1, m 2Estimation
Figure BDA0000052990430000074
Can be obtained by following formula
m ^ 1 = 1 n Σ i = 1 n | x i | , m ^ 2 = 1 n Σ i = 1 n x i 2 - - - ( 16 )
Thereby form parameter α is estimated as
α ^ = R - 1 ( m ^ 1 2 m ^ 2 ) - - - ( 17 )
Wherein
R ( x ) = Γ 2 ( 2 / x ) Γ ( 1 / x ) Γ ( 3 / x ) - - - ( 18 )
The inverse function R of R (x) -1(x) analytic expression is difficult to try to achieve, therefore adopt the method for numerical fitting.
Hyperbolic function matching original function R (x) sets up model of fit y=a+b/x, adopts least square fitting, obtains antiderivative approximating function and is
y = 0.77127 - 0.26961 x
Thereby the original function of approximating function is
R - 1 ( x ) = - 0.26961 x - 0.77127 - - - ( 19 )
Therefore model of fit is
Figure BDA00000529904300000711
Utilize least square method to try to achieve contrafunctional fitting function to be
R - 1 ( x ) = 0.2718 0.7697 - x - 0.1247 - - - ( 20 )
In sum, obtain the estimation of parameter alpha by formula (17) and (20), and then obtained image complexity.
Determine two parameter constant c and the embedding capacity T of self-adaptation difference expansion, as shown in Figure 5, the steady degree in zone is passed through variances sigma 2Obtain,
σ 2 = 1 4 Σ k = 1 4 ( x i ( k ) - x avg ) 2 x = { x l , x r , x u , x d } - - - ( 21 )
Wherein
x avg = x u + x d + x l + x r 4 - - - ( 22 )
Thus, the radix of difference expansion can pass through
Figure BDA0000052990430000083
Wherein, c is constant, the complexity that α is carrier image, and T is threshold value, c and T are used for the embedding capacity of watermark of control chart picture.In order to prevent that pixel from overflowing seriousization, need to guarantee 2≤T≤10, for constant c, in general, its value is larger, and the watermark of embedding is more but distortion image is more serious, and vice versa.
2. watermark embed process
In watermark embed process, by image complexity α, self-adaptation spreading parameter c and T, determine self-adaptation expansion radix b Ij.Suppose w mean length be l treat the water mark inlaying data, in order to express easily, make w=w 1, w 2..., w n, wherein n=l/8 and w 1, i=1,2 ... n comprises 8 bit binary data.Next provide its detailed performing step:
(2.1) determine self-adaptation expansion radix b Ij, by image complexity α, and self-adaptation spreading parameter c and T, by formula, calculate
Figure BDA0000052990430000084
Determine self-adaptation expansion radix b Ij, σ wherein 2For variance, for weighing the steady degree in zone;
(2.2) suppose that w means the scale-of-two watermark data for the treatment of embedding that length is l, the piece that w is divided into to n 8, make w=w 1, w 2..., w n, wherein n=l/8 order w t, t=1,2 ... n comprises 8 bit binary data;
(2.3) read watermark data w t, and be converted into decimal system w Dt, in order to judge w DtWhether embed completely, provide variable u and identified, initialization u is 1;
(2.4) scanning carrier image, for concrete pixel x Ij, known estimated value x Ij', self-adaptation expansion radix b Ij, estimate difference e Ij, pass through r I, j=w D, rMod b IjObtain final embedding content r herein I, j, then utilize formula
e ′ = e × b + r , b ≠ 1 e , b = 1 - - - ( 24 )
Carry out the self-adaptation embedding, thereby obtain embedding rear pixel value x Ij";
In self-adaptation telescopiny in (2.4), if x ">255 or x "<0, the watermark of skipping this pixel embeds, and utilizes position and the pixel flooding information of position this pixel of table record;
(2.5), after step (2.4) has embedded, upgrade
Figure BDA0000052990430000092
U=u * b IjIf u>255, read in next watermark data w T+1Juxtaposition u=1, proceed to step (2.3) and embed the next bit watermark; Otherwise proceed to step (2.4) and continue w D, tEmbedding;
(2.6) carry out the additional information embedding, described additional information comprises parameter c, T, and parameter alpha is the position table of recording pixel flooding information in image complexity and telescopiny (2.5); So far watermark embed process finishes, and obtains embedding rear image;
After watermark has embedded, carry out the additional information telescopiny.Additional information comprises parameter c, the position table of T and recording pixel flooding information.These additional informations are that the startup watermark extracting is necessary, thereby need to guarantee that it can be calculated at first when watermark extracting.As shown in Figure 2, the mode that additional information is replaced with LSB is embedded in image edge pixels a simple strategy.So far watermark embeds and finishes, and obtains embedding rear image.
3. watermark extracting partly comprises the extraction preprocessing process.
Extract preprocessing process, at first extract additional information, this flow process is the inverse process that additional information embeds.
(3.1) at first carry out the additional information leaching process, this process is the inverse process that additional information embeds, obtain two parameter c and the T of self-adaptation difference expansion, image complexity parameter alpha and position table, if for example use being embedded in image edge pixels that additional information is reversible of LSB (least significant bit (LSB)) mode, can use the watermark extracting algorithm of LSB, additional information is extracted from image edge pixels;
(3.2) then by division identical in the preprocessing process embedded with watermark, carry out difference calculating, this process is calculated identical with the difference in preprocessing process (2.1), and accomplish that difference when embedding is calculated and accomplish to mate fully, the division that is pixel is consistent, because watermark embeds time difference value, calculating is first set of computations S 2Difference, then use S 2Result calculate S 1Difference, so be first to calculate S while extracting 1Difference, then calculate S 2Difference;
4. watermark extraction process
Watermark extraction process is watermark extracting and image restoring process: the extraction by additional information has obtained image complexity α, self-adaptation spreading parameter c, T and position table, and, after utilizing contextual structure to obtain the estimation difference of embedded images, next provide its detailed performing step:
Described watermark extraction process, be the inverse process of telescopiny, and concrete steps are as follows:
(4.1) initialization marking variable u is 1, because the embedding of watermark is not carried out in the zone, image border, so to the zone of i=1 or j=1, image pixel remains unchanged, direct-reduction;
(4.2) scanning embedded images, for concrete pixel x ", known estimated value x ', self-adaptation expansion radix b Ij, the estimation difference e ' Ij, pass through formula
r ij=e ij′%b ij,b ij≠1
Obtain embed watermark r herein I, j, then utilize formula
Figure BDA0000052990430000101
Recover original difference e Ij, and then obtain the image original pixels;
In leaching process in (4.2), if recorded this position in the table of position, skip the watermark extracting of this position, keep pixel constant simultaneously.
(4.3) after step (4.2) has been extracted, by r I, j, b IjPut into respectively set R t, B tIn, r I, j, b IjIn i, j is coordinate, it is at R t, B tIn position be the order of putting into, and upgrade u=u * b Ij
If u>255, the size that note is now gathered R is m, passes through formula
w t ( i ) = w t ( i + 1 ) &times; B ( i ) + R ( i ) , 2 &le; i < m 1 , i = m
Complete watermark w t=w t(1), again put u=1, carry out step (4.2) and extract next bit watermark w T+1If step (4.2) is proceeded in u≤255 item.
The content be not described in detail in instructions of the present invention belongs to the known prior art of professional and technical personnel in the field.

Claims (3)

1. the reversible image watermark method based on the self-adaptation difference expansion, it is characterized in that: comprise watermark embedded part and watermark extracting part two large divisions, the watermark embedded part comprises preprocessing process and watermark embed process; Watermark extracting partly comprises extracts preprocessing process and watermark extraction process;
Described preprocessing process is:
(1.1) alternately divide, construct the context relation of pixel, original image is divided into to disjoint set of pixels S 1And S 2, the realization of estimating for calculating and the pixel of image complexity;
(1.2) difference is calculated, and uses the context constructed in preprocessing process step (1.1), the estimated value of each pixel in computed image, then by with original pixels relatively ask difference, this step can be divided into successively two parts: first at first, utilize S 1In pixel estimate S 2In pixel, S now 1For original pixel value; Then second portion, utilize S 2In pixel estimate S 1In pixel, S now 2For the pixel value after embed watermark;
(1.3) parameter setting; comprise the parameter setting of two aspects; at first for original image; utilize the form parameter α of density function of the generalized Gaussian distribution (GGD) in wavelet field as the parameter of measurement of image complexity; and by curve-fitting method, parameter alpha is estimated, parameter alpha is defined as to image complexity; Then, according to the embed watermark data the number, determine two parameter c and the T of self-adaptation difference expansion, c is similar to the parameter of using in the generality expansion with T, is used for the embedding capacity of watermark of control chart picture, wherein c is constant, T is threshold value;
Described watermark embed process:
(2.1) determine self-adaptation expansion radix b Ij, the parameter alpha obtained by preprocessing process step (1.3), image complexity, reach self-adaptation spreading parameter c and T, by formula, calculates
Figure FDA00003019363400011
Determine self-adaptation expansion radix b Ij, i, j is coordinate, σ 2For variance, for weighing the steady degree in zone;
(2.2) suppose that w means the scale-of-two watermark data for the treatment of embedding that length is l, the piece that w is divided into to n 8, make w=w 1, w 2..., w n, wherein n=l/8 and w t, t=1,2 ... n comprises 8 bit binary data;
(2.3) read watermark data w t, and be converted into decimal system w D, t, in order to judge w D, tWhether embed completely, provide variable u and identified, initialization u is 1;
(2.4) scanning carrier image, for concrete pixel x Ij, known estimated value x Ij', self-adaptation expansion radix b Ij, estimate difference e Ij, pass through r I, j=w D, tModb IjObtain final embedding content r herein I, j, then utilize formula
Figure FDA00003019363400021
Carry out the self-adaptation embedding, thereby obtain embedding rear pixel value x Ij";
In self-adaptation telescopiny in (2.4), if x Ij">255 or x Ij"<0, the watermark of skipping this pixel embeds, and utilizes position and the pixel flooding information of position this pixel of table record;
(2.5), after step (2.4) has embedded, upgrade
Figure FDA00003019363400022
U=u * b IjIf u>255, read in next watermark data w T+1, juxtaposition u=1, proceed to step (2.3) and embed the next bit watermark; If proceeding to step (2.4), u≤255 continue w D, tEmbedding;
(2.6) carry out the additional information embedding, described additional information comprises parameter c, T, and parameter alpha is the position table of recording pixel flooding information in image complexity and telescopiny (2.4); So far watermark embed process finishes, and obtains embedding rear image;
Described extraction preprocessing process:
(3.1) at first carry out the additional information leaching process, this process is the inverse process that additional information embeds, and obtains two parameter c and the T of self-adaptation difference expansion, image complexity parameter alpha and position table;
(3.2) then by division identical in preprocessing process (1.1), carry out difference calculating, this process is calculated identical with the difference in preprocessing process (2.1), and accomplish that difference when embedding is calculated and accomplish to mate fully, the division that is pixel is consistent, because watermark embeds time difference value, calculating is first S 2Rear S 1So, while extracting, be first S 1Rear S 2;
Described watermark extraction process, be the inverse process of telescopiny, and concrete steps are as follows:
(4.1) initialization marking variable u is 1, because the embedding of watermark is not carried out in the zone, image border, so to the zone of i=1 or j=1, image pixel remains unchanged, direct-reduction;
(4.2) scanning embedded images, for concrete pixel x ", oneself knows estimated value x ', self-adaptation expansion radix b Ij, the estimation difference e ' Ij, pass through formula
r ij=e ij′%b ij,b ij≠1
Obtain embed watermark r herein Ij, then utilize formula
Figure FDA00003019363400023
Recover original difference e Ij, and then obtain the image original pixels;
In leaching process in (4.2), if recorded this position in the table of position, skip the watermark extracting of this position, keep pixel constant simultaneously;
(4.3) after step (4.2) has been extracted, by r I, j, b IjPut into respectively set R t, B tIn, r I, jb IjIn i, j is coordinate, it is at R t, B tIn position be the order of putting into, and upgrade u=u * b Ij;
If u>255, the size that note is now gathered R is m, passes through formula
Figure FDA00003019363400031
Complete watermark w t=w t(1), again put u=1, carry out step (42) and extract next bit watermark w T+1If step (4.2) is proceeded in u≤255 item.
2. the reversible image watermark method based on the self-adaptation difference expansion according to claim 1, it is characterized in that: the value of described T is 2≤T≤10.
3. the reversible image watermark method based on the self-adaptation difference expansion according to claim 1, it is characterized in that: described additional information is with LSB(Least Significant Bit least significant bit (LSB)) mode of replacing is embedded in image edge pixels.
CN201110078970XA 2011-03-30 2011-03-30 Adaptive difference expansion-based reversible image watermarking method Expired - Fee Related CN102147912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110078970XA CN102147912B (en) 2011-03-30 2011-03-30 Adaptive difference expansion-based reversible image watermarking method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110078970XA CN102147912B (en) 2011-03-30 2011-03-30 Adaptive difference expansion-based reversible image watermarking method

Publications (2)

Publication Number Publication Date
CN102147912A CN102147912A (en) 2011-08-10
CN102147912B true CN102147912B (en) 2013-12-04

Family

ID=44422162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110078970XA Expired - Fee Related CN102147912B (en) 2011-03-30 2011-03-30 Adaptive difference expansion-based reversible image watermarking method

Country Status (1)

Country Link
CN (1) CN102147912B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314668B (en) * 2011-09-09 2013-01-02 北京航空航天大学 Difference-expansion digital-watermark-embedding improvement method for enhancing quality of watermark-embedded image
CN102496135B (en) * 2011-12-06 2013-10-30 银江股份有限公司 Deadweight tonnage (DWT) domain-based digital watermark method and system
CN102760280B (en) * 2012-06-15 2014-12-17 苏州工业职业技术学院 High-capacity reversible watermark embedding and extracting method as well as implement system thereof
CN102903076A (en) * 2012-10-24 2013-01-30 兰州理工大学 Method for embedding and extracting reversible watermark of digital image
KR101495426B1 (en) * 2013-05-08 2015-02-23 주식회사 엘지화학 Method for preparing ester composition and resin composition
CN106067157B (en) * 2016-05-27 2019-06-11 陕西师范大学 Difference expansion of changing direction is embedded in the reversible water mark of synchronous insertion and extracting method
CN106485640A (en) * 2016-08-25 2017-03-08 广东工业大学 A kind of reversible water mark computational methods based on multi-level IPVO
CN107590369B (en) * 2017-08-30 2020-09-08 南京信息工程大学 Homomorphic encrypted domain reversible information hiding method based on code division multiplexing and value expansion
CN108010532B (en) * 2017-12-18 2021-09-24 辽宁师范大学 Digital watermark detection method based on multivariate generalized Gaussian distribution
CN108230226B (en) * 2018-01-08 2021-09-10 西安电子科技大学 Self-adaptive block pixel value sequencing digital reversible watermarking method and medical image system
CN108898542B (en) * 2018-07-04 2023-07-18 广东工业大学 Reversible watermark embedding method
CN110533569B (en) * 2019-08-06 2023-03-31 淮阴工学院 Watermark processing method based on quadratic difference expansion
CN112669191B (en) * 2019-10-15 2023-07-04 国际关系学院 Anti-overflow reversible digital watermark embedding and extracting method based on image content identification
CN114827380B (en) * 2022-06-30 2022-09-02 智联信通科技股份有限公司 Network security detection method based on artificial intelligence

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004104494A (en) * 2002-09-10 2004-04-02 Canon Inc Electronic watermark embedding device and its control method
CN101477675A (en) * 2008-01-03 2009-07-08 南开大学 Reversible digital watermarking process based on boosted wavelet transforming
CN101364300A (en) * 2008-05-30 2009-02-11 西安电子科技大学 Digital watermarking method based on gray theory

Also Published As

Publication number Publication date
CN102147912A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN102147912B (en) Adaptive difference expansion-based reversible image watermarking method
US8090146B2 (en) Image watermarking
CN105741224B (en) The reversible water mark algorithm divided based on PVO and adaptive block
Thabit et al. Medical image authentication using SLT and IWT schemes
US9773290B2 (en) Content watermarking
CN101105857B (en) High capacity reversible water mark method based on predication and companding technology
CN102156955B (en) Robust reversible watermark embedding and extracting method based on histogram neighborhood
EP1908007B1 (en) Image watermarking
CN104778651A (en) Digital image authentication method based on super-pixels
Liu et al. Robust blind image watermarking based on chaotic mixtures
Zhao et al. Tampered region detection of inpainting JPEG images
CN101833745B (en) Method for detecting embedding and extracting of multiple binary embedded watermarks of digital image
CN102073978B (en) Method and system for identifying and recovering digital images by utilizing irregular region segmentation
CN109391819B (en) Reversible information hiding method based on pixel value dynamic prediction
CN104766263A (en) Color image watermark embedding and detecting method based on quaternion Legendre moment correction
CN101504759B (en) Digital image watermark extraction method based on DCT algorithm
KR101026081B1 (en) Reversible watermark inserting and original image restoring methods
Rahardi et al. A Blind Robust Image Watermarking on Selected DCT Coefficients for Copyright Protection
CN103440616B (en) High volume reversible watermarking method based on self-adaptive prediction model
CN108616757B (en) Video watermark embedding and extracting method capable of extracting watermark after copying
CN106127670A (en) A kind of processing method of reversible water mark image
CN104103031B (en) Based on normalized Vector spatial data blind watermark method
CN102314668B (en) Difference-expansion digital-watermark-embedding improvement method for enhancing quality of watermark-embedded image
Saneie et al. Introducing a new method of robust digital image watermarking against cropping and salt & pepper noise using Sudoku
CN111127288B (en) Reversible image watermarking method, reversible image watermarking device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Wang Jingyuan

Inventor after: Wang Zhuo

Inventor after: Chen Zhenyong

Inventor after: Fan Wei

Inventor after: Luo Lixin

Inventor after: Xiong Zhang

Inventor before: Wang Zhuo

Inventor before: Chen Zhenyong

Inventor before: Fan Wei

Inventor before: Luo Lixin

Inventor before: Xiong Zhang

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG ZHUO CHEN ZHENYONG FAN WEI LUO LIXIN XIONG ZHANG TO: WANG JINGYUAN WANG ZHUO CHEN ZHENYONG FAN WEI LUO LIXIN XIONG ZHANG

C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161010

Address after: 18, building 1006, block C, Shenzhen International Innovation Center, No. 518033 Shennan Road, Shenzhen, Guangdong, Futian District

Patentee after: Shenzhen Air Technology Co., Ltd.

Address before: 100191 Haidian District, Xueyuan Road, No. 37,

Patentee before: Beihang University

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20131204

Termination date: 20170330