160 likes | 180 Views
Digital Image Processing Homework 3. Jheng-Ping Lin Visual Communications Lab Department of Communication Engineering National Central University Jhongli,Taiwan November 18, 2007. Create this Picture Using HIS Color Space. Review HIS Color Space(1/3). Review HIS Color Space(2/3).
E N D
Digital Image ProcessingHomework 3 Jheng-Ping Lin Visual Communications Lab Department of Communication Engineering National Central University Jhongli,Taiwan November 18, 2007
Review HIS Color Space(2/3) Saturation [0~1] Intensity [0~1] Hue [0∘~360∘]
Hue(I:1. 0, S: 1.0) H: 0∘ H: 45∘ H: 90∘ H: 135∘ H: 315∘ H: 225∘ H: 180∘ H: 270∘
Intensity(H: 0˚, S: 1.0) I: 1.0 I: 0.75 I: 0.5 I: 0.25
Saturation(H: 0˚, I: 1.0) S: 1.0 S: 0.75 S: 0.50 S: 0.25
Converting Colors form HIS to RGB(1/4) • If (0∘≦ H < 120∘) • B = I*( 1 - S ) • R= • G= 3*I-B-R H: Hue S: Saturation I:Intensity
Converting Colors form HIS to RGB(2/4) • If (120∘≦ H < 240∘) • H=H-120∘ • R = I*( 1 - S ) • G= • B= 3*I-G-R
Converting Colors form HIS to RGB(3/4) • If (240∘≦ H < 360∘) • H=H-240∘ • G = I*( 1 - S ) • B= • R= 3*I-B-G
Converting Colors form HIS to RGB(4/4) • New R=max(min(R,1),0)*255 • New G=max(min(G,1),0)*255 • New B=max(min(B,1),0)*255
Homework Assignment 512pixels Intensity:0.5 512pixels
Hint 512pixels (X,Y) 512pixels Hue
Deadline • Demo : • 2008/12/3,8:00~9:00 pm • Report : • 2008/12/3, 6:00 pm • Applications of HIS color space in image or video processing.
References • Rafael C. Gonzalez, Richard E. Woods, “Digital Image Processing 3rd”, pp. 402-412, August, 2008.