Top Banner
1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham [email protected].ac.uk
30

1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham [email protected].

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

1

Color Segmentation: Color Spaces and Illumination

Mohan SridharanUniversity of Birmingham

[email protected]

Page 2: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

2

Talk Outline

Color segmentation: a simple outline.

Color Spaces: RGB family (RGB, CMY). YCbCr. HSV. LAB.

Illumination: The effect on segmentation. Representation. Adapting to change.

Page 3: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

3

Talk Outline

Color segmentation: a simple outline.

Color Spaces: RGB family (RGB, CMY). YCbCr. HSV. LAB.

Illumination: The effect on segmentation. Representation. Adapting to change.

Page 4: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

4

Sample Video – Input

Page 5: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

5

Color Segmentation – Calibration

Assign color labels to 256*256*256 possible combinations: Color Map.

Hand-label discrete colors in image regions – offline processing.

Locally Weighted average – Color map generalization.

]255,0[,,],1,0[

,),,(:

321

321

mmmNl

lmmmE

Page 6: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

6

Sample Color Map

Y

Cr Cb

Page 7: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

7

Sample Video – Objects Superimposed

Page 8: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

8

Talk Outline

Color segmentation: a simple outline.

Color Spaces: RGB family (RGB, CMY). YCbCr. HSV. LAB.

Illumination: The effect on segmentation. Representation. Adapting to change.

Page 9: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

9

Color Spaces – What and Why?

Means of representing colors.

Means of distinguishing between colors.

Different color spaces for different applications.

Visually appealing

Page 10: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

10

Color Space – RGB, CMY

RGB: Most common – graphics and displays. Additive and Device Dependent. Color perception not absolute.

CMY: Common – graphics and printers. Subtractive and Device Dependent. C = 1-R, M = 1-G, Y = 1-

B. Color perception not absolute.

Page 11: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

11

Color Space – RGB, CMY

Page 12: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

12

Color Space – Normalized RGB (rgb)

Normalize individual components of RGB. r = R / (R+G+B) g = G / (R+G+B) b = B / (R+G+B)

Provides some robustness to illumination changes.

Used extensively for human skin, face detection.

Page 13: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

13

Color Space – YCbCr

Video systems, television.

Device Dependent.

Color perception not absolute.

Separate luminance from color components. Y = Luminance. Cb = Difference from B (blue). Cr = Difference from R (red).

Page 14: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

14

YCbCr in RGB – Video

RGB to YCbCr: Linear Transformation.

B

G

R

Cr

Cb

Y

114.0587.0701.0

866.0587.0299.0

114.0587.0299.0

Page 15: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

15

Color Space – HSV

Common among artists.

Based on artistic perception.

Hue, Saturation and Value. Hue = tint of color. Value = brightness of color. Saturation = strength of color.

Easy to visualize colors.

Page 16: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

16

Color Space – HSV

Page 17: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

17

Color Space – LAB

Perceptually motivated.

Absolute color space: Colors are abstract and unambiguous.

Geometric distance proportional to perceptual distance.

Darker colors clustered together, brighter ones well separated.

More robust to illumination changes.

Page 18: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

18

Color Space – LAB

Page 19: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

19

Color Space – a slice of LAB

Page 20: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

20

Color Spaces – Summary

Several Color spaces available.

Each has advantages and disadvantages.

Select color space based on requirements and application.

Page 21: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

21

Talk Outline

Color segmentation: a simple outline.

Color Spaces: RGB family (RGB, CMY). YCbCr. HSV. LAB.

Illumination: The effect on segmentation. Representation. Adapting to change.

Page 22: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

22

Illumination Sensitivity – Problem

Trained under one illumination:

Under different illumination:

Page 23: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

23

Illumination Sensitivity – Video

Page 24: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

24

Illumination – overview

Sensor response depends on: scene illuminant, surface reflectance of objects,

spectral response of the sensor.

Measure all three factors ahead of time for a given scene and set of illuminants.

Robots frequently have to work in new situations: Robot can learn useful representations.

pixelpj

dRSEm jpj

],3,1[

)()()(

Page 25: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

25

Illumination Representation

Color Map.

Distributions in color space.

Distribution of distances between color space distributions.

Page 26: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

26

Major Illumination Changes - Approach

Periodically generate test image distribution.

Compute average distance between test distribution and known distributions Davg.

Page 27: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

27

Major Illumination changes – Video

Page 28: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

28

Minor Illumination changes – Video

Page 29: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

29

To Summarize…

Color segmentation important sub-task of vision.

Color spaces: choice depends on applications and requirements.

Illumination effects color labels: humans adapt readily, but robots still need some help…

Page 30: 1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham mzs@cs.bham.ac.uk.

30

That’s all folks