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

17
W2D1

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

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

W2D1

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

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)

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

W2D1

HSV colour model, tertiary colours

Add the coloursbetween primary and secondary

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

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)

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

W2D1

HSV colour model

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

W2D1

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

Experiment

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

W2D1

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

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

W2D1

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

Experiments with optical illusions:

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

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)

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

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)

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

W2D1

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

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

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.

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

W2D1

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

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

W2D1

8x8 blocks of pixelsJPEG compression

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

W2D1

<- 1 block.

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

W2D1

We can store the average value for every block

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

W2D1

What if we stored the average for 4x4 blocks?