supplemental material: color compatibility from large datasetsdonovan/color/supplemental.pdf ·...

10
Supplemental Material: Color Compatibility From Large Datasets Peter O’Donovan, Aseem Agarwala, and Aaron Hertzmann Project URL: www.dgp.toronto.edu/ ˜ donovan/color/ 1 Unmixing color preferences In the paper, we plot the average ratings of all themes containing each color. However, this mixes together the contributions of each color to the rating. Here we consider an approach to “unmixing” the effect of color preferences on theme ratings. We discretize hues, and treat each distinct hue j as having a hidden “quality” q j . Suppose a theme t has rating r. We model this theme’s rating as arising from the average of the qualities of the N 5 colors of a theme as: r = X j t q j /N (1) The Kuler data provides us with a large collection of pairs of themes and rankings. Each theme has a rating and set of colors, yielding a linear equation of the form of Eqn. 1. We can directly estimate the qualities q of each color by solving the resulting system of equations in a least-squares sense. Only saturated and light colors are considered (c sat sat and c val val ), and themes with no saturated or light colors are ignored. We plot the results for the average ratings of all themes containing each color, along with the unmixed weights. Note that while the results are noisier, particularly for MTurk due to the fewer constraints, the same relative preference for hues is apparent with more exaggerated peaks and valleys. 2 HSV histograms of Kuler data In Figures 2 and 3 we plot the distribution of colors with respect to hue versus saturation, and hue versus value for both datasets. The distribution of colors from both datasets is very similar, showing a strong preference for bright warm colors and cyans. Note that fully saturated colors are extremely popular for all hues. However, de-saturated yellows are common, with reds tending to be more saturated. Greens are mostly lighter and unsaturated. 3 Joint hue histograms of Kuler and COLOURLovers data In Figure 4 we show the joint probability over all hues in a theme. That is, the probability that two hues will be in the same theme, regardless of adjacency. Results are similar to probabilities for adjacent hues with strong diagonal lines present in the Kuler dataset which indicate the use of hue templates (see main text for discussions). 1

Upload: others

Post on 11-Sep-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Supplemental Material:Color Compatibility From Large Datasets

Peter O’Donovan, Aseem Agarwala, and Aaron Hertzmann

Project URL: www.dgp.toronto.edu/˜donovan/color/

1 Unmixing color preferencesIn the paper, we plot the average ratings of all themes containing each color. However, this mixes togetherthe contributions of each color to the rating. Here we consider an approach to “unmixing” the effect ofcolor preferences on theme ratings.

We discretize hues, and treat each distinct hue j as having a hidden “quality” qj . Suppose a theme thas rating r. We model this theme’s rating as arising from the average of the qualities of the N ≤ 5 colorsof a theme as:

r =∑j∈t

qj/N (1)

The Kuler data provides us with a large collection of pairs of themes and rankings. Each theme hasa rating and set of colors, yielding a linear equation of the form of Eqn. 1. We can directly estimatethe qualities q of each color by solving the resulting system of equations in a least-squares sense. Onlysaturated and light colors are considered (csat > τsat and cval > τval ), and themes with no saturated or lightcolors are ignored. We plot the results for the average ratings of all themes containing each color, alongwith the unmixed weights. Note that while the results are noisier, particularly for MTurk due to the fewerconstraints, the same relative preference for hues is apparent with more exaggerated peaks and valleys.

2 HSV histograms of Kuler dataIn Figures 2 and 3 we plot the distribution of colors with respect to hue versus saturation, and hue versusvalue for both datasets. The distribution of colors from both datasets is very similar, showing a strongpreference for bright warm colors and cyans. Note that fully saturated colors are extremely popular forall hues. However, de-saturated yellows are common, with reds tending to be more saturated. Greens aremostly lighter and unsaturated.

3 Joint hue histograms of Kuler and COLOURLovers dataIn Figure 4 we show the joint probability over all hues in a theme. That is, the probability that two hueswill be in the same theme, regardless of adjacency. Results are similar to probabilities for adjacent hueswith strong diagonal lines present in the Kuler dataset which indicate the use of hue templates (see maintext for discussions).

1

Page 2: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

0 50 100 150 200 250 300 3502.3

2.4

2.5

2.6

2.7

2.8

2.9

3

3.1

3.2

Hue

Rat

ing

KulerCOLOURLoversMTurk−ThemesMTurk−Colors

0 50 100 150 200 250 300 350

2.4

2.6

2.8

3

3.2

3.4

3.6

Hue

Qua

lity

KulerCOLOURLoversMTurk−ThemesMTurk−Colors

Figure 1: Color preferences. Left: Mean rating of themes containing each hue, and individual color ratingsfrom MTurk. Right: Unmixed rating quality for each hue.

Figure 2: Kuler color density of hue versus saturation (left), hue versus value (right).

Figure 3: COLOURLovers color density of hue versus saturation (left), hue versus value (right).

2

Page 3: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

Joint Hue Density Joint Hue Density Joint Hue Density

Figure 4: Joint probability over all hues in a theme. Top left, COLOURLovers dataset. Top right, Kulerdataset. Bottom, Kuler dataset with hues remapped to BYR color wheel used in Kuler interface. Diagonallines indicate hue templates (see main text for discussion)

4 Hue templatesIn Figure 5 we show all the hue templates for COLOURLovers, Kuler, and Matsuda. In Figure 6 we showthe histogram of template distance for the Kuler and COLOURLovers datasets. Note the spike around zerofor templates implemented in the Kuler interface which is mostly lacking in the COLOURLovers data. Inthe COLOURLovers interface, templates are harder to find and utilize than in Kuler. These results showthat people only gravitate towards the most basic templates like i, V, and I, and which are also implementedin both interfaces.

In Figure 7 and 8 we show the breakdown of ratings versus distance for each template. Note thatgenerally, the distance to a template does not appear to be strongly connected to ratings. However, forsimple templates like i, V, I which are implemented in Kuler and COLOURLovers, being too close to thetemplate actually results in a lower rating.

We also assign themes to their nearest template and plot the histogram count along with mean ratingswith standard deviation and 2 standard error. The results show a great deal of variation but generally,themes distant from a template do not score lower than themes nearer a template. Certain templates aremore popular than others, particularly simpler templates like V and L, which both indicate a set of nearbyhues. Monochromatic themes (template i) are popular in MTurk, but less popular in COLOURLovers andKuler. The R and X templates which have 3 and 4 hues spread equally across the hue wheel are among theleast popular, as are greyscale themes (template N). We show two thresholds (in Figures 9 and 10. Notethat the mean ratings are similar, as are the relative popularity of the templates.

5 Feature weightsSee weight.csv in the submitted code and data zip file for weights. The naming convention is to specify thecolor space first (hsv, chsv, lab, rgb). This is followed by the feature name (for ex, SortedDiff, or StdDev).Next, the dimension of the color space is specified (D1, D2, or D3), followed by the color (C1,C2,C3,C4,or C5) if they are present in the feature. For example, labMedian-D3 indicates the median of the 5 colorsof the third dimension in CIELab(B). rgb-D1-C4 indicates the first dimension of RGB space (R) of thefourth color of the theme.

3

Page 4: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

i V I

R C X

i V L I

T Y X N

.

i V I

R C N

.

Figure 5: Hue templates implemented in COLOURLovers(left), Kuler (middle), and those proposedby Matsuda [1995] (right). Kuler implements several color selection rules (equivalent to Matsuda’s i, V,I), as well as others: t(R)iad, (C)ompound. Each theme is described by a color wheel, with gray areas forthe hues used by that theme. COLOURLovers implements the i, V, I, R, Y, X templates. Matsuda usessectors over the hue wheel, whereas Kuler and COLOURLovers use fixed angle distances which matchesclassical theory. To compare with Matsuda we use the sector centers, or equally spaced hues in the sectors.

6 Minimum RatingsIn Figure 11 we plot the effect of increasing the minimum number of ratings for each theme. A mini-mum number of 2 ratings was chosen as this provided a large gain over the baseline estimator while stillpreserving a large number of themes.

7 Color Suggestion DistanceHow good are color suggestions made by our model? In the main paper, we show the results of a studyapplying these to graphic designs. However, another test is to select a random color from a theme, set itto grey, and optimize for the best possible color using our model. Since the themes were human-rated,we have an estimate of the original color’s quality. When theme is poorly rated, we expect the originalcolor was badly chosen, so our model will likely choose a more distant color. However, when the themeis highly rated, we expect that the user has chosen a good color. So we expect that on average, our choicewould be closer. We can then plot the distance from original to optimized color (in CIELab) compared tothe human rating. If the model suggests good colors on average, we expect to see a downward trend.

In Figure 12 we plot the results for themes from the Kuler and MTurk test datasets (4,861 and 4,291themes respectively). We only use the MTurk and Kuler datasets as both have ground-truth human ratings.Both models have a downward trend which helps validate our model. For Kuler, the increased noise islikely since the low numbers of ratings per theme create more variance along the x-axis.

4

Page 5: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

0 20 40 60 80 100 120

100

200

300

400

500

600

1391

Distance to template

Cou

nt

iIVRC

. . .

0 50 100 1500

20

40

60

80

100

120

140

Distance to template

Cou

nt

TYXL

0 20 40 60 80 100 120

500

1000

1500

2000

2500

3000

3500

4000

Distance to template

Cou

nt

iIVRYX

0 50 100 1500

50

100

150

200

250

300

350

400

Distance to template

Cou

nt

TLC

Figure 6: Top row, template distance in Kuler dataset for interface-implemented templates, and for therest of Matsuda’s templates. Bottom row, template distance for COLOURLovers dataset for interface-implemented templates, and for the rest of Matsuda’s templates. Note the spike around zero for templatesimplemented in the Kuler interface which is mostly lacking in the COLOURLovers data.

5

Page 6: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

i template. Implemented in Kuler. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

I template. Implemented in Kuler. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

V template. Implemented in Kuler. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

R template. Implemented in Kuler. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

C template. Implemented in Kuler

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

N template

KulerColorloversMTurk

Figure 7: Mean rating versus template distance for each template. Error bars show 2 standard errors.

6

Page 7: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

Y template. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

X template. Implemented in ColorLovers

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

L template

KulerColorloversMTurk

0 10 20 30 40 50 60 70 80 902

2.2

2.4

2.6

2.8

3

3.2

3.4

3.6

3.8

4

Distance to template

Rat

ing

T template

KulerColorloversMTurk

Figure 8: Mean rating versus template distance for each template. Error bars show 2 standard errors.

7

Page 8: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

V i I L C R X Y T N Other1.5

2

2.5

3

3.5

4

4.5

Template

Rat

ing

w/ s

td d

ev

KulerColorloversMTurk

V i I L C R X Y T N Other2.7

2.8

2.9

3

3.1

3.2

3.3

3.4

TemplateR

atin

g w

/ std

err

KulerColorloversMTurk

V i I L C R X Y T N Other0

0.05

0.1

0.15

0.2

0.25

0.3

0.35

Nor

mal

ized

Cou

nt

Template

KulerColorLovers

Figure 9: Template mean ratings with standard deviation and 2 standard errors, and histogram count.Themes assigned to template if distance < 90 degrees. See main text for description of distance metric.

8

Page 9: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

V i I L C R Y X T N Other1.5

2

2.5

3

3.5

4

4.5

Template

Rat

ing

w/ s

td d

ev

KulerColorloversMTurk

V i I L C R Y X T N Other2.6

2.7

2.8

2.9

3

3.1

3.2

3.3

3.4

TemplateR

atin

g w

/ std

err

KulerColorloversMTurk

V i I L C R Y X T N Other0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Nor

mal

ized

Cou

nt

Template

KulerColorLovers

Figure 10: Template mean ratings with standard deviation and 2 standard errors, and histogram count.Themes assigned to template if distance < 60 degrees. See main text for description of distance metric.

9

Page 10: Supplemental Material: Color Compatibility From Large Datasetsdonovan/color/supplemental.pdf · Color Compatibility From Large Datasets 0 50 100 150 200 250 300 350 2.3 2.4 2.5 2.6

Color Compatibility From Large Datasets

Figure 11: Top, effect of increasing the minimum number of ratings for Kuler dataset. Bottom, histogramof theme count for each test.

0.5 1 1.5 2 2.5 3 3.5 4 4.5 510

20

30

40

50

60

70

80

Human Rating

Dis

tanc

e to

Orig

inal

Col

or

Distance of Optimized Color to Original Color Vs Theme RatingMTurkKuler

Figure 12: Distance of an optimized color from the original compared to the theme rating. A downwardtrend indicates that the model generally suggests colors which are closer to the original for highly ratedthemes (where the original color choice was likely good) than for poorly-rated themes (where the originalcolor choice was likely poor).

10