• Non ci sono risultati.

Color Image Processing

N/A
N/A
Protected

Academic year: 2022

Condividi "Color Image Processing"

Copied!
61
0
0

Testo completo

(1)

Color Image Processing

Jen-Chang Liu, Spring 2006

(2)

Preview

Why use color in image processing?

Color is a powerful descriptor

Object identification and extraction

eg. Face detection using skin colors

Humans can discern thousands of color shades and intensities

c.f. Human discern only two dozen shades of grays

(3)

Preview (cont.)

Two category of color image processing

Full color processing

Images are acquired from full-color sensor or equipment

Pseudo-color processing

In the past decade, color sensors and processing hardware are not available

Colors are assigned to a range of monochrome intensities

(4)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(5)

Color fundamentals

Physical phenomenon

Physical nature of color is known

Psysio-psychological phenomenon

How human brain perceive and interpret color?

(6)

Color fundamentals (cont.)

1666, Isaac Newton 三稜鏡

(7)

Visible light

Chromatic light span the electromagnetic spectrum (EM) from 400 to 700 nm

(8)

Color fundamentals (cont.)

The color that human perceive in an object

= the light reflected from the object

Illumination source scene

reflection eye

(9)

Physical quantities to describe a chromatic light source

Radiance: total amount of energy that flow from the light source, measured in watts (W)

Luminance: amount of energy an observer

perceives from a light source, measured in lumens (lm 流明)

Far infrared light: high radiance, but 0 luminance

Brightness: subjective descriptor that is hard to measure, similar to the achromatic notion of

intensity

(10)

How human eyes sense light?

6~7M Cones are the sensors in the eye

3 principal sensing categories in eyes

Red light 65%, green light 33%, and blue light 2%

(11)

Primary and secondary colors

In 1931, CIE(International Commission on Illumination) defines specific wavelength values to the primary colors

B = 435.8 nm, G = 546.1 nm, R = 700 nm

However, we know that no single color may be called red, green, or blue

Secondary colors: G+B=Cyan, R+G=Yellow, R+B=Magenta

(12)
(13)

Primary colors of light v.s.

primary colors of pigments

Primary color of pigments

Color that subtracts or absorbs a primary color of light and reflects or transmits the other two

Color of light: R G B

Color of pigments: absorb R absorb G absorb B Cyan Magenta Yellow

(14)

Application of additive nature of light colors

Color TV

(15)

CIE XYZ model

RGB -> CIE XYZ model

Normalized tristimulus values

Z Y

X x X

+

= +

Z Y

X y Y

+

= +

Z Y

X z Z

+

= +

=

B G R

Z Y X

939 .

0 130

. 0 020

. 0

071 .

0 707

. 0 222

. 0

178 .

0 342

. 0 431

. 0

=> x+y+z=1. Thus, x, y (chromaticity coordinate) is enough to describe all colors

(16)

色度圖

(17)

By additivity of colors:

Any color inside the

triangle can be produced by combinations of the three initial colors

RGB gamut of monitors

Color gamut of printers

(18)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(19)

Color models

Color model, color space, color system

Specify colors in a standard way

A coordinate system that each color is represented by a single point

RGB model

CYM model

CYMK model

HSI model

Suitable for hardware or applications

- match the human description

(20)

RGB color model

(21)

Pixel depth

Pixel depth: the number of bits used to represent each pixel in RGB space

Full-color image: 24-bit RGB color image

(R, G, B) = (8 bits, 8 bits, 8 bits)

(22)

Safe RGB colors

Subset of colors is enough for some application

Safe RGB colors (safe Web colors, safe browser colors)

(6)3 = 216

(23)

Safe RGB color (cont.)

Safe color cube Full color cube

(24)

CMY model (+Black = CMYK)

CMY: secondary colors of light, or primary colors of pigments

Used to generate hardcopy output

 

 

 

 

=

 

 

B G R

Y M

C

1

1

1

(25)

HSI color model

Will you describe a color using its R, G, B components?

Human describe a color by its hue, saturation, and brightness

Hue 色度: color attribute

Saturation: purity of color (white->0, primary color->1)

Brightness: achromatic notion of intensity

(26)

HSI color model (cont.)

RGB -> HSI model

Intensity line

saturation

Colors on this triangle Have the same hue

(27)

HSI model: hue and saturation

(28)

HSI model

(29)

HSI component images

R,G,B Hue

saturation intensity

(30)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(31)

Pseudo-color image processing

Assign colors to gray values based on a specified criterion

For human visualization and interpretation of gray-scale events

Intensity slicing

Gray level to color transformations

(32)

Intensity slicing

3-D view of intensity image

Image plane Color 1

Color 2

(33)

Intensity slicing (cont.)

Alternative representation of intensity slicing

(34)

Intensity slicing (cont.)

More slicing plane, more colors

(35)

Application 1

8 color regions Radiation test pattern

* See the gradual gray-level changes

(36)

Application 2

X-ray image of a weld 焊接物

(37)

Application 3

Rainfall statistics

(38)

Gray level to color transformation

Intensity slicing: piecewise linear transformation

General Gray level to color transformation

(39)

Gray level to color

transformation

(40)

Application 1

(41)

Combine several monochrome images

Example: multi-spectral images

(42)

R G

B

NearInfrared (sensitive to biomass)

R+G+B near-infrared+G+B

Washington D.C.

(43)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(44)

Color pixel

A pixel at (x,y) is a vector in the color space

RGB color space

=

) , (

) , (

) , ( )

, (

y x B

y x G

y x R y

x c

c.f. gray-scale image f(x,y) = I(x,y)

(45)

Example: spatial mask

(46)

How to deal with color vector?

Per-color-component processing

Process each color component

Vector-based processing

Process the color vector of each pixel

When can the above methods be equivalent?

Process can be applied to both scalars and vectors

Operation on each component of a vector

must be independent of the other component

(47)

Two spatial processing categories

Similar to gray scale processing studied before, we have to major categories

Pixel-wise processing

Neighborhood processing

(48)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(49)

Color transformation

Similar to gray scale transformation

g(x,y)=T[f(x,y)]

Color transformation

n i

r r

r T

si = i ( 1, 2 ,..., n ) , = 1,2,...,

g(x,y) f(x,y)

s1 s2

sn

f1 f2

fn T1

T2

Tn

(50)

Use which color model in color transformation?

RGB CMY(K)  HSI

Theoretically, any transformation can be performed in any color model

Practically, some operations are better suited to specific color model

(51)

Example: modify intensity of a color image

Example: g(x,y)=k f(x,y), 0<k<1

HSI color space

Intensity: s3 = k r3

Note: transform to HSI requires complex operations

RGB color space

For each R,G,B component: si = k ri

CMY color space

For each C,M,Y component:

si = k ri +(1-k)

(52)

I H,S

(53)
(54)

Implementation of color slicing

Recall the pseudo-color intensity slicing

1-D intensity

(55)

Implementation of color slicing

How to take a region of colors of interest?

prototype color

Sphere region

prototype color

Cube region

(56)

Application

cube sphere

(57)

Outline

Color fundamentals

Color models

Pseudo-color image processing

Basics of full-color image processing

Color transformations

Smoothing and sharpening

(58)

Color image smoothing

Neighborhood processing

(59)

Color image smoothing:

averaging mask

=

Sxy

y x

y K x

y x

) , (

) ,

1 ( )

,

( c

c

Neighborhood Centered at (x,y)

=

xy xy xy

S y x

S y x

S y x

y x K B

y x K G

y x K R

y x

) , (

) , (

) , (

) , 1 (

) , 1 (

) , 1 (

) , ( c

vector processing

per-component processing

(60)

original R

G G

H S I

(61)

Example: 5x5 smoothing mask

RGB model Smooth I

in HSI model difference

Riferimenti

Documenti correlati

Fixed proportion of data returns a selected percentage of the entire data (e.g. 70% of all the data) Fixed sample size returns a selected number of data instances with a chance to

umano (come il diritto alla salute o a non essere torturati) sia diritti ad hoc che riguardano solo ed esclusivamente i più piccoli (tra i quali l’istruzione, il gioco o il diritto

The use of color Doppler US (CDUS) as an additional means of describing the biological activity, structure, and extension of bone and soft tissue tumors and the blood supply to them

The OSLON devices evidently present a progressive increase of the nonradiative centers during operation: Figure 7.11 clearly points out how in the initial hours the light output

Optical spectral variability of quasars and BL Lac Objects is compared by means of the spectral variability parameter β (Trevese &amp; Vagnetti 2002).. Both kinds of objects

The adoption of liquid sodium as heat transfer fluid allows maximum temperatures up to 750 °C and higher heat fluxes on the receiver with respect to molten salts (both Solar Salts

Le tematiche che abbiamo sommariamente presentato in questo paragrafo introduttivo torneranno qui sotto più volte. Lo scopo, come si è detto, è quello di definire più precisamente