Colour an algorithmic approach Thomas Bangert thomas.bangert@qmul.ac.uk...

Preview:

Citation preview

Colouran algorithmic approach

Thomas Bangertthomas.bangert@qmul.ac.uk

http://www.eecs.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

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

Colour as information

a theory of information processing.

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

+

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

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

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

But does the CIE model work?

Problem #2:no definition of colour

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

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

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!

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

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

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

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!

Testing Colour Opponent model

What we should see

What we do see

There is Red in our Blue – the problem of Purple

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

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

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

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

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

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

Opponent Coding

Only primaries are true coloursall other colours are intermediary

… and can be generated by proportions of primaries!

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

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.

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

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!

Apparatus

• monochromator

• light sourceequal light across visible spectrum

the stimuli

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

histogram of results

results from mapping colour vision

Application

natural colour reproduction

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

Coding HDR

HDR is here now … using multiple exposure!

… using an absolute lumiance code rather than a relative code

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

related work: Dolby

Examples of real world colour?

Colours are often computed, not measured!

… an extreme example

What is the colour?

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

Recommended