computer graphics tomas vanicek college of civil engeneering, b407 [email protected]

17
Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek @fsv.cvut.cz http://kix.fsv.cvut.cz/ vanicek

Upload: nelson-joseph

Post on 14-Jan-2016

219 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Computer Graphics

Tomas Vanicek

College of Civil Engeneering, B407

[email protected]

http://kix.fsv.cvut.cz/vanicek

Page 2: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Methods of graphical information saving

• Grid

• Vector

Page 3: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Grid formats

Page 4: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Colours in Computer Graphic

Page 5: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Electromagnetic Waves

Page 6: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Visible light

• Frequency 3.8×1014 Hz až 7.5×1014 Hz

• Wavelength 800nm – 400nm = 8-4×10-7m

Page 7: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Colour perception – Spectral function

Page 8: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Colour Models

• The spectral functions forms vector space of infinity dimension

• Human eye can recognize only 10.000 – 50.000 colour hues

• In fact only 3 dimensional vector space is usually sufficient

• We must chose 3 vector of base, 3 basic colour, for example Red (R), Green (G) and Blue (B)

Page 9: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

RGB model

Page 10: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Aditive composition of colours

Page 11: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

RGB – 8 basic colours

Page 12: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

RGB – 256 colours

• 8 x 8 x 4 partion

Page 13: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

RGB True Color

• 256 x 256 x 256 = 16.777.216 colours

Page 14: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

CMY model

• Subtractive composition of colours

Page 15: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

CMYK model

• Colour K made from CMY is not precise

• It is cheaper

Page 16: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Model HLS (Hue, Light, Saturation)

Light

S

Page 17: Computer Graphics Tomas Vanicek College of Civil Engeneering, B407 vanicek@fsv.cvut.cz

Model HLS