The invention relates to a method and to an apparatus for superimposing noise on an image or images of an image sequence. More specifically, a method and an apparatus capable of superimposing noise, e.g. film grain noise, on image sequences in accordance with a chosen characteristic using an enhanced user interface are described.
One task in film or video production and processing is the removal and/or superimposition of film grain noise on an image sequence. A chemical film is made of color layers, e.g. one layer for a black-and-white film or three color layers for a color film. Each layer contains color particles or grains. If a film is scanned on a film scanner, the resulting digital signal contains film grain noise, which manifests as small-scale spatio-temporal noise artifacts caused by the film grain. While the cause is spatial, the visual appearance is both spatial and temporal.
Strong film grain typically reduces visual quality. Therefore, removal or reduction is desired for quality enhancement of scanned film. Where scanned film is source encoded for compression, film grain noise reduces the coding gain. Therefore, removal or reduction of film grain noise prior to encoding is an issue, combined with simulation and addition of film grain noise in the receiver. Finally, visual film grain appearance is sometimes wanted for non-film-originating video material, or a unified film grain noise level is sought for a sequence combined from various sources containing different film grain noise levels. Therefore, there is a requirement for film grain noise removal or reduction and/or superimposition, so-called film grain management.
There are restoration tools on the market that include basic versions of film grain management, i.e. film grain noise removal and film grain noise superimposition. For superimposition artificially generated grain is often used. However, there is a lack of determining, quantifying and describing properties of film grain noise that are essential for later film grain noise superimposition yielding a natural look and feel.
In this regard US 2002/0034337 discloses a method for analyzing the broadband noise content of a digital image. Regions of originally constant color in the image are automatically identified by analysis of the variance of pixel values. Regions deemed to be unrepresentative of the true noise content are automatically detected and discarded. The selected constant color regions are analyzed in order to generate a parametric or non-parametric model of the noise in the image. However, the document only deals with single images. In addition, only a rough 2>2 sub-band analysis of the noise is performed.
U.S. Pat. No. 5,641,596 describes a method for extracting and storing statistics of the grain pattern of scanned film. The statistics are representative of local, spatial, and spectral properties of a photographic grain pattern of that type of film. The statistical results are stored and used smoothing the film grain noise or for reducing its effects.
Furthermore, in the European Patent Application EP13305722.4 the generation of noise profiles from real image sequences or scanned neutral grey film is described. How to make use of such profiles for noise superimposition has been left open.
European Patent Application EP13305954.3 describes how to superimpose noise on an image or images of a sequence of images using noise profiles.
It is an object of the invention to provide a solution for superimposing noise on images of an image sequence using an enhanced user interface.
According to one aspect of the invention, a method for superimposing noise on an image of a sequence of images comprises the steps of:
Accordingly, an apparatus configured to superimpose noise on an image of a sequence of images comprises:
Similarly, a computer readable storage medium has stored therein instructions enabling superimposing noise on an image of a sequence of images, which when executed by a computer, cause the computer to:
The solution according to the invention allows designing and/or tailoring characteristics for superimposing noise, e.g. film grain noise, on image sequences providing a natural look and feel of the superimposed noise considering a certain type of film of interest, and/or adapting the characteristics to artistic or other requirements. The solution provides an instantaneous view of the effect of a (modified) superimposition characteristic. A wide palette of superimposition characteristics and associated parameters is available and/or possible, and can transparently be associated with certain types of film, or with other, maybe artistic, aspects.
A set of classes of functions as characteristics for film grain noise superimposition on an image sequence is provided with certain parameters describing their shape. Default parameters are provided for all classes of functions. Superimposition characteristics, or rather their parameters, can be loaded from a file or saved to a file, a so-called “film grain control file”, or a corresponding data set in another form of data or data format. Default or loaded characteristics can be modified and stored as new characteristics. Superimposition characteristics and their effect on the image are presented to the user by applying them to a natural image loaded at present as well as to a test image and writing/displaying the results to the user. An expert user interface shows all the data and images and allows modifying parameters. As soon as there is a change to a parameter, e.g. due to a slider movement or specification of a new value, a new look-up table with the modified signal-dependent superimposition characteristic is computed and the presented output images are updated as to present the effect to the user immediately. As an alternative, a button is provided for starting the computation.
Advantageously, the characteristics also include bandwidth characteristics of the film grain noise and specify spectral shape. In this case a menu allows specifying the spectral shape, e.g. rectangular or circular, whereas bandwidths and roll-off can be modified using sliders or number input, e.g. referring to grain size. The loaded grain samples will then be filtered with a low-pass filter designed according to these specifications.
For a better understanding the invention shall now be explained in more detail in the following description with reference to the figures. It is understood that the invention is not limited to this exemplary embodiment and that specified features can also expediently be combined and/or modified without departing from the scope of the present invention as defined in the appended claims.
In the following the invention shall be explained with reference to film grain noise as an example for noise in an image sequence. Of course, the invention is not limited to this type of noise. The invention can be used for superimposing any kind of noise or low-level signal component on a given image.
Generally speaking, film grain management includes two steps. The first step is noise removal from an image sequence, e.g. from an edited version made of different sequences, which potentially show different levels of film grain noise. Noise removal is advantageously achieved by spatial and/or temporal filtering. The second step is superimposing defined film grain noise of unique strength throughout the complete (edited) sequence in order to achieve a common look and feel for the complete material.
As described in EP13305954.3, the superimposition of noise, such as film grain noise, on an image or images of a sequence of images can be performed using noise profiles. Such noise profiles are preferably provided as control files or in a different form or format of data. In the following, reference is made to files for simplicity. In the case of film grain noise, for example, different film grain control files are provided, which represent different types of film. Superimposition of noise is then realized by retrieving a noise profile from a data source, generating a noise sample based on the retrieved noise profile, and superimposing the noise sample on the image.
By way of example, a film grain control file *.fgc contains the following entries:
The superimposition of scanned film grain noise is controlled by parameters contained in the film grain control file (*.fgc). If such a file is not available, default parameters are favorably used. Generally several control files are provided for different film grain noise look and feel, from which the user then makes a selection.
A method according to the invention for superimposing noise on an image of a sequence of images is schematically illustrated in
According to the present invention, special graphical user interfaces are provided for controlling the superimposition of noise. A first exemplary user interface is depicted in
In case of superimposition in the linear domain, the following can be controlled via the control file:
y=s+fac·σ
n(s)·n. (1)
The mode of operation is controlled by a mode control parameter, while fac is a factor set via the GUI's film grain noise slider controlling the overall noise level. The default preferably is fac=1. For all of the following examples, different parameter values or even characteristics can be selected for the different color components, e.g. RGB or YUV.
In case of a constant characteristic, the zero-mean film grain noise n is added to the source image signal s:
σn2=α=const. (2)
In case of a linear characteristic, the film grain noise is added after multiplication with the source image signal in order to achieve higher film grain noise amplitudes in case of light image regions compared to dark regions:
σn2=α·s. (3)
In case of an exponential characteristic, multiplication is done with an exponential function of the source signal:
σn2=α·(1−exp(−b·s)). (4)
In case of a parabola, multiplication is done according to a parabola function of the source signal:
σn2=α·max(0,s2+b·s+c). (5)
In case of an exponential and linear characteristic, multiplication is done according to a combination of an exponential and a linear term:
σn2=α·(1−s)(1−exp(−b·s)). (6)
In case of an exponential and mirrored characteristic, multiplication is done according to exponential functions, rising for low s, falling for high s (a horizontally mirrored version of the former):
σn2=α·(1−exp(−b·s)). (7)
In case of a characteristic represented by three linear sections, multiplication is done according to straight lines, rising for low s, falling for high s:
σn2=min(α·s+b; c·s+d; e·(1−s)+f). (8)
In case of a linear and exponential characteristic, multiplication is done according to a straight line with an exponential roll-off:
σn2=α·s·(1−exp(−b(1−s))). (9)
In case of a quadratic and exponential characteristic, multiplication is done according to a parabola with an exponential roll-off:
σn2=α·(s2+b·s)·(1−exp(−c·(1−s))). (10)
In case of a characteristic according to the product of exponential functions, multiplication is done as to achieve an exponential rising and falling including a saturation:
σn2=α·(1−exp(−b·s))·(exp(−c·s)+d). (11)
The specific film grain noise superimposition characteristics can be tailored by means of an experts GUI as shown in
If the natural image is sufficiently small to fit in the expert GUI horizontally and/or vertically, the natural image is displayed in its complete width and/or height and the respective slider or the two sliders are omitted.
Advantageously, tool tips are available that display explaining text about the depicted elements, e.g. about a button, when moving the pointer of a mouse or other pointing device over the element.
Whenever a parameter value is changed or another class of function is selected, a new look-up table for use for film grain noise superimposition is computed and the diagram and the images displayed are updated using the new characteristic, thus letting the user always instantaneously see the effect of his or her choice.
Although the invention has been described hereinabove with reference to a specific embodiment, it is not limited to this embodiment and no doubt further alternatives will occur to the skilled person that lie within the scope of the invention as claimed.
Number | Date | Country | Kind |
---|---|---|---|
13305962.6 | Jul 2013 | EP | regional |