COLOR IMAGE PROCESSING COLOR IMAGE PROCESSING Pseudocolor processing

  • Slides: 49
Download presentation
COLOR IMAGE PROCESSING

COLOR IMAGE PROCESSING

COLOR IMAGE PROCESSING Pseudo-color processing - an assignment of color to an intensity (grey

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

Color Fundamentals Chromatic light - light which exhibits visible color, 400 -700 nm Color

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.

Color Fundamentals Radiance - amount of energy emitted from a light source (watts) Luminance

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

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

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

Additive Color Mixing red white green blue additive primary colors

Additive Color Mixing red white green blue additive primary colors

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

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

Color Perception Color perception is enabled by cones in the retina. Cones contain photosenstive

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.

Color Display Systems The interior of the screen is composed of an array of

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.

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

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

CIE (Chromaticity Diagram) Color gamut: The color range produced by an RGB monitor Color

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

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

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

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

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

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

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

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

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

RGB color model shades of grey

RGB color model shades of grey

FULL COLOR IMAGE

FULL COLOR IMAGE

FULL COLOR IMAGE RED GREEN BLUE

FULL COLOR IMAGE RED GREEN BLUE

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

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

CMY Color Model C M Y = 1 1 1 - R G B

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

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

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

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0.

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 R G B Used in commercial color TV broadcasting

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0.

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 R G B Y - luminance - conveys tonal values) I - inphase convey chrominance information Q - quadrature

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0.

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 R G B Inphase and quadrature modulate the chrominance subcarrier. Its amplitude indicates the color’s saturation; its phase indicates hue.

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0.

YIQ Color Model Y I Q = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 R G B YIQ representation enables intensity transformations to be performed on only the intensity portion of a color image.

FULL COLOR IMAGE

FULL COLOR IMAGE

FULL COLOR IMAGE RED GREEN BLUE

FULL COLOR IMAGE RED GREEN BLUE

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

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

FULL COLOR IMAGE INCORRECT HIST EQUALIZATION

FULL COLOR IMAGE INCORRECT HIST EQUALIZATION

FULL COLOR IMAGE INTENSITY IMAGE

FULL COLOR IMAGE INTENSITY IMAGE

FULL COLOR IMAGE INTENSITY HIST EQUALIZATION

FULL COLOR IMAGE INTENSITY HIST EQUALIZATION

FULL COLOR IMAGE INTENSITY IMAGE CORRECT HIST EQUALIZATION INTENSITY HIST EQUALIZATION

FULL COLOR IMAGE INTENSITY IMAGE CORRECT HIST EQUALIZATION INTENSITY HIST EQUALIZATION

YIQ Color Model Y I Q R G B = = 0. 299 0.

YIQ Color Model Y I Q R G B = = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 R G B 1. 0 Y I Q 0. 956 0. 620 -0. 272 -0. 647 -1. 108 1. 705

YIQ Color Model Given a RED pixel: R = 255, G = 0, B

YIQ Color Model Given a RED pixel: R = 255, G = 0, B = 0 Y I Q = 0. 299 0. 587 0. 114 0. 596 -0. 275 -0. 321 0. 212 -0. 523 0. 311 255 0 0 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

YIQ Color Model Given a YIQ value: Y = 76, I = 152, Q

YIQ Color Model Given a YIQ value: Y = 76, I = 152, Q = 54 R G B = 1. 0 0. 956 0. 620 -0. 272 -0. 647 -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 !

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

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

HSV Color Model Hue - color attribute that describes pure color Saturation - degree

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)

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

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

HSV Color Model Hue - an angle around the vertical axis

HSV Color Model Hue - an angle around the vertical axis

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

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

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

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

// RGB to HSV conversion // r, g, b values are from 0 to

// 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 RGBto. HSV( 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

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

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

HSI Color Model ( HUE, SATURATION, INTENSITY ) Hue - angle around vertical axis

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

COLOR IMAGE PROCESSING Full color processing - the enhancement or modification of image acquired

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

Image Display Pixel value (0 -255) 5 Color Palette (LUT) 0 1 2 3

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

ORIGINAL INTENSITY IMAGE

ORIGINAL INTENSITY IMAGE

IMAGE WITH PSEUDOCOLOR LUT

IMAGE WITH PSEUDOCOLOR LUT