Lecture 3 (2.11.08) Color and Video Shahram Ebadollahi 2/11/2008 DIP ELEN E4830 1 Lecture Outline 1 1 1 1 Review of Lecture 2 1 Finishing Compandor and Dither Color 1 Visual Perception 1 Color Representation 1 Color Models and Transformations 1 Color Sampling and Interpolation Video 1 Fundamentals of Analog and Digital Video 1 Video Sampling 1 Video Processing Multivariate Imaging (time permitting) 1 Introduction and Examples 1 Principal Component Analysis 2/11/2008 2 Compandor 2/11/2008 3 2/11/2008 4 Quantization: Contouring Problem 1-bit 2-bit 5-bit 6-bit 2/11/2008 3-bit 7-bit 4-bit 8-bit 5 Dithering 2/11/2008 6 Dithering: Ordered vs. Random 2/11/2008 7 Half-tone 2/11/2008 8 Half-tone: how many gray-levels per block? 2/11/2008 9 Eye Physiology & Visual Perception I ( x, y , λ ) = r ( x , y , λ ) L ( x , y , λ ) 2/11/2008 10 Eye Physiology & Visual Perception •75~150 Million •Sensitive to low illumination •Distributed over Retina •6~7 Million • Scotopic (dim light) vision •Highly sensitive to color •Concentrated in Fovea •Photopic (day light) vision Rods & Cones Distribution in Retina Photoreceptor Cells 2/11/2008 11 Visual Perception: Luminence Spectral Power Distribution of the Stimulus I ( x, y , λ ) = r ( x , y , λ ) L ( x , y , λ ) ∞ F ( x, y ) = ∫ I ( x, y, λ )V (λ )dλ 0 Luminance (intensity) 2/11/2008 12 Visual Perception: Color 1 Humans perceive only a few dozen gray levels but thousands of colors 3 types of Cone Photoreceptors 1 Color perceptual attributes: 1 1 1 Brightness (perceived Luminence) Hue (“redness”, “greenness”, …) Saturation ∫ S (λ )C (λ )dλ α1 (C ) ∫S (λ )C (λ )dλ α 2 (C ) ∫ S (λ )C (λ )dλ α 3 (C ) 1 C (λ ) 2 3 2/11/2008 S 3 (λ ) S 2 (λ ) S1 (λ ) 13 Primary & Secondary Colors 2/11/2008 14 CIE Chromacity Diagram 2/11/2008 15 Color Monitor & Printer Color Gamut 2/11/2008 16 RGB Color Cube 2/11/2008 17 Color Interpolation 1 2 3 4 5 6 7 8 1 G B G B G B G B 2 R G R G R G R G 3 G B G B G B G B 4 R G R G R G R G 5 G B G B G B G B 6 R G R G R G R G 7 G B G B G B G B 8 R G R G R G R G Bayer Pattern 2/11/2008 (a color filter array CFA pattern) 18 CMY and CMYK Color Model 1 1 1 Used in printers Primary pigment colors, secondary light colors Subtractive vs. Additive C 1 R M = 1 − G Y 1 B 2/11/2008 19 HSI Color Model 1 1 1 2/11/2008 Intensity Hue Saturation Cube at different intensity crosssections 20 HSI Color Model 1 Saturated colors on the outer points 1 Max. saturation at intermediate intensity levels 1 Distance between colors: D (C1 , C2 ) = w1∆H + w2 ∆S + w3∆I 2/11/2008 21 Manipulation HSI images • HSI values of primary and secondary colors • Hue of Green & Blue set to Zero • HSI allows for independent manipulation of colors • Intensity of white reduced by ½ 2/11/2008 • Saturation of Cyan reduced by ½ 22 Color Image Processing: Point vs. Kernel Processing f R ( x, y ) f ( x, y ) = f G ( x, y ) f B ( x, y ) 2/11/2008 g ( x , y ) = T [ f ( x, y ) ] 23