WO2014118032A1 - Method and device for modifying the dynamic range of an image - Google Patents
Method and device for modifying the dynamic range of an image Download PDFInfo
- Publication number
- WO2014118032A1 WO2014118032A1 PCT/EP2014/051116 EP2014051116W WO2014118032A1 WO 2014118032 A1 WO2014118032 A1 WO 2014118032A1 EP 2014051116 W EP2014051116 W EP 2014051116W WO 2014118032 A1 WO2014118032 A1 WO 2014118032A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- image region
- pixels
- key
- dynamic range
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
- G06T5/94—Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration using histogram techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20004—Adaptive image processing
- G06T2207/20012—Locally adaptive
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
Definitions
- the invention relates to the general field of modifying the dynamic range of an image.
- the invention relates to a device and a method for modifying the dynamic range of an image.
- This device and method can be used, for example, to reduce the dynamic range of an image, that is to say to modify the luminance values of the pixels of this image which belong to a given dynamic value range so as to obtain luminance values which belong to a lower dynamic value range that the initial image.
- tone mapping operators TMAs
- tone reproducers to modify the dynamic range of an image called the original image which can be, for example, acquired by a high dynamic range camera so as to obtain an image whose dynamic range is lower (a low dynamic range image) so as to adapt the dynamic range of the original image to that, for example, of a screen on which this image is displayed.
- the luminance component of this adapted image is quantised and encoded so as to be compatible with a display standard (BT 709, etc.).
- BT 709, etc. a display standard
- luminance for its part, corresponds to a physical unit expressed in cd/m 2 .
- the invention is equally applicable to a luminance component and a luma component.
- TMOs One of these TMOs is that developed by Reinhard which is commonly called a PTR operator (Reinhard, E., Stark, M., Shirley, P., and Ferwerda, J., ⁇ Photographic tone reproduction for digital images, " ACM Transactions on Graphics 21 (July 2002)) .
- L white is a luminance value used to ignore zones with high luminance values
- L d is a matrix whose size is that of the image and which comprises the luminance values of the pixels of the image which are expressed in a lower dynamic value range than that of the original image
- L s is a matrix whose size is that of the image and which comprises the luminance values obtained by equation (2):
- N is the number of pixels in the image
- 5 is a value which avoids any singularity
- L w (i) is the luminance value of a pixel i of the luminance component L w of the image.
- the values a and L white are two parameters of this TMO which are fixed, for example, at 18% for parameter a and at the maximum luminance value of the original image for parameter L white .
- An extension of this operator makes it possible to avoid using a matching curve and instead to modify each luminance component Lw of an original image so as to obtain a modified luminance component L d of the image by using a weighted average over the spatial neighbourhood of each pixel.
- a pyramid called a Gaussian pyramid
- a Gaussian pyramid corresponds to such a weighted average. Its successive application corresponds to doubling the size of the spatial neighbourhood. It is defined by the equation:
- s is the index of the current level of the pyramid and L is a matrix whose size is that of the image and which comprises the averaged luminance values.
- G corresponds to the weighting applied to each pixel during the averaging.
- a difference of Gaussian (DoG) is thus defined by:
- H S L - L _, (5) where Hs is the difference of Gaussian and s is the index of the neighbourhood size.
- the size of the neighbourhood used is determined when the weighted difference of Gaussian exceeds a certain threshold:
- Vs is the weighted difference of Gaussian at level s
- a is the exposure chosen in equation (2)
- ⁇ is a parameter which controls the degree of conservation of the fronts.
- TMOs of the prior art use a spatial neighbourhood to modify the dynamic range of a pixel (Kuang, J., Johnson, G. M., & Fairchild, M. D. (2007).
- iCAM06 A refined image appearance model for HDR image rendering. Journal of Visual Communication and Image Representation, 18(5), 406-414, Li, Y., Sharan, L, & Adelson, E. H. (2005). Compressing and companding high dynamic range images with subband architectures.
- the invention aims to overcome the disadvantages of the prior art.
- it aims to define a method for modifying the dynamic image of an image which preserves the spatial coherence of the brightness of the image while preserving the brightness contrasts which exist in the image.
- the purpose of the invention is to overcome at least one of the disadvantages of the prior art.
- the invention relates to a method for modifying the dynamic range of an image (IM) by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels.
- the method is characterised in that it comprises the following steps:
- FIG. 1 shows a diagram of the method for modifying the dynamic range of an image according to a preferred embodiment of the invention
- FIG. 2 shows a diagram of an example of a method for segmenting an image into regions
- FIG. 3 shows an example of a histogram of the luminance values of an image
- - Figure 4 shows an example of the internal architecture of a device according to a preferred embodiment of the invention
- - Figure 5 shows a block diagram of a device for converting an image which implements a method according to the invention.
- the invention relates to a method for modifying the dynamic range of an image IM by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels of the image.
- the method comprises a step 10 of obtaining at least one image region
- At least one image region Rj is obtained from a memory. This implies that at least one image region Rj has been previously determined and stored.
- Each image region groups together pixels of image IM which are homogeneous in the sense of a criterion. More than one image region can thus be obtained for the image.
- At least one image region Rj is determined by image segmentation.
- the criterion for homogeneity of the pixels of a same image region is the luminance value of these pixels and the segmentation of the image is thus based on luminance values of the pixels of this image.
- Segmenting the image based on the luminance values of the pixels rather than on spatial characteristics of the images such as salience points or other contours ensures that two image portions spatially separated from each other and which have the same intensity will undergo a same dynamic range correction. Moreover, segmentation based on the intensity of the pixels avoids certain imperfections of the spatial segmentation methods such as the occurrence of outlier values in segmented zones which would influence the dynamic range modification.
- a histogram H(Lw) of the luminance values (luminance component Lw) of the image to be segmented is calculated (step 1 10) in the logarithmic domain.
- Local maxima P1 to P4 are then determined (step 1 1 1 ).
- a local maximum is determined when the number of occurrences exceeds a threshold T1 equal, for example, to 5% of the total number of pixels in the image. Those local maxima which are too close to other local maxima in the sense of a metric are removed.
- a local maximum for example P2
- another local maximum for example P3
- T2 expressed in the logarithmic scale
- this local maximum here P2
- the local maxima P1 , P3 and P4 are conserved.
- Local minima are then determined between each pair of local maxima (step 1 12).
- two local minima are determined, one between the local maxima P1 and P3 and the other between P3 and P4.
- These local minima define delimitations of image regions Ri.
- three image regions R1 , R2 and R3 are determined. They are delimited by dashed vertical lines defined, for example, at the first local minimum found between the two local maxima.
- the thresholds T1 and T2 are parameters of the segmentation and can be chosen by a user.
- the segmentation of the image is not restricted to that above which uses a histogram H(Lw) of the image luminance values. Indeed, it can also extend to any other segmentation which does not use a histogram. As an example, it can also extend to segmentations which use other types of histograms but also to any method which defines region delimiters from local maxima, or which defines local maxima from which are defined the image region delimiters.
- the method also comprises, as shown in Fig. 1 , a step 20 of associating a value, called a key kj, with each image region obtained.
- a key kj associated with an image region defines an indication of the brightness of the pixels belonging to this image region Rj.
- a key kj associated with an image region Rj is defined by:
- Nj is the number of pixels in image region Rj and L J w (i) is the luminance value of a pixel of image region Rj originating from luminance component L w of image IM.
- the method also comprises a step 30 of modifying the dynamic range of the pixels of at least one image region by multiplying the luminance values of these pixels by a modification coefficient CRj determined from key kj associated with this image region Rj:
- Lj is the luminance component of image region Rj of image IM and Lj is the modified luminance component of image region Rj.
- the dynamic range of one or all of the regions of an image can thus be modified.
- the luminance component L is given by:
- x is an offset in the modification coefficient fixed for example by a user.
- This variant makes it possible to modify the gradient of the modification function when the modification coefficient is too small.
- step 30 it is determined if a pixel belonging to an image region Rj is close, in the sense of a metric, to another image region Rk.
- the dynamic range of the image region Rj is modified by equation (10) or (1 1 ). This is referred to as direct modification.
- the modification coefficient CRj,k is then equal to the weighted sum of the modification coefficients relating to each of the image regions Rj and Rk. This is referred to as weighted modification.
- CRj and CR k are the modification coefficients relating to image regions Rj and Rk and Wj and W k are weighting coefficients given by:
- W x ⁇ (13) where x designates either index j or index k, N is a normalisation factor and B designates a parameter corresponding to the width of an intersection band situated on either side of a border delimiting image regions Rj and Rk as shown in Figure 3, and ⁇ is
- This embodiment makes it possible to enhance the spatial contrasts as the brightest image region then has a modification coefficient equal to 1 .
- the modification coefficient CRj is given by the equation:
- kj is the key calculated from equation (9) and k v is a key which gives an indication of the brightness of image IM.
- the brightness indication of image IM is given by a key kv which is calculated by:
- N the total number of pixels in image IM.
- the modification coefficient CR t is given by:
- kf DR is the key which is associated with an image region Rj and calculated according to equation (9) where L J w k) is the luminance value of a pixel of image region Rj originating from luminance component L w of image I M > is tne maximum key from among all keys associated with image region Rj, each of said keys being calculated according to equation (9) for luminance values of the pixels of the image regions originating from luminance component L w of image IM, k DR is the key which is associated with an image region Rj and calculated according to equation (9) where L J w k) is the luminance value of a pixel of image region Rj originating from the luminance component modified according to equation (10) or (1 1 ), and kf ax is the maximum key from among all keys associated with the image regions, each of said keys being calculated according to equation (9) for luminance values of the pixels of the image regions originating from the luminance component modified according to equation (10) or (1 1 ).
- This latter embodiment ensures the spatial coherence of the brightness of the original image, that is to say that the relative brightnesses of the different modified image regions follow the original relative brightnesses of these regions of image IM.
- This latter embodiment is particularly advantageous in the case where image IM is the outcome of the application of a TMO to an original image as any type of TMO which applies to an image can then be used.
- the invention relates to a device 400 for modifying the dynamic range of an image IM described with reference to Figure 4.
- Device 400 comprises the following elements, interconnected by a digital address and data bus 81 :
- a calculation unit 43 also called a central processing unit
- a network interface 44 for interconnections between device 400 and other remote devices connected via a connection 41 ;
- the calculation unit 43 can be implemented by a (possibly dedicated) microprocessor, a (possibly also dedicated) microcontroller, etc.
- the memory 45 can be implemented in a volatile and/or non-volatile form such as a RAM (random access memory), a hard disc, an EPROM (erasable programmable ROM), etc.
- Device 400 is configured to implement a method according to the invention described in relation to Figures 1 to 3.
- means 43, 44 and possibly 45 cooperate with each other to obtain at least one image region, in order to associate a key with an image region, each key defining an indication of the brightness of the pixels belonging to this image region.
- Means 43, 44 and possibly 45 also cooperate with each other to modify the dynamic range of the pixels belonging to an image region by multiplying the luminance values of these pixels belonging to this image region by a coefficient determined from the key associated with this image region.
- the invention relates to a device CONV for converting an image whose luminance values belong to a given dynamic value range (HDR) to an image whose luminance values belong to a lower dynamic value range (LDR) than that of the original image.
- HDR given dynamic value range
- LDR lower dynamic value range
- FIG. 5 shows a block diagram of such an image conversion device which implements an image modification method according to the invention.
- Device CONV comprises a dynamic range conversion operator TMO which is applied to luminance component Lw of an original image SIO to obtain a modified image whose luminance values belong to a lower dynamic value range LDR than that of image SIO (HDR).
- TMO dynamic range conversion operator
- device CONV comprises means GLW for obtaining the luminance component Lw of this colour image SIO.
- the image is transformed in order to be expressed in the ( ⁇ , ⁇ , ⁇ ) colour space so as to recover the Y channel of the ( ⁇ , ⁇ , ⁇ ) space which forms the luminance component Lw. It is widely known to use such colour space transformation means.
- Other examples of means GLW can be used without leaving the scope of the invention.
- Device CONV also comprises means DIV and MULT for the purpose of conserving a constant saturation and the hue of the colours.
- These means DIV are configured to divide the R, G and B colour components corresponding to a colour image SIO by component Lw and means MULT are configured to multiply the R, G and B colour components thus modified by the modified luminance component.
- the three components originating from this multiplication are then expressed in floating values.
- these three components originating from this multiplication are submitted at the input of means Ftol of device CONV and undergo a conversion of their values to whole values which belong to a dynamic value range for the screen on which the modified colour image must be displayed.
- the operator TMO can be any TMO of the prior art which applies to a still image.
- the PTR operator described in the introductory section can for example be used.
- the modified luminance component is obtained from equation (5) or (6).
- the conversion device also comprises means for modifying the dynamic range represented on the diagram by module C and means IAN for obtaining characteristics of the luminance component Lw. These means are configured so that the dynamic range of the values of the modified luminance component is in turn modified by one of the methods described in relation to one of Figures 1 to 3.
- the modules shown are functional units that may or may not correspond to physically distinguishable units.
- these modules or some of them can be grouped together in a single component or circuit, or constitute functions of the same software.
- some modules may be composed of separate physical entities.
- the inter-image prediction devices compatible with the invention are implemented according to a purely hardware embodiment, for example in the form of a dedicated component (for example in an ASIC (application specific integrated circuit) or FPGA (field-programmable gate array) or VLSI (very large scale integration) or of several electronic components integrated into a device or even in the form of a mixture of hardware elements and software elements.
- ASIC application specific integrated circuit
- FPGA field-programmable gate array
- VLSI very large scale integration
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
The invention relates to a method and device for modifying the dynamic range of an image (IM) by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels. The method is characterised in that it comprises the following steps: - obtaining (10) at least one image region (Rj), - associating (20) a key (kj) with each image region, said key defining an indication of the brightness of the pixels belonging to this image region, and - modifying (30) the dynamic range of the pixels of at least one image region by multiplying the luminance values of these pixels by a coefficient determined from the key thus associated with this image region.
Description
METHOD AND DEVICE FOR MODIFYING THE DYNAMIC RANGE
OF AN IMAGE
1 . Field of the invention
The invention relates to the general field of modifying the dynamic range of an image.
The invention relates to a device and a method for modifying the dynamic range of an image. This device and method can be used, for example, to reduce the dynamic range of an image, that is to say to modify the luminance values of the pixels of this image which belong to a given dynamic value range so as to obtain luminance values which belong to a lower dynamic value range that the initial image.
2. Prior art
It is known to use tone mapping operators (TMOs) or tone reproducers to modify the dynamic range of an image called the original image which can be, for example, acquired by a high dynamic range camera so as to obtain an image whose dynamic range is lower (a low dynamic range image) so as to adapt the dynamic range of the original image to that, for example, of a screen on which this image is displayed. If the adapted original image is intended for a display system, the luminance component of this adapted image is quantised and encoded so as to be compatible with a display standard (BT 709, etc.). In this case, we usually refer to luma components rather than luminance components. The luminance, for its part, corresponds to a physical unit expressed in cd/m2. The invention is equally applicable to a luminance component and a luma component.
One of these TMOs is that developed by Reinhard which is commonly called a PTR operator (Reinhard, E., Stark, M., Shirley, P., and Ferwerda, J., \Photographic tone reproduction for digital images, " ACM Transactions on Graphics 21 (July 2002)) .
The principle of this operator is to modify a luminance component Lw of an original image so as to obtain a modified luminance component Ld of the image by using a sigmoid mapping curve given by equation (1 ):
Ld =— . (l + ^-) (1 )
1+LS Lwhite
where Lwhite is a luminance value used to ignore zones with high luminance values, Ld is a matrix whose size is that of the image and which comprises the luminance values of the pixels of the image which are expressed in a lower dynamic value range than that of the original image and Ls is a matrix whose size is that of the image and which comprises the luminance values obtained by equation (2):
Ls = -k . Lw (2)
where a is a chosen exposure value, and k, commonly called a key, defines an indication of the brightness of the image given by equation (3):
k = exp ( .∑ 1 log(5 + Lw(i))) (3)
where N is the number of pixels in the image, 5 is a value which avoids any singularity and Lw(i) is the luminance value of a pixel i of the luminance component Lw of the image.
The values a and Lwhite are two parameters of this TMO which are fixed, for example, at 18% for parameter a and at the maximum luminance value of the original image for parameter Lwhite.
An extension of this operator makes it possible to avoid using a matching curve and instead to modify each luminance component Lw of an original image so as to obtain a modified luminance component Ld of the image by using a weighted average over the spatial neighbourhood of each pixel. For this purpose, a pyramid, called a Gaussian pyramid, is created. A Gaussian pyramid corresponds to such a weighted average. Its successive application corresponds to doubling the size of the spatial neighbourhood. It is defined by the equation:
L, = Ls_, ® Ga (4)
where s is the index of the current level of the pyramid and L is a matrix whose size is that of the image and which comprises the averaged luminance values. G corresponds to the weighting applied to each pixel during the averaging.
A difference of Gaussian (DoG) is thus defined by:
HS = L - L _, (5)
where Hs is the difference of Gaussian and s is the index of the neighbourhood size.
The size of the neighbourhood used is determined when the weighted difference of Gaussian exceeds a certain threshold:
where Vs is the weighted difference of Gaussian at level s, a is the exposure chosen in equation (2) and Φ is a parameter which controls the degree of conservation of the fronts.
Many TMOs of the prior art use a spatial neighbourhood to modify the dynamic range of a pixel (Kuang, J., Johnson, G. M., & Fairchild, M. D. (2007). iCAM06: A refined image appearance model for HDR image rendering. Journal of Visual Communication and Image Representation, 18(5), 406-414, Li, Y., Sharan, L, & Adelson, E. H. (2005). Compressing and companding high dynamic range images with subband architectures. ACM SIGGRAPH 2005 Papers on - SIGGRAPH Ό5 (p. 836). New York, New York, USA: ACM Press).
These operators give better results than operators defined as global (the dynamic range modification does not depend on the spatial neighbourhood). However, these TMOs of the prior art are not optimal and introduce artefacts into the modified image as they do not respect both the spatial coherence of the brightness of the original image and the brightness contrasts which exist in the original image.
The invention aims to overcome the disadvantages of the prior art. In particular, it aims to define a method for modifying the dynamic image of an
image which preserves the spatial coherence of the brightness of the image while preserving the brightness contrasts which exist in the image.
3. Summary of the invention
The purpose of the invention is to overcome at least one of the disadvantages of the prior art.
For this purpose, in a general way, the invention relates to a method for modifying the dynamic range of an image (IM) by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels. The method is characterised in that it comprises the following steps:
- obtaining at least one image region,
- associating a key with each image region, said key defining an indication of the brightness of the pixels belonging to this image region, and
- modifying the dynamic range of the pixels of each image region by multiplying the luminance values of these pixels by a coefficient determined from the key thus associated with this image region.
Associating a key per image region and not a key with the entire image makes it possible to preserve the brightness contrasts of the original image.
4. List of figures
The invention will be better understood and illustrated by means of non-restrictive embodiments and advantageous implementations, with reference to the accompanying drawings, wherein:
- Figure 1 shows a diagram of the method for modifying the dynamic range of an image according to a preferred embodiment of the invention;
- Figure 2 shows a diagram of an example of a method for segmenting an image into regions;
- Figure 3 shows an example of a histogram of the luminance values of an image;
- Figure 4 shows an example of the internal architecture of a device according to a preferred embodiment of the invention; and
- Figure 5 shows a block diagram of a device for converting an image which implements a method according to the invention.
5. Detailed description of the invention
According to one of its aspects shown in Figure 1 , the invention relates to a method for modifying the dynamic range of an image IM by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels of the image.
The method comprises a step 10 of obtaining at least one image region
Rj.
According to an embodiment of step 10, at least one image region Rj is obtained from a memory. This implies that at least one image region Rj has been previously determined and stored.
Each image region groups together pixels of image IM which are homogeneous in the sense of a criterion. More than one image region can thus be obtained for the image.
According to an embodiment of step 10, at least one image region Rj is determined by image segmentation.
According to an embodiment of step 10, the criterion for homogeneity of the pixels of a same image region is the luminance value of these pixels and the segmentation of the image is thus based on luminance values of the pixels of this image.
Segmenting the image based on the luminance values of the pixels rather than on spatial characteristics of the images such as salience points or other contours ensures that two image portions spatially separated from each other and which have the same intensity will undergo a same dynamic range correction. Moreover, segmentation based on the intensity of the pixels avoids certain imperfections of the spatial segmentation methods such as the occurrence of outlier values in segmented zones which would influence the dynamic range modification.
According to an embodiment of the segmentation of an image based on the luminance values of the pixels, shown in Figures 2 and 3, a histogram H(Lw) of the luminance values (luminance component Lw) of the image to be
segmented is calculated (step 1 10) in the logarithmic domain. Local maxima P1 to P4 are then determined (step 1 1 1 ). According to an example, a local maximum is determined when the number of occurrences exceeds a threshold T1 equal, for example, to 5% of the total number of pixels in the image. Those local maxima which are too close to other local maxima in the sense of a metric are removed. For example, when a local maximum (for example P2) is separated from another local maximum (for example P3) by a distance less than a threshold T2 (expressed in the logarithmic scale) then this local maximum (here P2) is removed. Here, the local maxima P1 , P3 and P4 are conserved. Local minima are then determined between each pair of local maxima (step 1 12). Here two local minima are determined, one between the local maxima P1 and P3 and the other between P3 and P4. These local minima define delimitations of image regions Ri. Here, three image regions R1 , R2 and R3 are determined. They are delimited by dashed vertical lines defined, for example, at the first local minimum found between the two local maxima.
The thresholds T1 and T2 are parameters of the segmentation and can be chosen by a user.
The segmentation of the image is not restricted to that above which uses a histogram H(Lw) of the image luminance values. Indeed, it can also extend to any other segmentation which does not use a histogram. As an example, it can also extend to segmentations which use other types of histograms but also to any method which defines region delimiters from local maxima, or which defines local maxima from which are defined the image region delimiters.
The method also comprises, as shown in Fig. 1 , a step 20 of associating a value, called a key kj, with each image region obtained. A key kj associated with an image region defines an indication of the brightness of the pixels belonging to this image region Rj.
According to an embodiment of step 20, a key kj associated with an image region Rj is defined by:
kj = exp ( - . ^ logtS + Z/W(T))) (9)
where Nj is the number of pixels in image region Rj and LJ w(i) is the luminance value of a pixel of image region Rj originating from luminance component Lw of image IM.
The method also comprises a step 30 of modifying the dynamic range of the pixels of at least one image region by multiplying the luminance values of these pixels by a modification coefficient CRj determined from key kj associated with this image region Rj:
Lj' = CRj. Lj (10)
where Lj is the luminance component of image region Rj of image IM and Lj is the modified luminance component of image region Rj.
The dynamic range of one or all of the regions of an image can thus be modified.
According to a variant, the luminance component L is given by:
Lj' = (x + (1— x). CRj)Lj (1 1 )
where x is an offset in the modification coefficient fixed for example by a user.
This variant makes it possible to modify the gradient of the modification function when the modification coefficient is too small.
According to an embodiment of step 30, shown in Figure 5, it is determined if a pixel belonging to an image region Rj is close, in the sense of a metric, to another image region Rk.
If this is not the case, the dynamic range of the image region Rj is modified by equation (10) or (1 1 ). This is referred to as direct modification.
However, if the pixel is considered as being close to another image region Rk, the modification coefficient CRj,k is then equal to the weighted sum of the modification coefficients relating to each of the image regions Rj and Rk. This is referred to as weighted modification.
In mathematical terms, the modification coefficient CRj,k is given by:
CRjik = CRj. Wj + CRk. Wk (12)
where CRj and CRk are the modification coefficients relating to image regions Rj and Rk and Wj and Wk are weighting coefficients given by:
[ log(Lw)-log(B)l \
Wx = ^ (13)
where x designates either index j or index k, N is a normalisation factor and B designates a parameter corresponding to the width of an intersection band situated on either side of a border delimiting image regions Rj and Rk as shown in Figure 3, and σ is
This embodiment makes it possible to enhance the spatial contrasts as the brightest image region then has a modification coefficient equal to 1 .
The methods described in relation to Figures 1 to 3 can, for example, be applied to an image IM originating from a TMO thus used to reduced the dynamic range of an original image IM.
According to an embodiment, the modification coefficient CRj is given by the equation:
CRi =^ <14>
where kj is the key calculated from equation (9) and kv is a key which gives an indication of the brightness of image IM.
This latter embodiment, which corresponds to the particular case where image IM is the outcome of the application of the PTR operator to an original image, makes it possible to achieve spatial coherence of the brightness of the original image.
According to an embodiment, the brightness indication of image IM is given by a key kv which is calculated by:
kv = exp (± .∑f=1 log(S + Lw(i))) (15) where N is the total number of pixels in image IM.
According to an embodiment, the modification coefficient CRt is given by:
.HDH .LDR
CRj = HDR ff£ (16)
j.max j
where kfDR is the key which is associated with an image region Rj and calculated according to equation (9) where LJ w k) is the luminance value of a pixel of image region Rj originating from luminance component Lw of image I M > is tne maximum key from among all keys associated with image region Rj, each of said keys being calculated according to equation (9) for
luminance values of the pixels of the image regions originating from luminance component Lw of image IM, k DR is the key which is associated with an image region Rj and calculated according to equation (9) where LJ w k) is the luminance value of a pixel of image region Rj originating from the luminance component modified according to equation (10) or (1 1 ), and kf ax is the maximum key from among all keys associated with the image regions, each of said keys being calculated according to equation (9) for luminance values of the pixels of the image regions originating from the luminance component modified according to equation (10) or (1 1 ).
This latter embodiment ensures the spatial coherence of the brightness of the original image, that is to say that the relative brightnesses of the different modified image regions follow the original relative brightnesses of these regions of image IM.
This latter embodiment is particularly advantageous in the case where image IM is the outcome of the application of a TMO to an original image as any type of TMO which applies to an image can then be used.
According to one of its hardware aspects, the invention relates to a device 400 for modifying the dynamic range of an image IM described with reference to Figure 4.
Device 400 comprises the following elements, interconnected by a digital address and data bus 81 :
- A calculation unit 43 (also called a central processing unit);
- A memory 45;
- A network interface 44, for interconnections between device 400 and other remote devices connected via a connection 41 ;
The calculation unit 43 can be implemented by a (possibly dedicated) microprocessor, a (possibly also dedicated) microcontroller, etc. The memory 45 can be implemented in a volatile and/or non-volatile form such as a RAM (random access memory), a hard disc, an EPROM (erasable programmable ROM), etc. Device 400 is configured to implement a method according to the invention described in relation to Figures 1 to 3.
For this purpose, means 43, 44 and possibly 45 cooperate with each other to obtain at least one image region, in order to associate a key with an
image region, each key defining an indication of the brightness of the pixels belonging to this image region. Means 43, 44 and possibly 45 also cooperate with each other to modify the dynamic range of the pixels belonging to an image region by multiplying the luminance values of these pixels belonging to this image region by a coefficient determined from the key associated with this image region.
According to another hardware aspect, the invention relates to a device CONV for converting an image whose luminance values belong to a given dynamic value range (HDR) to an image whose luminance values belong to a lower dynamic value range (LDR) than that of the original image. This is usually referred to as HDR to LDR dynamic range reduction.
Figure 5 shows a block diagram of such an image conversion device which implements an image modification method according to the invention.
Device CONV comprises a dynamic range conversion operator TMO which is applied to luminance component Lw of an original image SIO to obtain a modified image whose luminance values belong to a lower dynamic value range LDR than that of image SIO (HDR).
In the case of a colour image, device CONV comprises means GLW for obtaining the luminance component Lw of this colour image SIO. For example if an image SIO is expressed in an (R,G,B) colour space, the image is transformed in order to be expressed in the (Χ,Υ,Ζ) colour space so as to recover the Y channel of the (Χ,Υ,Ζ) space which forms the luminance component Lw. It is widely known to use such colour space transformation means. Other examples of means GLW can be used without leaving the scope of the invention. Device CONV also comprises means DIV and MULT for the purpose of conserving a constant saturation and the hue of the colours. These means DIV are configured to divide the R, G and B colour components corresponding to a colour image SIO by component Lw and means MULT are configured to multiply the R, G and B colour components thus modified by the modified luminance component. The three components originating from this multiplication are then expressed in floating values. To obtain a modified image LDR, these three components originating from this multiplication are submitted at the input of means Ftol of device CONV and undergo a
conversion of their values to whole values which belong to a dynamic value range for the screen on which the modified colour image must be displayed.
The operator TMO can be any TMO of the prior art which applies to a still image. The PTR operator described in the introductory section can for example be used. In this case, the modified luminance component is obtained from equation (5) or (6).
According to the invention, the conversion device also comprises means for modifying the dynamic range represented on the diagram by module C and means IAN for obtaining characteristics of the luminance component Lw. These means are configured so that the dynamic range of the values of the modified luminance component is in turn modified by one of the methods described in relation to one of Figures 1 to 3.
In Figures 4 and 5, the modules shown are functional units that may or may not correspond to physically distinguishable units. For example, these modules or some of them can be grouped together in a single component or circuit, or constitute functions of the same software. On the contrary, some modules may be composed of separate physical entities. The inter-image prediction devices compatible with the invention are implemented according to a purely hardware embodiment, for example in the form of a dedicated component (for example in an ASIC (application specific integrated circuit) or FPGA (field-programmable gate array) or VLSI (very large scale integration) or of several electronic components integrated into a device or even in the form of a mixture of hardware elements and software elements.
Although not explicitly described, the present embodiments can be used in combination or sub-combination.
Claims
1 . Method for modifying the dynamic range of an image (IM) by multiplying the luminance values of the pixels of the image by a modification coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels, characterised in that it comprises the following steps:
- obtaining (10) at least one image region (Rj),
- associating (20) a key (kj) with each image region, said key defining an indication of the brightness of the pixels belonging to this image region, and
- modifying (30) the dynamic range of the pixels of at least one image region by multiplying the luminance values of these pixels by a coefficient determined from the key thus associated with this image region.
2. Method according to claim 1 , wherein at least one image region is obtained by image segmentation.
3. Method according to claim 2, wherein at least one image region is obtained by using an image segmentation based on the luminance values of the pixels of this image.
4. Method according to one of the preceding claims, wherein during the step of modifying the dynamic range of the pixels whose luminance values belong to an image region,
- it is determined if a pixel belonging to an image region Rj is close, in the sense of a metric, to another image region (Rk), and
- if a pixel belonging to an image region (Rj) is considered as being close to another image region (Rk), the modification coefficient is then equal to the weighted sum of the modification coefficients relating to each of these two image regions (Rj and Rk).
5. Device for modifying the dynamic range of an image (IM) by multiplying the luminance values of the pixels of the image by a modification
coefficient determined from a value, called a key, which defines an indication of the brightness of the pixels, characterised in that it comprises the following means for:
- obtaining at least one image region (Rj),
- associating a key (kj) with each image region, said key defining an indication of the brightness of the pixels belonging to this image region, and
- modifying the dynamic range of the pixels belonging to an image region by multiplying the luminance values of these pixels by a coefficient determined from the key thus associated with this image region.
6. Device according to claim 5, which also comprises means for segmenting an image.
7. Device according to claim 6, wherein the means for segmenting an image are configured to implement a segmentation based on the luminance values of the pixels of this image.
8. Device according to one of claims 5 to 7, wherein the means for modifying the dynamic range of the pixels whose luminance values belong to an image region are configured to,
- determine if a pixel belonging to an image region is close, in the sense of a metric, to another image region (Rk), and
- if a pixel belonging to an image region (Rj) is considered as being close to another image region (Rk), the modification coefficient is then equal to the weighted sum of the modification coefficients relating to each of these two image regions (Rj and Rk).
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| FR1350745 | 2013-01-29 | ||
| FR1350745 | 2013-01-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014118032A1 true WO2014118032A1 (en) | 2014-08-07 |
Family
ID=50002715
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/EP2014/051116 Ceased WO2014118032A1 (en) | 2013-01-29 | 2014-01-21 | Method and device for modifying the dynamic range of an image |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2014118032A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040240749A1 (en) * | 2003-03-31 | 2004-12-02 | Seiko Epson Corporation | Image processing device, image processing method, and program |
| EP1857975A2 (en) * | 2006-05-17 | 2007-11-21 | Xerox Corporation | Histogram adjustment for high dynamic range image mapping |
| EP2372638A1 (en) * | 2010-03-04 | 2011-10-05 | Vestel Elektronik Sanayi ve Ticaret A.S. | A black and white stretch method for dynamic range extension |
| US20120113130A1 (en) * | 2009-06-29 | 2012-05-10 | Jiefu Zhai | Zone-based tone mapping |
-
2014
- 2014-01-21 WO PCT/EP2014/051116 patent/WO2014118032A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040240749A1 (en) * | 2003-03-31 | 2004-12-02 | Seiko Epson Corporation | Image processing device, image processing method, and program |
| EP1857975A2 (en) * | 2006-05-17 | 2007-11-21 | Xerox Corporation | Histogram adjustment for high dynamic range image mapping |
| US20120113130A1 (en) * | 2009-06-29 | 2012-05-10 | Jiefu Zhai | Zone-based tone mapping |
| EP2372638A1 (en) * | 2010-03-04 | 2011-10-05 | Vestel Elektronik Sanayi ve Ticaret A.S. | A black and white stretch method for dynamic range extension |
Non-Patent Citations (5)
| Title |
|---|
| CHUN-MING TSAI ET AL: "Contrast enhancement by automatic and parameter-free piecewise linear transformation for color images", IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, IEEE SERVICE CENTER, NEW YORK, NY, US, vol. 54, no. 2, 1 May 2008 (2008-05-01), pages 213 - 219, XP011229882, ISSN: 0098-3063, DOI: 10.1109/TCE.2008.4560077 * |
| HWANN-TZONG CHEN ET AL: "Tone Reproduction: A Perspective from Luminance-Driven Perceptual Grouping", INTERNATIONAL JOURNAL OF COMPUTER VISION, KLUWER ACADEMIC PUBLISHERS, BO, vol. 65, no. 1-2, 1 November 2005 (2005-11-01), pages 73 - 96, XP019216486, ISSN: 1573-1405, DOI: 10.1007/S11263-005-3846-Z * |
| KRAWCZYK G ET AL: "Computational model of lightness perception in high dynamic range imaging", PROCEEDINGS OF SPIE, S P I E - INTERNATIONAL SOCIETY FOR OPTICAL ENGINEERING, US, vol. 6057, 16 January 2006 (2006-01-16), pages 605708 - 1, XP002596494, ISSN: 0277-786X, [retrieved on 20060203], DOI: 10.1117/12.639266 * |
| MENOTTI D ET AL: "Multi-Histogram Equalization Methods for Contrast Enhancement and Brightness Preserving", IEEE TRANSACTIONS ON CONSUMER ELECTRONICS, IEEE SERVICE CENTER, NEW YORK, NY, US, vol. 53, no. 3, 1 August 2007 (2007-08-01), pages 1186 - 1194, XP011193667, ISSN: 0098-3063, DOI: 10.1109/TCE.2007.4341603 * |
| PRATT W K ED - PRATT W K: "Digital Image Processing (Third Edition), Chapter 10 Image Enhancement", 1 January 2001, DIGITAL IMAGE PROCESSING : PIKS INSIDE, NEW YORK : JOHN WILEY & SONS, US, PAGE(S) 243 - 296, ISBN: 978-0-471-37407-7, XP002407529 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Ancuti et al. | Night-time dehazing by fusion | |
| US9076218B2 (en) | Method and image processing device for image dynamic range compression with local contrast enhancement | |
| Wang et al. | A fusion-based method for single backlit image enhancement | |
| Huang et al. | Efficient contrast enhancement using adaptive gamma correction with weighting distribution | |
| Jiang et al. | Image dehazing using adaptive bi-channel priors on superpixels | |
| US9165210B1 (en) | Systems and methods for localized contrast enhancement | |
| Zhang et al. | A naturalness preserved fast dehazing algorithm using HSV color space | |
| CN112541868B (en) | Image processing method, device, computer equipment and storage medium | |
| JP7307371B2 (en) | Image adjustment device, image adjustment method and program | |
| CN115115554A (en) | Image processing method and device based on enhanced image and computer equipment | |
| Su et al. | Joint contrast enhancement and noise reduction of low light images via JND transform | |
| Albu et al. | One scan shadow compensation and visual enhancement of color images | |
| Lee et al. | Color preserving contrast enhancement for low light level images based on retinex | |
| KR101516632B1 (en) | Bipartite histogram equalization apparatus maintain the rate of mean brightness of video using visual threshold | |
| CN110175967B (en) | Image defogging processing method, system, computer device and storage medium | |
| CN109035182B (en) | An Adaptive Dynamic Dual-Histogram Equalization Method | |
| Singh et al. | A survey of image enhancement techniques | |
| CN108305234A (en) | A kind of Double-histogram equalization methods based on optimal model | |
| Singh et al. | Performance Evaluation of Various Histogram Equalization Techniques on Thermal Images | |
| WO2014118032A1 (en) | Method and device for modifying the dynamic range of an image | |
| Okado et al. | Fast and high-quality regional histogram equalization | |
| Singh et al. | Enhanced color correction using histogram stretching based on modified gray world and white patch algorithms | |
| Kayalvizhi et al. | Enhancing Visual Clarity via Color Model-Based Histogram Equalization | |
| Chang et al. | Perceptual contrast enhancement of dark images based on textural coefficients | |
| Safonov et al. | Adaptive global and local contrast enhancement |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14701342 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14701342 Country of ref document: EP Kind code of ref document: A1 |