42
Colour an algorithmic approach Thomas Bangert [email protected] http://www.eecs.qmul.ac.uk/~ tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colour an algorithmic approach Thomas Bangert [email protected] tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Embed Size (px)

Citation preview

Page 1: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colouran algorithmic approach

Thomas [email protected]

http://www.eecs.qmul.ac.uk/~tb300/pub/PhD/Stage1Report.pptx

PhD Research Topic

Page 2: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

part 1: The Colour Model

The Munsell Colour Model

actual mapping to human vision

A colour catalog vs a colour model

Page 3: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

color catalog vs colour model• catalog requires selection of colours based on

perceptual matching• partial colour model codes spectrum as systematic

mixing of wavelengths• true colour model codes the color of spectrum

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

350

367

383

400

416

433

449

466

482

499

515

532

548

565

581

598

614

631

647

664

681

697

714

730

X=100,Y=100,Z=0

Sen

sor

Valu

e

Wavelength(λ, in nm)400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4 Yellow

Page 4: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colour as information

a theory of information processing.

Page 5: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colour Reproduction

• true colour code + specs of viewer = image– colour defined by code– viewer can be group or individual– display decides how to create colour from code– gives perceptual predictability

Yellow

Orange

bluish-red

Magenta 0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

350

367

383

400

416

433

449

466

482

499

515

532

548

565

581

598

614

631

647

664

681

697

714

730

+

Page 6: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

The Standard Observerfrom colour matching studies

CIE1931 xy chromaticity diagramprimaries at: 435.8nm, 546.1nm, 700nm

The XYZ sensor response

xx

x y z

Y is defined as luminancedifference from Y is the colour informationThe Math:

yy

x y z

… 2-d as z is redundant

Page 7: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Understanding CIE chromaticity

White in center

Saturated / monochromatic wavelengths on the periphery

Best understood as a failed colour circle

Everything in between is a mix of white and the colour

xx

x y z

yy

x y z

Circular colour models are the holy grail of colour theory … so far no one has succeeded!

x and y show difference from Y

Page 8: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Does it match?Problem #1:‘negative primaries’

But does the CIE model work?

Problem #2:no definition of colour

Page 9: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colour Sensorresponse to monochromatic light

350 400 450 500 550 600 650 7000

10

20

30

40

50

60

70

80

90

100

Wavelength (nm)

Abso

rpti

on

(%

)

RGB

370 nm 445 nm 508 nm 565 nm

700 nm330 nm 400 nm 500 nm 600 nm

1.0

0.5

0.0

Human

Bird

4 sensors

Equidistant on spectrum

What are these sensors used for?

What information is needed?

my answer is: Wavelength

Page 10: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

How to calculate wavelength with 2 poor quality luminance sensors.

 Roughly speaking:

Wavelength

0.8

0.6

0.2

0.0

1.0

0.4

λ-Δ λ λ+Δ

RG

a shift of Δfrom a known reference point

Page 11: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

the ideal light stimulus

Sen

sor

Valu

e

Wavelength

0.8

0.6

0.2

0.0

1.0

0.4

λ-δ λ λ+δ

RGmonochromatic stimulus

Allows wavelength to be measured in relation to reference.

Monochromacy:The reason we see rainbows is because the human visual system works with single wavelength light -- monochromatic light

This is the underlying paradigm!

Page 12: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Problem:natural light is not ideal

Sen

sor

Valu

e

Wavelength

0.8

0.6

0.2

0.0

1.0

0.4

λ-δ λ λ+δ

RG

• Light stimulus might not activate reference sensor fully.

• Light stimulus might not be fully monochromatic.

ie. there might be white mixed in

Page 13: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Sens

or V

alue

Wavelength(λ, in nm)

400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4

Solution:

A 3rd sensor is used to measure equiluminance.

Which is subtracted.

Then reference sensor can be normalized

Equiluminance & Normalization – essential to finding wavelength, can also called saturation and lightness

Page 14: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

a 4 sensor designS

en

sor

Valu

e

Wavelength(λ, in nm)

400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4

2 opponent pairs• only 1 of each pair can be active• min sensor is equiluminance

,R G B y

Page 15: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Human Retina only has 3 sensors!What to do?

We add an emulation layer.

Hardware has 3 physical sensorsbut emulates 4 sensors

Wavelength (nm)

Sens

or R

espo

nse

460 580 640520 550 610490430 670400370 700

0.8

0.6

0.2

0.0

1.0

1.2

1.4

0.4

R G B

No maths … just a diagram!

Page 16: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Testing Colour Opponent model

What we should see

What we do see

There is Red in our Blue – the problem of Purple

Page 17: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

350 400 450 500 550 600 650 7000

10

20

30

40

50

60

70

80

90

100

Wavelength (nm)

Abso

rpti

on

(%

)RGB

Pigment Absorption Data of human cone sensors

350 400 450 500 550 600 650 7000

10

20

30

40

50

60

70

80

90

100

Wavelength (nm)

Abso

rpti

on

(%

)

RGB

Red > Green

Page 18: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Dual Opponency with Circularity

an ideal model using 2 sensor pairs

Senso

r V

alu

e

Wavelength(λ, in nm)400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4

Page 19: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

a circular colour model

We divide colour coding and colour reproduction:

• Codingno need to link to specific observer – ideal observernot linked specifically to human vision

• Displaydecides how best to present colour to observer – making colour anomalies fit

Sens

or V

alue

Wavelength(λ, in nm)400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4

Page 20: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Part 1 – Coding Colour• fully circular• universal ideal observer

Part 2 – Reproducing Colour• takes knowledge about observer

and optimizes/distorts to the individual/group

• improved or natural reproduction modes

Sens

or V

alue

Wavelength(λ, in nm)400300 430 460 490 520 550 580 610 640 670 700

0.8

0.6

0.2

0.0

1.0

0.4

Page 21: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Coding Natural Colour

Problem #1:

Real world is not monochromatic

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

350

367

383

400

416

433

449

466

482

499

515

532

548

565

581

598

614

631

647

664

681

697

714

730

Spectrum of a common yellow flower

Page 22: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Colour coding … for dual channel opponency

Problem # 1

easy to solve

we simply assume monochromacy

when stimuli are not monochromatic opponent channels simply subtract to 0

0

0.5

1

1.5

2

2.5

3

3.5

4

4.5

350

367

383

400

416

433

449

466

482

499

515

532

548

565

581

598

614

631

647

664

681

697

714

730

green, yellow and red are active

r-g = 0b = 0

leaving only yellow

stimuli equivalent to monochromatic

Page 23: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Opponent Coding

Only primaries are true coloursall other colours are intermediary

… and can be generated by proportions of primaries!

Page 24: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Accurate colour reproduction … for humans

Any colour may be displayed by a combination of 2 primaries

but the location of primaries can vary between individualsand intermediary locations can be distorted

Problem # 2

Page 25: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Accurate colour reproduction … tuned to the individual

1. primaries must be mapped for the individual

2. mid-points must be mapped

467 517 573 644503 603

545

Provides an individual colour profile … a map of the primaries and intermediary points.

Page 26: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

tunable primaries

-0.2

0.0

0.2

0.4

0.6

0.8

1.0

1.2

350 400 450 500 550 600 650 700

Wavelength (nm)

Blue

Green

Yellow

Red

467

517

573

644

Page 27: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Part 3testing the theory

• is it sound?• is it useful?• does human vision use it?

Is there empirical evidence to support paradigm + theory?

note: a theoretical model about information is the information itself!

Page 28: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Apparatus

• monochromator

• light sourceequal light across visible spectrum

Page 29: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

the stimuli

Page 31: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Resultsno leading questions -- only “blue”• 4 primaries (pure colours)

naturally resolve to blue, green, yellow and red

• primaries are equidistant• transitions worked for all subjects• Most subjects see peripheral colours

– red in blue– 40% could see “magenta” – blue in red

• potential problem:people treat purple as if it were primary

• some colour blind people can’t see purple

Page 32: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

histogram of results

Page 33: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

results from mapping colour vision

Page 34: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Application

natural colour reproduction

Page 35: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Current display technology: 0.1 – 100 cd/m2

(currently pushed up to 500, but designed for 100 cd/m2)

DICOM GSDF: 0.05 – 4,000 cd/m2 (defined for grayscale medical imaging only)

Natural environment: 0.01 – 10,000 cd/m2

Luminance: High Dynamic Range

Page 36: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Coding HDR

HDR is here now … using multiple exposure!

… using an absolute lumiance code rather than a relative code

Page 37: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

the colour of infra-red (650-750nm)

remove the filter from a digital camera & it will work in the infra-red

Images in the infra-red produced by enthusiasts now!

What is the colour when you go beyond red?

not the stereo-typebut true infra-red – high wavelength light

Page 38: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

related work: Dolby

Page 39: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic
Page 40: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

Examples of real world colour?

Colours are often computed, not measured!

Page 41: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

… an extreme example

What is the colour?

Page 42: Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk tb300/pub/PhD/Stage1Report.pptx PhD Research Topic

http://www.eecs.qmul.ac.uk/~tb300/pub/PhD/Stage1Report.pptx

Poynton, C. A. (1995). “Poynton’s Color FAQ”, electronic preprint.http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html

Bangert, Thomas (2008). “TriangleVision: A Toy Visual System”, ICANN 2008.

Goldsmith, Timothy H. (July 2006). “What birds see”. Scientific American: 69–75.

Neitz, Jay; Neitz, Maureen. (August 2008). “Colour Vision: The Wonder of Hue”. Current Biology 18(16): R700-r702.

http://blog.dolby.com/2013/12/tv-bright-enough/

Questions?

References