C O L O R

50
COLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?

description

C O L O R. A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?. Tiger in forest? cat on a rug?. Color perception depends on. What is blue?. A blue object has a surface material that reflects wavelength corresponding blue, when illuminated by white light . - PowerPoint PPT Presentation

Transcript of C O L O R

Page 1: C O L O R

COLOR

A SET OF CODES GENERATED BY THE BRAİNHow do you quantify?

How do you use?

Page 2: C O L O R

Tiger in forest? cat on a rug?

Page 3: C O L O R

Color perception depends on

Page 4: C O L O R

What is blue?

• A blue object has a surface material that reflects wavelength corresponding blue, when illuminated by white light

Page 5: C O L O R
Page 6: C O L O R

İn the retina: Cones:6-7 Milion

Page 7: C O L O R

RODES 80-100 Million for Shape perception

Page 8: C O L O R
Page 9: C O L O R
Page 10: C O L O R
Page 11: C O L O R

Ganglions take difference

Page 12: C O L O R
Page 13: C O L O R

FMRI: At least 65percent of cortex is devoted to vision

Page 14: C O L O R

14

Coding methods for humans

• RGB is an additive system (add colors to black) used for displays.

• CMY is a subtractive system for printing.

• HSI is a good perceptual space for art, psychology, and recognition.

• YIQ used for TV is good for compression.

Page 15: C O L O R

COLOROMETER

Page 16: C O L O R

RGB COLOR SPACE

Page 17: C O L O R

Need to quantize

Page 18: C O L O R

RGB System is Additive

Page 19: C O L O R

Color Normalization

Page 20: C O L O R

Choromaticity: Normalize r+g+b=1Plot g vs. b

Page 21: C O L O R

Choromaticity: Normalize r+g+b=1Plot g vs. b

Page 22: C O L O R

HSI Color coordinate system

Page 23: C O L O R

HSI Color System

Page 24: C O L O R

HSI Color System

Page 25: C O L O R

HUE İN HSI

Page 26: C O L O R
Page 27: C O L O R
Page 28: C O L O R

28

Editing saturation of colors

(Left) Image of food originating from a digital camera; (center) saturation value of each pixel decreased 20%; (right) saturation value of each pixel increased 40%.

Page 29: C O L O R

Intensity carries the most of the info

Page 30: C O L O R

Noise added

Page 31: C O L O R

31

YIQ and YUV for TV signals• Have better compression properties

• Luminance Y encoded using more bits than chrominance values I and Q; humans more sensitive to Y than I,Q

• Luminance used by black/white TVs

• All 3 values used by color TVs

• YUV encoding used in some digital video and JPEG and MPEG compression

Page 32: C O L O R

32

Conversion from RGB to YIQ

We often use this for color to gray-tone conversion.

An approximate linear transformation from RGB to YIQ:

Page 33: C O L O R

How do you use color?

• Image retrieval• Segmentation• Recognition• Detection• Edge detection• Connected component analysis

Page 34: C O L O R

34

Color histograms can represent an image

• Histogram is fast and easy to compute.

• Size can easily be normalized so that different image histograms can be compared.

• Can match color histograms for database query or classification.

Page 35: C O L O R

35

How to make a color histogram

• Make 3 histograms and concatenate them

• Use normalized color space and 2D histograms.• Create a single pseudo color between 0 and 255 by

using 2 bits of R, 2 bits of G and 2 bits of B (which bits?)

Page 36: C O L O R

36

Histograms of two color images: Take 2 most significant bit in R,G,B obtain 26=64 bins

Page 37: C O L O R

Histogram Similarity

• Normalized histogram approximates the pdf– Look at cross entropy– Look at the sum of suare error

• Look at intersection and match

Page 38: C O L O R

38

Retrieval from image database

Top left image is query image. The others are retrieved by having similar color histogram

Page 39: C O L O R

39

Recognition: Apples versus Oranges

Separate HSI histograms for apples (left) and oranges (right) used by IBM’s VeggieVision for recognizing produce at the grocery store checkout station

H

S

I

Page 40: C O L O R

40

Face detection in video frame: Train first

• (left) input video frame• (center) pixels classified according to RGB space• (right) largest connected component with aspect

similar to a face (by Vera Bakic)

Page 41: C O L O R

41

Skin color in RGB space (shown as normalized red vs normalized green)

Purple region shows skin color samples from several people. Blue and yellow regions show skin in shadow or behind a beard.

Page 42: C O L O R

recognition

Page 43: C O L O R

43

Color Clustering by K-means Algorithm

Form K-means clusters from a set of n-dimensional vectors

1. Set ic (iteration count) to 1

2. Choose randomly a set of K means m1(1), …, mK(1).

3. For each vector xi, compute D(xi,mk(ic)), k=1,…K and assign xi to the cluster Cj with nearest mean.

4. Increment ic by 1, update the means to get m1(ic),…,mK(ic).

5. Repeat steps 3 and 4 until Ck(ic) = Ck(ic+1) for all k.

Page 44: C O L O R

44

K-means Clustering Example

Original RGB Image Color Clusters by K-Means

Page 45: C O L O R

Color Edge Detection

Page 46: C O L O R

Color edge detection

Page 47: C O L O R

Color Edge detection

Page 48: C O L O R

Color Edge detection

Page 49: C O L O R

Chapter 6Color Image Processing

Page 50: C O L O R

Study Shading