You are on page 1of 20

Bi gi ng h a my tnh (C p nh t thng 9/2009)

Gi ng vin:
ng Nguy n c Ti n V Qu c Hong L Phong

M c ch C b n v mu s c Khng gian RGB Khng gian CMYK Khng gian HSL M t s h mu khc

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

Ti li u k thu t c a Adobe: Color Models http://dba.med.sc.edu/price/irf/Adobe_tg/models /main.html

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

Nghin c u m i t ng tc qua l i gi a s c m nh n mu s c c a con ng i v i cc b ph n ph n c ng hi n th mu s c c a mn hnh my tnh v v i cc ph n m m thi t k trn n. Khng gian mu (color space) c a ra lm n gi n ha cc thao tc tnh ton c n thi t cho vi c chuy n i mu s c. D a trn b pht sinh mu c a ph n c ng S c m nh n mu s c c a m t

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

Mu s c l c m gic mang n cho h th n kinh c a ng i t s k t h p tn hi u c a ba lo i t bo c m th mu m t ng i. C m gic ny c ng b nh h ng "di h n" t tr nh l u l i qu trnh h c h i t khi l n ln trong x h i, v "ng n h n" b i cc hi u ng nh sng c a phng n n. Mu s c c a m t tia nh sng l c m gic mu m tia sng gy nn m t ng i. Mu s c c a cc v t th l mu s c c a nh sng xu t pht t chng.
HCMUS - 2009 Bi gi ng h a my tnh ng Nguy n c Ti n - V Qu c Hong - L Phong 5

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

c hnh thnh d a vo cc t bo th n kinh c m nh n mu s c c a con ng i v cc thi t b CRT (cathode ray tube). Thu c v d ng Additive color.

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

10

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

11

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

12

Th hi n b ng cch cho bi t thnh ph n c a m i mu c b n l bao nhiu. Cc d ng th hi n: T 0.0 n 1.0, v d mu l (1.0, 0.0, 0.0) Theo ph n tr m. T 0 n 255. Truecolor (24 bit presentation) H th p l c phn (16). V d : #FF0000

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

13

Cc gi tr RGB c a m t mu l khc nhau i v i cc mn hnh khc nhau. Hai i m phn bi t trong khng gian RGB v i m t ng i c th ho c khng th l th hi n c a hai mu khc nhau. V v y, ngoi Hue (s c ) ra RGB khng th nh x tr c ti p n b t c chi u c m nh n no khc (nh Saturation hay Lightness).

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

14

Hue: s c , ng v i gc quay Saturation: ng v i t a g c Lightness (luminance): c ng tr c ng.

sng, ng v i

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

15

D dng p ng mu s c c a cc ch h a. Tnh ton n gi n.

ng trnh

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

16

Applications that use HSV (HSB): Apple Mac OS X system color picker (has a color disk for H/S and a slider for V) Xara Xtreme Paint.NET (has a color disk for H/S and a slider for V) Adobe graphic applications (Illustrator, Photoshop, and others) Applications that use HSL: The CSS3 specification Inkscape (starting from version 0.42) Macromedia Studio Microsoft Windows system color picker (including Microsoft Paint) Paint Shop Pro ImageMagick Applications that use both HSV and HSL: Pixel image editor (starting from Beta5) Pixia Bryce The GIMP (HSV for color selection, HSL for image color adjustment)

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

17

H YUV S d ng trong cc h TV nh NTSC, PAL, SECAM Y: Luma (c ng sng), U, V: Chrominance (mu s c) YCbCr, YPbPr

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

18

H CIE CIE XYZ CIE LUV CIE LAB CIE 1964

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

19

HCMUS - 2009

Bi gi ng

h a my tnh

ng Nguy n

c Ti n - V Qu c Hong - L Phong

20