The present intention relates to the generation, embedding and detection of patterns in images, audio streams, video, and documents or surfaces of articles. Such embedded patterns may be used for invisible watermarking, and/or for alignment information. In particular, the present invention relates to embedded patterns that have scale and rotation invariant properties.
With the advent of digital images and digital image distributions protection of such digital images against unauthorised copying has become an issue for image publishers and authors One technique used to identify the ownership of an image is to embed a pattern or patterns into the image, such that the embedded pattern is not visible to the naked eye of an observer. Such a pattern is called a watermark. The presence of the watermark can be detected in the copied image by the owner of the original image, thereby proving their ownership.
Systems are known for embedding a pattern or patterns into an image or document. However, present methods of invisible watermarking of documents and images are often very sensitive, therefore not robust, to geometric image distortions. The most common image distortions are changes in the magnification or scaling, changes to the orientation of the image or rotation, and losing edge information of the image or cropping.
Known methods which are robust to such changes, are either incapable of storing significant amounts of data in the watermark, or are susceptible to malicious intervention for the reason that the pattern is easily detected by simple spectral methods. One such spectral method is an analysis of the Fourier magnitude peaks of the image with an embedded watermark.
One of the most popular and effective methods for detecting patterns is correlation. In fact, for linear systems, correlation, or matched filtering, can be shown to be mathematically an optimal detection method. Unfortunately correlation in two dimensions is not, in general, invariant with orientation or scaling.
It should be noted that correlation can only give well defined and easily distinguished correlation magnitude peaks if the underlying pattern has a broad Fourier magnitude distribution. This is a consequence of the uncertainty principle. Therefore, patterns with very sharp or constrained Fourier magnitudes, such as a narrow-bandpass function, are ill equipped for correlation purposes.
Rotation invariance in known systems is typically achieved by using circular symmetric patterns. Alternatively the correlation can be repeated many times with the test pattern at many different orientations, so that at least one correlation is close to the actual orientation. Scale related problems are usually solved by repeated correlations at many different scales so that at least one correlation is close to the actual scale. Such methods are impractical, and as a consequence correlation seldom is used in cases when arbitrary rotation and/or scaling is present.
It is an object of the present invention to substantially overcome, or at least ameliorate, one or more disadvantages of existing arrangements.
According to a first aspect of the invention, there is provided a method of embedding a watermark into an image, said method comprising the step of:
maintaining at least one basis pattern; and
adding said basis pattern(s) to said image, said basis pattern(s) being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled and rotated version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant.
According to a second aspect of the invention, there is provided a method of detecting a watermark from an image, said watermark having a first basis pattern embedded, said method comprising the steps of:
maintaining a second basis pattern; and
detecting said first basis pattern in said image using said second basis pattern, said first and second basis patterns being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled and rotated version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant.
According to a third aspect of the invention, there is provided a method of adding registration marks to an image, said method comprising the step of:
maintaining at least one basis pattern, said basis pattern(s) being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled and rotated version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant;
adding said basis pattern(s) to said image at at least three predetermined offsets relative to a center of said image.
According to a fourth aspect of the invention, there is provided a method of registering a transformed image, wherein a first basis pattern is embedded in said image before transformation at at least three predetermined positions, said method comprising the steps of:
maintaining a second basis pattern;
detecting said first basis pattern in said transformed image using said second basis pattern, said first and second basis patterns being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled and rotated version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant;
comparing positions of said first pattern with said predetermined positions;
determining linear transformations for transforming said positions of said first pattern with said predetermined positions; and
transforming said image to invert said linear transformations.
According to a fifth aspect of the invention, there is provided a method of embedding a watermark into an audio stream, said method comprising the step of:
maintaining at least one basis pattern; and
adding said basis pattern(s) to said audio stream, said basis pattern(s) being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant.
According to a sixth aspect of the invention, there is provided a method of detecting a watermark from an audio stream, said watermark having a first basis pattern embedded, said method comprising the steps of:
maintaining a second basis pattern; and
detecting said first basis pattern in said audio stream using said second basis pattern, said first and second basis patterns being formed substantially from a basis function, wherein said basis function is defined such that said basis function when correlated with a scaled version of said basis function is substantially equal to the auto-correlation of said function within a complex multiplicative constant.
According to yet another aspect of the invention, there is provided an apparatus for implementing any one of the aforementioned methods.
According to yet another aspect of the invention there is provided a program stored in a memory medium for implementing any one of the methods described above.
A number of embodiments of the present invention will now be described with reference to the drawings, in which:
Basic properties of a group of functions, including their correlation properties, will first be described. Processes for watemarking, watermark detection, and apparatus follows the description of the basic properties of those functions.
Certain functions have a scale invariant property, whereby a change of scale in the coordinate results in a transformed function that is the same as the original functions apart from a multiplicative constant. These functions are sometimes referred to as homogeneous functions. Consider a homogeneous function:
ƒ(r)=cos [αln(r)] (1)
having a logarithmic phase as follows:
ψ(r)=αln(r) (2)
Such a phase has a frequency of
The function ƒ(r) has the useful scaling property, in that:
ƒ(ar)=cos [αln(ar)]=cos [αln(r)+αln(a)] (3)
In other words, a coordinate scale change only produces a fixed phase change in the cosine. The function in Equation (1) has some peculiar properties, such as an infinite number of periods in the range 0≦r<ε, and the phase approaches −∞ as the radius tends to zero. The undesired effects of these properties can be largely avoided by removal of a central region below a threshold radius.
The homogeneity condition can also be viewed as a self-similarity criterion. Self-similar functions produce correlation magnitude peaks even when one of the correlated functions is resealed. A complex function with the self-similarity property is:
ƒα(r)=rp exp [iαln(r)] (4)
A scale change provides:
ƒα(ar)=aprp exp [iαln(r)]exp [iαln(a)]=ap exp [iαln(a)]ƒα(r) (5)
which introduces a magnitude and phase change. By using a complex exponent:
exp [iαln(r)]=riα (6)
Equation (4) can be written as:
ƒα(r)=rp+iα (7)
Equation (7) represents a family of functions, which have a periodic radial structure.
Functions of the form of Equation (7) have some useful orthogonality properties over an annular region, with the annular region defined by a maximum radius R2 and the minimum radius R1. Consider the radial function:
ƒm(r)=rpriα
The correlation at the origin, or zero shift, is defined by an overlap integral Imn of this function ƒm(r) with another similar function ƒn(r) with parameter αn instead of parameter αm, and can be written in polar coordinates as:
From Equation (9), it can be seen that a prerequisite of orthogonality of the functions ƒm(r) and ƒn(r), is that p=−1. For one-dimensional functions, the orthogonality prerequisite is p=−½.
Generally, the magnitude squared of the overlap integral |Imn|2 may be written as a sinc function as follows:
The magnitude of the overlap integral |Imin| is a maximum as the parameters αn and αm approach αn−αm=0, and zero when
In practice, the magnitude of the overlap integral |Imn| is small or negligible when
The above condition is an approximate orthogonality condition, useful for estimation purposes. In practice the ratio R2/R1 is chosen to be of the order 2 to 4, so that ln(R2/R1)≈1.
By including a spiral phase function in Equation (8), thereby causing polar angle θ=tan−1 [y/x] variations in the pattern function, it can be shown that the pattern function retains its scale invariant and orthogonality properties. Consider a scale and rotation invariant pattern g, which has a circular harmonic phase defined by the parameter k, where parameter k is an integer. Such a function is sometimes referred to as a logarithmic radial harmonic function [LRHF], and has the form:
gmk(r,θ)=rpriα
The overlap integral Imknl of this LRHF gmk(r,θ) with another similar LRHF gnl(r,θ) with parameters αn and k, over an annular region, is:
As is evident from Equation (14), the overlap integral Imknl is simple to calculate because of the radial/tangential separability. Equation (14) can be further simplified because the tangential component integrates to a Kronecker delta function as follows:
causing the overlap integral Imknl to simplify to
Again, at orthogonality where p=−1, the magnitude squared of the overlap integral is:
The preceding analysis refers to complex exponential functions, but in practice, images are limited to real, as well as positive, reflectivity, transmissivity, or intensity values. It can be shown that if the overlap integral Imknl is calculated for the real part of one LRHF gmk with a full complex LRHF gnl, a magnitude squared of the overlap integral |Imknl|2 would be obtained that is similar to Equation (17), but reduced by a factor of four.
Therefore, the LRHF gmk is defined by the real value m and integer parameter k, where real value m defines in the parameter αm as:
In a typical application the LRHF gmk is evaluated over a discrete image with a finite size, and where the pixel positions (x,y) only contain discrete integer values. To avoid aliasing, constraints are imposed on the allowable values for the parameters k and αm.
The LRHF gmk has a well defined local frequency q(x,y), which is defined as the modulus of the gradient of the phase Ψmk of the LRHF gmk(r), so
where
gmk=|gmk|exp(iΨmk) (20)
Hence, from Equation (13), the phase Ψmk is
Ψmk=αm ln r+kθ (21)
Substituting Equations (22) and (23) into Equation (19), local frequency q(x,y) is:
In other words, the radial and tangential frequencies are square additives. In fact the full 2D frequency is just the vector sum of the radial and tangential frequency vectors. It is also noted that the orientation of the local frequency q(x,y) is always fixed relative to the polar angle θ:
This property means that spirals in the LRHF gmk are equi-angular.
The minimum frequency qmin for an annular LRHF gmk occurs at the maximum radius R2 and the maximum frequency qmax at the minimum radius R1 defined respectively by:
The maximum frequency qmax is kept below the Nyquist frequency of the discrete image.
The foregoing described the basic properties of LRHFs. However, the property of most interest in this implementation is their correlation property. Correlation at the origin has been dealt with in the overlap integral Imkln.
In the more general case of cross-correlation and auto-correlation, a 2D-correlation function is obtained. An efficient method of correlating two large image functions is via the Fast Fourier Transform (FFT).
It is convenient to work with continuous Fourier Transforms initially, although much of the mathematics transfers directly to the discrete case with discrete Fourier transforms, with the exception of infinite frequency parts. Consider first the case of purely radial functions with complex exponent c, having the form of Equation (8), and its transform:
Here Γ( ) is the generalised factorial (gamma) function. Using partial derivatives it can be shown that LRHFs gmk having the form of Equation (13), have the following transform pair:
rpriα
The parameter μ is a complex constant related to the gamma function Γ( ). It is noted that no coordinate scaling is necessary to estimate the form of the Fourier transform. In fact the Fourier phase is essentially the same as the spatial phase, except for a sign reversal in the radial component. This can be seen from the following:
arg[rpriαeinθ]=αln [r]+nθ (30)
arg[μmkpq−p−2q−iα
One of the principle applications of correlation in image processing is in the area of template matching. Correlation is therefore used to detect the presence of a pattern, such as a LRHF gmk, in an image ƒ, where the image ƒ(x,y)=p(x,y)+gnl(x,y). Correlation between pattern gmk and image ƒ produces a 2 dimensional image with maximum values at positions where the image ƒ best matches the pattern gmk. The Fourier correlation theorem provides:
h(x,y)=ƒ(x,y){circle around (x)}g(x,y)⇄Fm(u,v)G(u,v)=H(u,v) (32)
Thus, correlation can be implemented by Fourier transforming the image ƒ and the pattern g to obtain Fourier transformed functions F and G, complex conjugating one of the Fourier transformed functions, say F, and then multiplying these two functions Fm and G, before transforming back.
It is also noted that:
h(x,y)=[p(x,y)+gnl(x,y)]Θgntk(x,y)=[p(x,y)Θgntk(x,y)]+[gntk(x,y)Θgnl(x,y)] (33)
Hence, the effectiveness of the embedding and detection of pattern gmk in typical images depends on the cross-correlation of the original image p with the chosen pattern gmk being of low magnitude and widely dispersed. This is difficult to estimate however, generally, the cross-correlation part is very small compared to the auto-correlation part. The heuristic argument for this is that LRHFs do not resemble features in typical images p. The LRHFs proposed have both wide spatial support and wide spectral support.
Consider the correlation between two LRHFs gmk(r) and gnl(r), being the second term in Equation (33). The Fourier transforms of the LRHFs gmk(r) and gnl(r) are of the form:
gmk(r)=rpriα
gnl(r)=rpriα
The product of the complex conjugate of the transform of LRHF gmk(r) and the transform of gnl(r), provides:
Hmknl(u,v)=μmkpq−p−2q+iα
The phases partly cancel when the two chosen LRHFs gmk(r) and gnl(r) are similar. Only when the functions are identical do the phases entirely cancel out. Phase cancellation is the classic condition for maximum correlation, although a purely linear phase component can exist and only indicates a shift in the two original functions.
In the case where the two LRHFs gmk(r) and gnl(r) are identical, Equation (36) reduces to:
Hmkmk(u,v)=(μmkp)2q−2p−4 (37)
In such a case the correlation peak will be of the form
The above equations are ideals, and the correlation peaks will be finite and discrete approximations to the ideal in practice.
However, the pattern gnl(x,y) is typically limited to real values only when embedding in the discrete image ƒ(x,y)=p(x,y)+gnl(x,y). The discrete image ƒ(x,y) is typically further limited by only 8 bits of data per pixel, thus greyscale levels 0–255. As noted earlier, all the preceding analysis extends easily to the case where a real pattern (gmk) is embedded in an image p(x,y) and detected with a complex pattern gnl. The main difference is a 2 times increase in the noise compared to the full complex correlation, or:
Another difference is that the correlation of a pattern gnl with the real part of that pattern gnl is no longer a real power of r. Some oscillating structure will “leak” through, both radial and tangential.
The underlying mathematical method of LHRF correlation is invariant to any scale and rotation variation such that:
g(r,θ){g(a.r,θ+φ)}=[g(r,θ){c.g(r,θ)}] (40)
wherein defines a real or imaginary component, r is a displacement distance, θ and φ are angles, α is a positive real number, and c is a complex number not dependent on said displacement distance r nor said angle θ.
In a similar manner functions can be defined so that the correlation is invariant to any scale variation such that:
g(r,θ){g(a.r,θ)}=[g(r,θ){c.g(r,θ)}] (41)
wherein c is a complex number not dependent on said displacement distance r nor said angle θ.
Further functions can be defined so that the correlation is invariant to any rotation variation such that:
g(r,θ){g(r,θ+φ)}=[g(r,θ){c.g(r,θ)}] (42)
wherein c is a complex number not dependent on said displacement distance r nor said angle θ, and the function g(r,θ) does not necessarily have circular symmetry. In the case of circular asymnmetry the relation g(r,θ)≢g(r) holds. Many common functions and patterns with simple N-fold rotation symmetry are excluded from the above definition because they do not generally satisfy Equation (42) for all values of φ; only for special values of the rotation angle φ=2π/N. An example of such a pattern is composed of three circles centered on the vertices of an equilateral triangle. Such a pattern has tri-fold rotational symmetry and repeats for rotation angles of φ=2π/3, and for all other angles Equation (42) is violated.
As noted before, the maximum frequency qmax is kept below the Nyquist frequency of the discrete image. The maximum frequency qmax is as defined in Equation (27), and determines the size of the ‘hole’ in the centre of the pattern. Similarly the size of the image introduces a maximum pattern size. In the simplest case, the pattern is restricted to an annular region defined by radii R1 and R2.
In addition to the conventional correlation process outlined above, and in particular Equations (36), (37) and (38), enhanced forms of correlation may also be usefully employed for the detection of embedded patterns.
One form of enhanced correlation is to boost the high frequency components of the conventional correlation. This has the effect of changing the real exponent p in Equations (37) and (38) resulting in a correlation peak which resembles the delta function in the second part of Equation (38).
Another form of enhanced correlation is known as “phase-only” correlation. Phase only correlation is implemented by taking the Fourier correlation magnitude, expressed in Equation (37) for example, and setting it to unity. This ensures that only the phase terms contribute to the overall correlation peak. Again, the peak shape tends to resemble a delta function.
A variety of enhanced correlation processes, which consist of intermediates between frequency-boosted correlation and phase-only correlation, are also possible and applicable to the correlation detection.
Roughly speaking, the ratio of the two radii R1 and R2 in the annulus determine the extremes of the possible scale variations before correlations fail completely. Hence, the minimum scaling factor is R1/R2 and the maximum is R2/R1. Preferably, the limits are set at 50% overlap area between an embedded pattern gkm and a detection pattern gln, in which case the two scaling ratios are:
The range factor in this case is
In a typical case, for example, where λ=4, then the ratios are 0.72 and 2.12.
The range of scale variation may be extended by performing the correlation upon a number of differently scaled versions of the watermarked image. This allows the overlap area to be improved in at least one of the correlations. So, for example a sequence of images rescaled by progressive factors of 2 would guarantee one of the images to fit the 50% overlap criterion (for λ≧4), and hence give a strong correlation peak.
The foregoing described the properties of LRHFs.
Preferably, the pattern 410 component in the watermarked image 420 is invisible or imperceptible to the human visual system under normal viewing conditions. This is done by multiplying the pattern 410 with a constant embedded factor 430, thereby adding a low intensity copy of the pattern 410 to the image 400.
A problem with embedding the low intensity copy of the pattern 410 at a sufficiently low level for it to be imperceptible to the human visual system, is that the signal levels of the low intensity copy of pattern 410 may be of a magnitude comparable to the quantisation step size used in a digital system. Consequently a simple quantisation step may lose the watermark information in a significant number of the signal samples. However, by using methods such as error diffusion, the loss of the watermark by quantisation in one sample is compensated by the increased likelihood of the watermark being represented by a nearby sample.
A collection of patterns may also be added to the image 400.
In a preferred implementation, an adaptive scheme is used to reduce the level of the watermark in regions having low intensity variation and increase the level of the watermark in regions of high intensity variance. The watermark is a real function with the following general form:
ĝk,m,n(x,y)={g(r,θ)}={wn(r,θ)rpriα
The window function wn(r,θ) is a slowly varying function relatively to the pattern function rpriα
Preferably, the pattern 710 component in the watermarked image 730 is invisible or imperceptible to the human visual system under normal viewing conditions. This is done by multiplying the pattern 710 with a constant embedded factor 740, thereby adding a low intensity copy of the pattern 710 to the image 700.
The window function wn(r,θ) can also contain other information, for example a constant phase (ie complex) factor. Such a phase factor causes a constant phase offset to the pattern function rpriα
Again, with colour images, the de-emphasised pattern ĝk,m,n(x,y) may be added to the luminance part of the signal. Alternatively, the de-emphasised pattern ĝk,m,n(x,y) may be added to the R, G, B, H, V, S, u, v etc channels of the colour image, or any combination thereof.
The watermark that is embedded into an image generally consists of a summation of separate basis patterns ĝ with varying location, windows, and tuning parameters:
Σn=1Nw′n(x−xn,y−yn)·ĝk(n),m(n),n(x−xn,y−yn) (46)
where window function w′n removes or de-emphasises the high frequency central region of each of the separate basis patterns ĝ.
The window function w(x,y) for applying perceptual de-emphasis may be applied after the summation process, to form a watermark as follows:
w(x,y)Σn=1Nw′n(x−xn,y−yn)·ĝk(n),m(n),n(x−xn,y−yn) (47)
The watermark encodes information in the centre location (xn,yn), strength, relative phase, and parameters k(n) and αm(n) of each of the N basis patterns ĝ. In practice the strength is not a robust carrier of information, as it can be easily attenuated, even accidentally, by any processing of the watermarked image.
With more than one basis pattern ĝ used in the watermark, the process 800 of detection may be repeated for each of the basis patterns ĝ.
The process 800 may also be used with watermarked images 810 where process 750 shown in
The magnitude peaks can only be detected by correlation with the known LRHF(s) used for embedding, or by an exhaustive search of correlation magnitude peaks by using the full range of parameters k and αm. The exhaustive search can be expected to be many orders of magnitude slower than detection using the correct parameters k and αm, making the method difficult to attack.
Performing the watermark detection process 900 shown in
For an image containing a single magnitude peak, detection is relatively straightforward, in that the pixel containing the maximum modulus value is selected, and its coordinates define the centre of the embedded pattern.
For images containing multiple peaks to be detected, a slightly more complex approach is used. If a detection image contains s peaks, those s peaks may be detected as follows:
The radius q is chosen depending upon the application. When alignment peaks are very well spaced, a large value for q, say 20 pixels, may be used. Peaks used to encode information may be much closer together, and a smaller value for q should be used.
The proposed processes of watermarking and detection of watermarks are inherently robust to most image distortions. These include:
In addition to the above, the method is more difficult to defeat than known methods where the watermarks can be detected by analysing the Fourier magnitudes of an image. Detection of LRHF gmk(r) based watermarks requires many correlations, typically more than 1000, if the parameters αm and k of the LRHF gmk(r) are unknown.
In the forgoing the LRHF is restricted to an annular region defined by radii R1 and R2. However, square or other shapes may also be used to restrict the patterns.
There are many applications in machine and computer vision that require registration and alignment of objects. One such an application is when a message is embedded in an image by defining a set of centre locations (xn,yn) for basis patterns ĝ and adding basis patterns ĝ at selected ones of those centre locations (xn,yn).
Watermarks based on LRHFs are particularly suited for embedding alignment marks in images to allow reliable registration and alignment of an image of, or applied to the object. Such alignment marks could take many forms. In a particular implementation, three basis patterns ĝ are added to the image, with the basis patterns ĝ having centre locations (xn,yn) corresponding with the positions of three corners of a square of known size forming an ‘L’-shape. The basis patterns ĝ may be embedded visibly or invisibly using process 450 or 750 set out above.
The detection of the possibly transformed centre locations (xn,yn)′ of the alignment marks is performed by using method 800 or 900, shown in
A rotation angle may be estimated using the vector between the two detected centre locations (xn,yn)′ or peaks which are furthest apart. Similarly, a total scaling factor may be estimated using the distance between these two peaks. A shear factor may be estimated by measuring the angle between the three peaks. A change in aspect ratio may be estimated by measuring the difference in the length of the horizontal side and the vertical side of the “L” shape formed by the three peaks. The middle point of the ‘L’ shape may be used to define the coordinate system origin of the alignment marks.
The four parameters (angle, scaling, shear and aspect ratio) completely define a linear transformation. Reflections and non-linear transformations such as warping or removal of image columns or rows can not be detected and therefore can not be inverted. The linear transformation may be inverted to restore the watermarked image to its original size and orientation.
Scaling and rotation may be performed by a variety of resampling algorithms. Typically a high quality resampling using bi-cubic interpolation, Fourier interpolation, or even a non-linear resampling scheme may be used.
Once the watermarked image is returned to its nominal settings, an alternative watermarking or steganographic method may be utilised to extract further information from the image.
In another implementation, the registration patterns are used in conjuction with any other watermarking technique. The registration is performed before reading the embedded watermark.
Registration may include focusing because the correlation magnitude peaks provide a nice smooth variation in magnitude with respect to changes in the focus of imaging systems. Focus can be estimated by correlation peak width. An advantage of a width based measure of focus is that it is normalised and does not depend upon the absolute peak level.
Registration may further include aspect ratio correction and shearing to some extent, due to the strength of the correlation magnitude peaks.
The above patterns used as the watermark were all radial-tangential functions having the form of Equation (45). However, patterns that only vary in one dimension may also be used, such as patterns of the following form:
gm(x,y)={w(x,y)|x|iα
This pattern only has variation in a x direction. Any direction could be chosen in practice. Process 450 or 750, shown in
The one dimensional pattern may be detected using process 800 or 900, shown in
It is also possible to construct scale invariant patterns from a separable product of one dimensional patterns, thus having the form:
sl,m(x,y)=w(x,y)|x′|iα
However, such patterns are not rotation invariant. It is noted that the separable directions (x′,y′) do not need to be orthogonal. A sequence of the above patterns may be summed to form the overall watermark. Radial harmonic patterns of the form of Equation (45) may also be added. In one implementation, the radial harmonic pattern(s) is added for registration, allowing the watermarked image to be rotated back to its original orientation, before the pattern is detected by using one of the detection processes 800 or 900.
As stated above, the watermark encodes information in the centre location (xn,yn), strength, phase, and parameters k(n) and αm(n) of each of the N basis patterns ĝ. For example, the location (xn,yn) of each peak could store several bits of data. More sophisticated methods may also be used such as described below. Detection of the stored data requires that the peak and its position be identified reliably. This process may entail some error correcting or data redundancy scheme.
Using the peak localisation property, several independent watermarking basis patterns ĝ, with each basis pattern ĝ centred on a pixel in a 64×64 square grid in the image which is used for watermarking. To allow accurate extraction, each grid position is preferably separated by 7 pixels, thus the template grid pattern covers a region of 448×448 pixels in the candidate image, which is small enough to embed in all but the smallest images.
Because the detection error is usually small and typically within 1–2 pixels, a scaling factor of 50% would result in a grid spacing of 3.5 pixels, which is still reliably detectable. Any scaling to smaller dimensions could result in errors during message decoding. Scaling to increased image size could tend to enhance the reliability of detection.
This technique uses three points on a regular grid to provide information on the pattern orientation and scaling, a point to encode message length, and subsequent points to encode bits of information.
Once the embedding grid has been established, each row and column position of the marks in the original grid may be derived from the detected position of each basis embedded in the watermarked image.
The first three points define the corners of the embedding grid. A different basis pattern ĝ defines each point, thus they may be detected in order and their relative positions used to establish the orientation and scaling of the grid in the watermarked image, and sufficiently small shear or anamorphic scaling changes.
From the three corners of the grid, a linear transformation may be derived from the coordinates of the watermarked image to that of the original 64 point by 64 point grid.
The fourth point in the sequence of detected bases is used to encode the length of the encoded message in bits. By assigning numbers from 0 to 4095 to each grid position, the fourth point may indicate a message of any length from 0 to 4095 bits.
Subsequent points encode the bits of the message by concatenating the bits representing the row and column address of each point. In a 64 point by 64 point grid, each row or column address codes exactly 64 (26) separate values. Hence, each point on the 64×64 grid encodes up to 12 bits.
Modifications to this simple technique provide encoding schemes with slightly different properties.
By embedding patterns on a 64 point by 64 point grid with only a single basis pattern ĝ and B points, messages of └log2(4096C(B−3)┘ bits using three alignment points may be stored, where C is the binomial coefficient and ␣ is the floor operator. There are two advantages of this technique. Firstly, only a single correlation need be performed during detection, thus providing a faster detection method. Secondly, any image transformation will affect the relative phase of all detected points similarly. This provides an opportunity to encode at least one extra bit of information per basis, by comparing the complex phase of each detected peak with that of the first.
Encryption may be performed on the bitstream to hide information from persons not holding the appropriate keys.
Checksums may be added to the bitstream to provide verification of the detected watermark, and also as an aid in locating information-containing watermark patterns.
Error-correcting codes may be added to the bitstream to increase the robustness of the encoded bitstream, albeit with the requirement of embedding more basis patterns ĝ in the original watermark, perhaps making the mark more visible.
To make the embedded pattern harder to discover with malicious intent, multiple basis patterns ĝ may be added together at the same position and the sum of their detection magnitude peaks used during detection. In this case, each detection peak alone may be too small to measure, but the summation of the amplitude of all detection images will combine to produce a very well-defined peak. Only by knowing a large fraction of the multiple bases can the detection peak and hence the basis for watermarking, be found.
The process of embedding and detecting rotation and scale invariant bases has several properties, which provide the means to embed a substantial amount of information in an image watermark and recover it with great reliability. These properties include:
The amplitude peaks recovered from a watermarked image are extremely sharp and well localized, typically within 1–2 pixels. Thus their embedded position in the original image can be recovered with a great degree of accuracy.
Each watermarking basis pattern ĝ is orthogonal to all other bases having different parameters k and αm. Thus, if many different basis patterns ĝ are used in the watermark, a peak for each basis may be recovered almost independently of all other basis patterns ĝ.
If a single basis pattern ĝ is used to embed a watermark, the magnitude peaks in the detected image will all be of identical complex phase. If multiple basis patterns ĝ are used which differ only in complex phase, i.e. each basis pattern ĝ is multiplied by a different complex constant of unit modulus, then the relative phase of all detected magnitude peaks will be preserved. In the best case, a single detected point may be used to determine the base phase, and the phase of subsequent magnitude peaks in the result image will retain their relative relationship to this base point.
The sharpness and amplitude of detection magnitude peaks is not substantially affected by any rotation or scaling transformations applied to the image, although the position of the magnitude peaks themselves will be rotated and scaled with the watermarked image. Thus, any rotation or scaling can be detected and corrected for by using the position of alignment points.
To a certain extent, shearing or anamorphic (aspect ratio) changes may also be detected and taken into account, thus the method is applicable to arbitrary linear transformations as long as the shear, scaling or anamorphic component is small enough.
By using iterative searching, any linear transformation to the coordinate system of a watermarked image that did not ruin its content could be detected and corrected for.
In addition to the aforementioned uses for embedded patterns, there are numerous other applications, some of which will now mentioned.
The use of a watermark allows a code to be embedded into an image. Such a code will remain with the image even if the header and other metadata of the image file are removed. This allows the code to remain strongly attached to the actual image itself. The code may be usefully employed to define the address or location of the original metadata related to the image. The metadata may contain owner identification, camera settings, geographical location, details of the subjects in the image, or any number of pieces of other information. Image metadata may be stored on the same device as the image, or on a server connected by a network, or even a server owned by a third party on the Internet.
A watermark can also embed a copyright owner's information into an image. The copyright information will be difficult to detect or remove by anyone who does not have knowledge of the parameters used to define the embedded patterns. Without the embedded pattern parameters it is necessary to search a large number of possible configurations before correlation peaks may be detected. The difficulty in searching may be sufficient to dissuade attacks upon this copyright making method.
The processes 450, 750, 800 and 900 can be implemented on a system 200 shown in
The pattern embedding and detecting processes 450, 750, 800 and 900 may be included as a plug-in module for commercially available software packages. In particular, packages which are used for the manipulation and editing of digital image files would benefit by the addition of the pattern embedding and detection software.
The embedding and/or the detection of the watermarks may be operated as a service by a third party. The images may be conveyed by a digital network for embedding and then returned to the owner with the hidden mark. Similarly an image thought to contain a mark may be submitted to the third party operator for detection of marks with specified parameters.
Libraries of digital images could incorporate embedded patterns to maintain connections with image metadata and also to maintain image copyright information.
Digital cameras, whether still or video would benefit from the inclusion of pattern embedding software and/or software to allow embedding of information immediately following image acquisition. The advantage in such a system is that unmarked images would be difficult or impossible to obtain.
The system 200 may, for example, be a general-purpose computer, a digital camera, a video camera, a scanner or a photocopier. The system 200 comprises a computer module 201, output device(s) 215 and input devices such as controls 202 and digital capture device 203. The digital capture device 203 may be an image sensor, such a two-dimensional CCD array. The computer module 201 typically includes at least one processor unit 205, a memory unit 206, for example formed from semiconductor random access memory (RAM) and read only memory (ROM), input/output (I/O) interface(s) and a storage device 209. The components 205 to 213 of the computer module 201, typically communicate via an interconnected bus 204 and in a manner which results in a conventional mode of operation of the computer system 200 known to those in the relevant art
In the case where the system 200 is a general-purpose computer, the output device 215 includes a display device. A printer may also be provided. The controls 202 include a keyboard and a mouse. The storage device 209 typically includes a hard disk drive, a floppy disk drive and a CD-ROM drive. Typically, the application program is resident on the storage device 209, and read and controlled in its execution by the processor 205. Intermediate storage of the program may be accomplished using the semiconductor memory 206, possibly in concert with the storage device 209. In some instances, the application program may be supplied to the user encoded on a CD-ROM or floppy disk and read via a CD-ROM drive or floppy disk drive 211, or alternatively may be read by the user from a network (not illustrated). Still further, the software can also be loaded into the computer system 200 from other computer readable medium including magnetic tape, a ROM or integrated circuit, a magneto-optical disk, a radio or infra-red transmission channel between the computer module 201 and another device, a computer readable card such as a PCMCIA card, and the Internet and Intranets including e-mail transmissions and information recorded on websites and the like. The foregoing is merely exemplary of relevant computer readable mediums. Other computer readable mediums may be practiced without departing from the scope and spirit of the invention.In the case where the system 200 is a digital camera or video camera, the image(s) and/or the watermarked image(s) may be stored onto the storage device 209 or communicated to another device (not illustrated).
One or more of the processes 450, 750, 800 and 900 may alternatively be implemented in dedicated hardware such as one or more integrated circuits performing the functions or sub functions of those processes 450, 750, 800 and 900. Such dedicated hardware may include graphic processors, digital signal processors, or one or more microprocessors and associated memories.
Thus, images may be obtained by the system 200 using the digital capture device(s) 202 or through the storage device 209. Watermarked images may be displayed, printed, stored or communicated to other devices. Similarly, watermarked images may be obtained by the system 200 using the digital capture device(s) 202 or through the storage device 209.
Before the watermarked image is displayed, printed or stored as a greyscale image on a medium which has a finite dynamic range and resolution, such as a bitmap file, liquid crystal display or a laser-printer output, the watermarked image is converted to a quantised facsimile or a halftone representation.
In another implementation, the digital capture device 203 is an audio device, and the system 200 is used to embed watermarks of the form:
gm(t)=|t|iα
Audio signals whether digital or (high quality) analogue may have very low level patterns or signals added with very little differences being perceptible. If the signal length is long enough, then a strong correlation peak is obtainable provided the pattern parameters are known. In this way information (copyright or otherwise) may be embedded in the audio signal. The embedding device, which may be software or hardware, may be located near the input of an audio capture device, such as a microphone. Alternatively the embedding process may take place near the output device of an audio production system. In this case the embedded patterns would be optimised for the final output medium, such as Compact Disc or Digital Audio Tape. The patterns would survive and still be detectable after sophisticated watermark attacks such as pitch changing and resampling because of the scale invariant property.
In yet another implementation, the correlation is performed optically through the use of spatial light modulators.
The foregoing describes only some implementations, and modifications and/or changes can be made thereto without departing from the scope and spirit of the invention, the implementation(s) being illustrative and not restrictive.
Number | Date | Country | Kind |
---|---|---|---|
PR1050 | Oct 2000 | AU | national |
Number | Name | Date | Kind |
---|---|---|---|
5257325 | Casparian et al. | Oct 1993 | A |
5835639 | Honsinger et al. | Nov 1998 | A |
6266452 | McGuire | Jul 2001 | B1 |
6282300 | Bloom et al. | Aug 2001 | B1 |
6665418 | Honsinger | Dec 2003 | B1 |
Number | Date | Country |
---|---|---|
1 003 324 | May 2000 | EP |
2000-268178 | Sep 2000 | JP |
WO 9803014 | Jan 1998 | WO |
WO 0007356 | Feb 2000 | WO |
WO 0039955 | Jul 2000 | WO |
Number | Date | Country | |
---|---|---|---|
20020085735 A1 | Jul 2002 | US |