Method and apparatus of creating a perceptual harmony map

Information

  • Patent Grant
  • 9478044
  • Patent Number
    9,478,044
  • Date Filed
    Wednesday, March 26, 2014
    10 years ago
  • Date Issued
    Tuesday, October 25, 2016
    8 years ago
Abstract
The present invention generally relates to a method and apparatus for creating an harmony map of an image. It also relates to a method and apparatus for assessing the quality of an image. The invention also relates to a method and apparatus for assessing the quality of an image such that an assessment score of the image is obtained from a perceptual map of the image created from the previous method. As an interesting tool for content creator and in the goal of maximizing the artistic effect, the proposed method provides perceptual harmony-guided quality map as well as a score of disharmony of a picture without reference image. The method links two distinct subjects: perceptual quality metric and harmonious hue templates in order to provide new tools to content creator whatever the expertise level.
Description

This application claims the benefit, under 35 U.S.C. §365 of International Application PCT/EP2014/056069, filed Mar. 26, 2014, which was published in accordance with PCT Article 21(2) on Oct. 2, 2014 in English and which claims the benefit of European patent application No. 13305394.2, filed Mar. 28, 2013.


1. FIELD OF INVENTION

The present invention generally relates to a method and apparatus for creating an harmony map of an image. It also relates to a method and apparatus for assessing the quality of an image.


2. TECHNICAL BACKGROUND

When manipulating, editing, improving image, the best quality as well as a certain artistic intent are usually the finality. Nevertheless, although the issues related to objective quality assessment have been widely studied in the context of low level artefacts (such as blur, blockiness, jitter, . . . ), the artistic intent is a problem somehow more tricky and subjective leading to high difficulties in modeling or generalization.


As an intermediate indicator, aesthetic quality metric based on features (colorfulness, line orientation, shape, . . . ) intuitively related to beauty and rules (composition, rules-of-third, skyline, . . . ) are showing up recently in the community.


Depending on the application context, some approaches take advantage of a reference source or do the best effort without any reference when providing an absolute quality measurement.


The problem solves by the invention is to define a method for assessing the color harmony of an image and for assessing what the quality of an image (picture) is.


3. SUMMARY OF THE INVENTION

The invention solves this problem by defining a method for creating a perceptual harmony map of an image which comprises:

    • calculating a multi-resolution decomposition of the image,
    • at each resolution level,
    • for each harmonious color template, computing an optimal rotation angle and an harmony distance for the hue value associated with each pixel of the image at the resolution level, and computing a harmony distance map by weighting the sum of said harmony distances,
    • calculating a contrast map and an entropy activity map,
    • obtaining a perceptual harmony map by integrating together the contrast map the entropy activity map and the harmony distance map, and
    • obtaining the perceptual map by accumulating the perceptual harmony maps.


The invention also relates to a method for assessing the quality of an image characterized in that an assessment score of the image is obtained from a perceptual map of the image created from the previous method.


As an interesting tool for content creator and in the goal of maximizing the artistic effect, the proposed method provides perceptual harmony-guided quality map as well as a score of disharmony of a picture without reference image.


The method links two distinct subjects: perceptual quality metric and harmonious hue templates in order to provide new tools to content creator whatever the expertise level.


The multi-resolution decomposition of the image is processed to calculate a perceptual harmony map at different resolutions of the image in order to mimic the human visual system.


Moreover, each perceptual harmony map is obtained by applying masking functions to the harmony distance map or, in other words, by integrating together the contrast map, the entropy activity map and the harmony distance map. Such masking of the harmony distance map provides information regarding local and global visibility.


The specific nature of the invention as well as other objects, advantages, features and uses of the invention will become evident from the following description of a preferred embodiment taken in conjunction with the accompanying drawings.





4. LIST OF FIGURES

The embodiments will be described with reference to the following figures:



FIG. 1 represents color templates;



FIG. 2 depicts a flowchart of the processing method for creating a perceptual harmony map of an image; and



FIG. 3 depicts a device according comprising means to implement the method for creating a perceptual harmony map of the image.





5. DETAILED DESCRIPTION OF A PREFERRED EMBODIMENT OF THE INVENTION

Harmony is a subjective concept whose difficulties lie on its definition and its measurement. Fedorovskaya et al. (E. Fedorovskaya, C. Neustaedter, and W. Hao. Image harmony for consumer images. In Image Processing, 2008. ICIP 2008. 15th IEEE International Conference on, pages 121-124, October) investigated through a series of experiments the identification of some image features involving harmony (dis)comfort. They found out that edge contrast, average lightness, range of lightness . . . may influence global harmony appreciation. Despite this previous reference, most of harmony investigations in image processing field relates to color combinations and complementaries. Starting with Itten contrast measurement where harmonious doublets and triplets of color are defined (J. Itten. The art of color: the subjective experience and objective rationale of color. Van Nostrand Reinhold, New York, 1973.), Matsuda (Y. Matsuda. Color design, Asakura Shoten, 1995) extended this work by defining HSV (Hue, Saturation, Value)-based templates that predict set of harmonious hues within an image.


An harmonious color template is thus a set of HSV values (hue, saturation and value) that are considered as rendering/reflecting a global harmonious effect when present at the same time. Height harmonious color templates Tm (mε{i, I, L, T, V, X, Y, J}) are used as depicted on FIG. 1. The harmonious color templates O and N are not used. Each harmonious color template Tm is made of different portions/sectors to handle color complementary, color orthogonality and set of close hues. Each sector has a center αm and a size wm. A harmonious color template may be turned around the hue wheel. Thus an harmonious color template is defined by a template type and a sector angle αm.


A complete implementation of the invention is depicted in FIG. 2. One can notice that the following method can be extended to video source by applying same process to consecutive frames.


At step 10, a multi-resolution decomposition of the image is calculated.


For example, a Discrete Wavelet Transform (DWT) which has proven to be efficient both in term of prediction and computation performances (A. Ninassi, O. LeMeur, P. Le Callet, and D. Barba. On the performance of human visual system based image qual-ity assessment metric using wavelet domain. Pages 680610-680610-12, 2008.). A CDF 9/7 (Cohen-Daubechies-Feauveau) kernel may be used.


Each decomposition level comprises three orientation subbands (horizontal, vertical, and oblique frequencies). The spatial frequency range of a decomposition level lε[0; L−1] is [2−(l+1)·fmax; 2−1·fmax] where fmax is the maximum spatial frequency of an input image Im.


At step 20, at each resolution level l, for each harmonious color template Tm, an optimal rotation angle αm,l is computed and an harmony distance HDm,l(h) is computed for the hue value h associated with each pixel (x,y) of the image Im at the resolution level l. A harmony distance map HDMapl(x,y) is then calculated for each pixel of the image Im at the resolution level l by weighting the sum of said harmony distances HDm,l(h).


According to an embodiment, the optimal rotation angle αm,l which is computed for a harmonious color template Tm minimizes the energy Eαm,l defined by the Kullback-Liebler divergence between the original hue distribution Mh,l of the image Im at the resolution level l and the distribution Ph,l(m, αm,l) of the harmonious color template Tm for the angle αm,l such as described, for example by Baveye et al. (Y. Baveye, F. Urban, C. Chamaret, V. Demoulin, and P. Hellier. Saliency-guided consistent color harmonization. In S. Tominaga, R. Schettini, and A. Trmeau, editors, Computational Color Imaging, volume 7786 of Lecture Notes in Computer Science, pages 105-118. Springer Berlin Heidelberg, 2013).


Note that the distributions Mh,l and Ph,l(m, l, αm,l) may be considered as being histograms with 360 bins.


The distributions Mh,l, i.e. the color histogram Mh,l, is computed in the HSV space as a normalized hue distribution weighted by saturation S(x,y) and value V(x,y):







M

h
,
l


=


1


Σ

(

x
,
y

)




S


[

x
,
y

]


*

V


[

x
,
y

]




*





(

x
,
y

)



{



(

u
,
v

)


\


H


[

u
,
v

]



=
h

}










S


[

x
,
y

]


*

V


[

x
,
y

]









where (x,y) is a pixel belonging to the image Im at each resolution level l.


Mathematically speaking, the energy Eαm,l is given by:







E

α

m
,
l



=


min
α





h








M

h
,
l



x






ln


(


M

h
,
l




P

h
,
l




(

m
,
α

)



)









with the distribution Ph,l(m, α) for a harmonious color template Tm with n sectors is given by:








P

h
,
l




(

m
,
α

)


=




k
=
1

n








S
k



(

m
,

α
k


)







and a distribution of a sector Sk(m, αk) given for each bin value i by:








{




exp
(

-

1

1
-

(


2





x




i
-

α
k






w
k


)




)




sih


[



α
k

-


w
k

2


,


α
k

+


w
k

2



]






0


otherwise








The invention is not limited by the way the distribution is defined.


According to an embodiment, the harmony distance HDm,l(h) is an arc-length distance on the hue wheel (measured in degrees) given by:








HD

m
,
l




(
h
)


=

{



0




if








h
-

α
k





<


w
k

2










h
-

α
k




-


w
k

2




otherwise








where ∥•∥ is the arc-length distance, αk is the closest sector center, wk its size in degrees and h is the hue value of a pixel of the image Im at a resolution level l.


According to an embodiment, the harmony distance map HDMapl(x,y) is the sum of said harmony distances HDm,l(h) weighted by the relative energy calculated over the harmonious color templates.


Mathematically speaking, the harmony distance map HDMapl(x,y) is given by:








HDMap
l



(

x
,
y

)


=




T
m











E
Total

-

E

α

m
,
l





E
Total





xHD

m
,
l




(
h
)








At step 30, a contrast map (Ml,o(m,n) is calculated for each resolution level l.


The contrast map models the visibility change of the signal due to contrast values.


According to an embodiment, when a DWT is used at step 10, the contrast masking is defined as the wavelet transformed values at site (m,n), weighted by the CSF function that describes, at a resolution level l the variations in visual sensitivity to the spatial frequency and orientation o.


Mathematically speaking, given a CSF value Nl,o as the mean value of a 2D CSF from Daly (S. Daly. Digital images and human vision. Chapter The visible differences predictor: an algorithm for the assessment of mage) over the spatial frequencies covered by a subband Sl,o, the contrast masking map is given by:

CMl,o(m,n)=sl,o(m,nNl,o


At step 40, an entropy activity map SMLl(x,y) is calculated for each resolution level l.


The entropy activity map reflects the uncertainty of the image such as in texture area.


According to an embodiment, the entropy activity map SMLl is evaluated by the computation of entropy on a n-by-n neighborhood.


Preferably, the entropy activity map SMLl is evaluated by computing as the minimum of the directional gradients (horizontal, vertical, diagonal) for each pixel (x,y) of the image Im. Such a semi-local activity map SMLl is then given by








SML
l



(

x
,
y

)


=

min


(




I



x


,



I



y


,


1
2

·

(




I



x


+



I



y



)



)






where I is the input image.


The harmony distance maps are computed at differents resolutions level to match the HVS model.


At step 50, for each resolution level l, the contrast map CMl,o (m,n), the entropy activity map SMLl(x,y) and the harmony distance map HDMapl(x,y) are integrated together to get a perceptual harmony map PHDMapl(x,y).


According to an example, said perceptual harmony distance map PHDMapl(x,y) is given by:








PHDMap
l



(

m
,
n

)


=



HDMap
l



(

m
,
n

)



1
+


1
2



(



Σ
o




CM

l
,
o




(

m
,
n

)



+


SML
i



(

m
,
n

)



)








where (m,n) are the coordinates corresponding to the pixel (x,y) of the image Im at resolution level l.


At step 60, the perceptual harmony maps PHDMapl(m,n) are accumulated to built a perceptual map PHMap (x,y).


Mathematically speaking, the perceptual map PHMap (x,y) is given by:







PHMap


(

x
,
y

)


=



l








PHDMap
l



(

m
,
n

)







Note the perceptual map PHMap (x,y) is visually close to a harmony distance map computed by accumulating the harmony distance map HDMapl(x,y), but integrates masking effects by decreasing impact of small group of pixels.


According to an aspect of the invention, a method for assessing the quality of an image is defined by obtaining a rating or assessment score R of the image from the perceptual map PHMap (x,y) (step 70 in FIG. 2).


According to an embodiment, the rating R is computed from by means of a Minkowski summation given by:






R
=


(


1

W
·
H






y
H









x
W








(

PHMap


(

x
,
y

)


)

β




)


1
β






where W and H are respectively the width and height of the image Im and β is a parameter set for example to 2.


The color information of an image at a resolution level is carried by the lowest subband.


Consequently, according to a variant of the method, the contrast and entropy activity map are integrated with the harmony distance map at a given resolution level only for the lowest subband of this resolution level.



FIG. 3 represents an exemplary architecture of a processing device 300 according to a specific and non limiting embodiment. The processing device can be for example a tablet, a PDA or a cell phone. Processing device 300 comprises following elements that are linked together by a data and address bus 30:

    • a microprocessor 31 (or CPU), which is, for example, a DSP (or Digital Signal Processor);
    • a ROM (or Read Only Memory) 32;
    • a RAM (or Random Access Memory) 33;
    • one or several Input/Output interface(s) 35, for example a keyboard, a mouse; and
    • a battery 36.


Each of these elements of FIG. 3 are well known by those skilled in the art and won't be disclosed further. The processing device 300 may comprise display means such as a screen for displaying the processed images. Algorithm of the processing method according to the invention are stored in the ROM 32. RAM 33 comprises in a register, the program executed by the CPU 31 and uploaded after switch on of the processing device 300. When switched on, the CPU 21 uploads the program in the RAM and executes the corresponding instructions. The images to be processed are received on one of the Input/Output interfaces 35. One of the Input/Output interface 35 is adapted to transmit the images processed according to the invention.


According to variants, processing devices 300 compatible with the invention are implemented according to a purely hardware realisation, 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 a form of a mix of hardware elements and software elements.


While not explicitly described, the present embodiments and variants may be employed in any combination or sub-combination.

Claims
  • 1. A method performed by a device for creating a perceptual harmony map of an image from at least one harmonious color template defined by a center and at least a sector wherein the method comprises: calculating, by a processor, a multi-resolution decomposition of the image,at each resolution level, for each harmonious color template, computing, by said processor, an optimal rotation angle of said harmonious color template around its center and an harmony distance for the hue value associated with each pixel of the image at the resolution level, said harmony distance quantifying the distance between said hue value and a sector of said harmonious color template, and computing a harmony distance map by weighting the sum of harmony distances calculated for the harmonious color templatescalculating, by said processor, a contrast map and an entropy activity map reflecting the uncertainty of the image,obtaining, by said processor, a perceptual harmony map by integrating together the contrast map the entropy activity map and the harmony distance map, andobtaining, by said processor, the perceptual map by accumulating the perceptual harmony maps calculated over the different resolution levels.
  • 2. The method of claim 1, wherein an assessment score of the image is obtained, by said processor, from the perceptual map.
  • 3. A processor readable non-transitory medium having stored therein instructions for causing a processor to perform at least the steps of the method according to claim 1.
  • 4. A processor readable non-transitory medium having stored therein instructions for causing a processor to perform at least the steps of the method according to claim 2.
  • 5. Non-transitory storage medium carrying instructions of program code for executing steps of the method according to claim 1, when said program is executed on a computing device.
  • 6. Device for creating a perceptual harmony map of an image from at least one harmonious color template defined by a center and at least a sector wherein it comprises a processor configured to: calculate a multi-resolution decomposition of the image,at each resolution level, for each harmonious color template, compute an optimal rotation angle of said harmonious color template around its center and an harmony distance for the hue value associated with each pixel of the image at the resolution level, said harmony distance quantifying the distance between said hue value and a sector of said harmonious color template, and compute a harmony distance map by weighting the sum of harmony distances calculated for the harmonious color templatescalculate a contrast map and an entropy activity map reflecting the uncertainty of the image,obtain a perceptual harmony map by integrating together the contrast map the entropy activity map and the harmony distance map, andobtain the perceptual map by accumulating the perceptual harmony maps calculated over the different resolution levels.
  • 7. A device for assessing the quality of an image, wherein it comprises a processor configured to obtain an assessment score of the image from a perceptual map of the image, the device wherein the processor is further configured to: calculate a multi-resolution decomposition of the image,at each resolution level, for each harmonious color template, compute an optimal rotation angle of said harmonious color template around its center and an harmony distance for the hue value associated with each pixel of the image at the resolution level, said harmony distance quantifying the distance between said hue value and a sector of said harmonious color template, and compute a harmony distance map by weighting the sum of harmony distances calculated for the harmonious color templatescalculate a contrast map and an entropy activity map reflecting the uncertainty of the image,obtain a perceptual harmony map by integrating together the contrast map the entropy activity map and the harmony distance map, andobtain the perceptual map by accumulating the perceptual harmony maps calculated over the different resolution levels.
Priority Claims (1)
Number Date Country Kind
13305394 Mar 2013 EP regional
PCT Information
Filing Document Filing Date Country Kind
PCT/EP2014/056069 3/26/2014 WO 00
Publishing Document Publishing Date Country Kind
WO2014/154753 10/2/2014 WO A
US Referenced Citations (4)
Number Name Date Kind
7023447 Luo Apr 2006 B2
8867844 Van Beek Oct 2014 B2
8879813 Solanki Nov 2014 B1
9002085 Solanki Apr 2015 B1
Foreign Referenced Citations (5)
Number Date Country
1748385 Jan 2007 EP
1764736 Mar 2007 EP
1936566 Jun 2008 EP
2141658 Jan 2010 EP
WO2005059832 Jun 2005 WO
Non-Patent Literature Citations (11)
Entry
Baveye et AL: “Saliency guided consistent color harmonization”; Computational Color Imaging, vol. 7786, Mar. 3, 2013 (Mar. 3, 2013); pp. 105-118.
Chamaret et AL: “No reference harmony guided quality assessment”; 2013 IEEE Conference on Computer Vision and Pattern Recognition Workshops, IEEE; Jun. 23, 2013 (Jun. 3, 2013); pp. 961-967.
Cohen et AL:“Color Harmonization”; ACM SIGGRAPH 2006 Courses on, SIGGRAPH 0601 Jan. 2006 (Jan. 1, 2006), p. 624-630.
Huo et AL: “An improved method for color harmonization”; Image and Signal Processing, 2009CISP 092nd International Congress on, IEEE, Oct. 17, 2009 (Oct. 17, 2009)pp. 1-4.
Datta et AL: “Studying aesthetics in photographic images using a computational approach”; in Proceedings of the 9th European Conference on Computer Vision—vol. Part III, ECCV'06, pp. 288-301.
Fedorovskaya et AL: Abstract: “Image harmony for consumer images”; In Image Processing, 15th IEEE International Conference, 2008; pp. 121-124.
Itten: “The Elements of Color”; The art of color the subjective experience and objective rationale of color; Van Nostrand Reinholdl pp. 1-98.
Ninassi et AL: “On the performance of human visual system based image quality assessment metric using wavelet domain”; pp. 1-12.
Moon et AL: “Geometric Formulation of Classical Color Harmony”; Journal of Optical Soc. Am., vol. 34(1): pp. 46-50, 1944.
Tokumaru et al: “Color Design Support System Considering Color Harmony”; IEEE; 2002; pp. 378-383.
Search Report Dated Sep. 23, 2014.
Related Publications (1)
Number Date Country
20160055655 A1 Feb 2016 US