1 / 49

C O L O R IMAGE PROCESSING

C O L O R IMAGE PROCESSING. C O L O R IMAGE PROCESSING. Pseudo-color processing - an assignment of color to an intensity (grey scale) image Full color processing - the enhancement or modification of image acquired with a full color sensor. Color Fundamentals

chase-knox
Télécharger la présentation

C O L O R IMAGE PROCESSING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. COLOR IMAGE PROCESSING

  2. COLOR IMAGE PROCESSING Pseudo-color processing - an assignment of color to an intensity (grey scale) image Full color processing - the enhancement or modification of image acquired with a full color sensor

  3. Color Fundamentals Chromatic light - light which exhibits visible color, 400-700 nm Color is perceived when light of a certain wavelength is reflected from the surface of an object and detected by the color sensitive cones in the human eye.

  4. Color Fundamentals Radiance - amount of energy emitted from a light source (watts) Luminance - amount of energy perceived by an observer (lumens) Brightness - subjective notion of achromatic intensity

  5. Subtractive color - Additive color - Color Fundamentals Subtractive color - reflected light Additive color - emitted light

  6. red white green blue Additive Color Mixing additiveprimary colors

  7. red yellow magenta white green blue cyan Additive Color Mixing secondary secondary secondary

  8. Color Perception Color perception is enabled by cones in the retina. Cones contain photosenstive chemicals, called photopigments. There are three types of cones, which are sensitive to wavelengths of light corresponding to the colors red, green and blue. Color is perceived when light of a certain wavelength is reflected from the surface of an object and detected by the color sensitive cones.

  9. Color Display Systems The interior of the screen is composed of an array of electron-sensitive phosphor dots arranged in linear or triangular groups (triads). One dot emits red light when excited by an electron gun. Another emits green light and a third emits blue light excited in the same manner. The nature and arrangement of these triads determines an upper level on the spatial resolution of a displayed image.

  10. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  11. Color gamut: The color range produced by an RGB monitor Color printing gamut is irregular and more limited CIE (Chromaticity Diagram) X (red) Y(green) Z(blue) = (1-(X+Y))

  12. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  13. RGB color model (1,1,1) (0,0,0)

  14. RGB color model BLUE (0,0,1) GREEN (0,1,0) RED (1,0,0)

  15. RGB color model CYAN (0,1,1) MAGENTA (1,0,1) YELLOW (1,1,0)

  16. RGB color model shades of grey

  17. FULL COLOR IMAGE

  18. FULL COLOR IMAGE RED GREEN BLUE

  19. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  20. CMY Color Model R G B C M Y 1 1 1 - = Used primarily for color hardcopy generation.

  21. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  22. YIQ Color Model 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 R G B Y I Q = Used in commercial color TV broadcasting

  23. YIQ Color Model 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 R G B Y I Q = Y - luminance - conveys tonal values) I - inphase Q - quadrature convey chrominance information

  24. YIQ Color Model 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 R G B Y I Q = Inphase and quadrature modulate the chrominance subcarrier. Its amplitude indicates the color’s saturation; its phase indicates hue.

  25. YIQ Color Model 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 R G B Y I Q = YIQ representation enables intensity transformations to be performed on only the intensity portion of a color image.

  26. FULL COLOR IMAGE

  27. FULL COLOR IMAGE RED GREEN BLUE

  28. FULL COLOR IMAGE RED GREEN BLUE (each channel, histogram equalized)

  29. INCORRECT HIST EQUALIZATION FULL COLOR IMAGE

  30. FULL COLOR IMAGE INTENSITY IMAGE

  31. FULL COLOR IMAGE INTENSITY IMAGE INTENSITY HIST EQUALIZATION

  32. FULL COLOR IMAGE INTENSITY IMAGE INTENSITY HIST EQUALIZATION CORRECT HIST EQUALIZATION

  33. YIQ Color Model 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 R G B Y I Q = R G B 1.0 0.956 0.620 1.0 -0.272 -0.647 1.0 -1.108 1.705 Y I Q =

  34. YIQ Color Model Given a RED pixel: R = 255, G = 0, B = 0 0.299 0.587 0.114 0.596 -0.275 -0.321 0.212 -0.523 0.311 255 0 0 Y I Q = Y = .299(255) + .587(0) + .114(0) = 76.25 ~ 76 I = .596(255) - .275(0) - .321(0) = 151.98 ~ 152 Q = .212(255) - .523(0) + .311(0) = 54.06 ~ 54

  35. YIQ Color Model Given a YIQ value: Y = 76, I = 152, Q = 54 R G B 1.0 0.956 0.620 1.0 -0.272 -0.647 1.0 -1.108 1.705 Y I Q = R = .1.0(76) + .956(152) + .620(54) = 254.79 ~ 255 G = 1.0(76) - .272(152) -.647(54) = -0.282 ~ 0 B = 1.0(76) -1.108(152) + 1.705(54) = -0.346 ~ 0 R = 255, G = 0, B = 0; a RED pixel !

  36. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  37. HSV Color Model Hue - color attribute that describes pure color Saturation - degree to which pure color is diluted by white light Value - intensity, lightness, brightness (tint, shade and tone for artists)

  38. HSV Color Model Hue, Saturation and Value (tint, shade and tone for artists)

  39. HSV Color Model Hue - an angle around the vertical axis

  40. HSV Color Model Saturation - (color purity) 0 at the center, to 1 on the sides

  41. HSV Color Model Value - ranges from 0 to 1; indicates lightness/darkness

  42. // RGB to HSV conversion // r,g,b values are from 0 to 1 // h = [0,360], s = [0,1], v = [0,1] // if s == 0, then h = -1 (undefined) void RGBtoHSV( float r, float g, float b, float *h, float *s, float *v ) { float min, max, delta; min = MIN( r, g, b ); max = MAX( r, g, b ); *v = max; // v delta = max - min; if( max != 0 ) *s = delta / max; // s else { // r = g = b = 0 // s = 0, v is undefined *s = 0; *h = -1; return; } if( r == max ) *h = ( g - b ) / delta; // between yellow & magenta else if( g == max ) *h = 2 + ( b - r ) / delta; // between cyan & yellow else *h = 4 + ( r - g ) / delta; // between magenta & cyan *h *= 60; // degrees if( *h < 0 ) *h += 360; } *from http://www.cs.rit.edu/~ncs/color/t_convert.html#RGB to HSV & HSV to RGB

  43. Color Models: CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI CIE (Chromaticity Diagram) RGB Cube CYM (CYMK) YIQ HSV HSI

  44. HSI Color Model ( HUE, SATURATION, INTENSITY ) Hue - angle around vertical axis Saturation - distance from vertical axis Intensity - perpendicular distance from the point corresponding to black

  45. COLOR IMAGE PROCESSING Full color processing - the enhancement or modification of image acquired with a full color sensor Pseudo-color processing - an assignment of color to an intensity (grey scale) image

  46. Image Display Color Palette (LUT) Pixel value (0-255) 0 1 2 5 3 4 255 0 0 5 ... 255 8 bit gray scale

  47. ORIGINAL INTENSITY IMAGE

  48. IMAGE WITH PSEUDOCOLOR LUT

More Related