W2D1. HSV colour model Source: Primary colours Red Green Blue Secondary Cyan Magenta.

Post on 05-Jan-2016

218 views 3 download

Tags:

Transcript of W2D1. HSV colour model Source: Primary colours Red Green Blue Secondary Cyan Magenta.

W2D1

W2D1

HSV colour model

Source: http://www.ncsu.edu/scivis/lessons/colormodels/color_models2.html

Primary coloursRedGreenBlue

SecondaryCyanMagentaYellow

Secondary=White-Primary(create colors for print)

W2D1

HSV colour model, tertiary colours

Add the coloursbetween primary and secondary

W2D1

HSV colour model

Colour specified by 3 parameters:-hue (angle on disc)- saturation (how dominant is the hue relative to the other colours)-value (overall intensity of the light)

W2D1

HSV colour model

W2D1

Colour = sensation. It is determined by:-Light-Physiology-Psychology

Experiment

W2D1

Read the colors of the words in col 1, then col 3, then col 2:

W2D1

http://www.michaelbach.de/ot/col_lilacChaser/index.html

Experiments with optical illusions:

W2D19

Capturing images (with digital camera…)

Charge motion

Ch

arg

e m

otio

n

Serial (horizontal) register

Parallel (vertical) registers

Pixel

Image area(exposed to light)

Output amplifier

masked area(not exposed to light)

(slides by Claudio Cumani, European Southern Observatory)

W2D1

Representing the intensity of a primary color (eg. Red)

• left: 3 bits per color (numbers 0 to 7)• right: 8 bits per color (numbers 0 to 255)

W2D1

Lossless compression• original x by y pixels• stored: the color of every pixel, row by row

W2D1

Lossless compression• original x by y pixels• stored: the color of every pixel, row by row

A lot of black pixels!(R,G,B=0,0,0)

Replace sequence of black pixels by 2 numbers:“0, n”n - nr repetitions.

W2D1

Image from a digital camera (10MB) stored as 128kB

W2D1

8x8 blocks of pixelsJPEG compression

W2D1

<- 1 block.

W2D1

We can store the average value for every block

W2D1

What if we stored the average for 4x4 blocks?