Color: Readings: Ch 6: color spaces color histograms

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

Filtration based on Color distance
1 Color and Texture Ch 6 and 7 of Shapiro How do we quantify them? How do we use them to segment an image?
Computer Vision Chapter 6 Color.
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Color Image Processing
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
School of Computing Science Simon Fraser University
CSSE463: Image Recognition Day 2 Roll call Roll call Announcements: Announcements: Room change: Olin 267 starting next class Room change: Olin 267 starting.
1 Color Segmentation: Color Spaces and Illumination Mohan Sridharan University of Birmingham
1 Color Used heavily in human vision Color is a pixel property, making some recognition problems easy Visible spectrum for humans is 400nm (blue) to 700.
1 Color Color Used heavily in human vision Used heavily in human vision Color is a pixel property, making some recognition problems easy Color is a pixel.
Color.
Color: Readings: Ch 6: color spaces color histograms color segmentation.
What is color for?.
CSE 803 Stockman Fall Color Used heavily in human vision Color is a pixel property, making some recognition problems easy Visible spectrum for humans.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
VINCENT URIAS, CURTIS HASH Detection of Humans in Images Using Skin-tone Analysis and Face Detection.
Color Space for Skin Detection – A Review
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
CGMB 324: Multimedia System design
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Computer Science 631 Lecture 7: Colorspace, local operations
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
COLOR HISTOGRAM AND DISCRETE COSINE TRANSFORM FOR COLOR IMAGE RETRIEVAL Presented by 2006/8.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
CSC361/ Digital Media Burg/Wong
CS6825: Color 2 Light and Color Light is electromagnetic radiation Light is electromagnetic radiation Visible light: nm. range Visible light:
Digital Image Processing Week VIII Thurdsak LEAUHATONG Color Image Processing.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
Sensory Information Processing
Introduction to Computer Graphics
1 Color and Texture How do we quantify them? How do we use them to segment an image?
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Color Computer Vision Martin Jagersand Readings: – Szeliski, – Forsyth and Ponce, Chapter 6 What is the physics of color? How is color sensed? How.
COMPUTER GRAPHICS CS 482 – FALL 2016 CHAPTER 28 COLOR COLOR PERCEPTION CHROMATICITY COLOR MODELS COLOR INTERPOLATION.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
School of Electronics & Information Engineering
Half Toning Dithering RGB CMYK Models
Introduction to Skin and Face Detection
Color Image Processing - 1
Color Image Processing
Color Image Processing
Color Image Processing
Unsupervised Learning
COLOR space Mohiuddin Ahmad.
Color, Texture and Segmentation
Chapter 6: Color Image Processing
Color Image Processing
Color: Readings: Ch 6: color spaces color histograms
Introduction Computer vision is the analysis of digital images
Histogram—Representation of Color Feature in Image Processing Yang, Li
A. Vadivel, M. Mohan, Shamik Sural and A. K. Majumdar
Computer Vision Lecture 4: Color
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Color Model By : Mustafa Salam.
Digital Image Processing
Color Models l Ultraviolet Infrared 10 Microwave 10
COMPUTER VISION Introduction
CSSE463: Image Recognition Day 2
CSSE463: Image Recognition Day 2
EM Algorithm and its Applications
Presentation transcript:

Color: Readings: Ch 6: 6.1-6.5 color spaces color histograms color segmentation

Some Properties of Color Color is used heavily in human vision. Color is a pixel property, that can make some recognition problems easy. The visible spectrum for humans is wavelengths from 400 nm (blue) to 700 nm (red) Machines can “see” much more; ex. X-rays, infrared, radio waves

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.

RGB Color Space Absolute Normalized Normalized red r = R/(R+G+B) Normalized green g = G/(R+G+B) Normalized blue b = B/(R+G+B) (0,0,255) R,G,B) blue (0,0,0) (0,255,0) red green (255,0,0) My web schedule background: FF AA 00 http://homes.cs.washington.edu/~shapiro/schedule.html

Color hexagon for HSI (HSV) Hue is encoded as an angle (0 to 2). Saturation is the distance to the vertical axis (0 to 1). Intensity is the height along the vertical axis (0 to 1). H=120 is green saturation intensity hue I=1 H=180 is cyan H=0 is red H=240 is blue I=0

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%.

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

Conversion from RGB to YIQ An approximate linear transformation from RGB to YIQ: We often use this for color to gray-tone conversion.

CIELAB, the color system we’ve been using in recent object recognition work Commission Internationale de l'Eclairage - this commission determines standards for color and lighting. It developed the Norm Color system (X,Y,Z) and the Lab Color System (also called the CIELAB Color System).

CIELAB, Lab, L*a*b One luminance channel (L) and two color channels (a and b). In this model, the color differences which you perceive correspond to Euclidian distances in CIELab. The a axis extends from green (-a) to red (+a) and the b axis from blue (-b) to yellow (+b). The brightness (L) increases from the bottom to the top of the three-dimensional model.

Colors can be used for image segmentation into regions Can cluster on color values and pixel locations Can use connected components and an approximate color criteria to find regions Can train an algorithm to look for certain colored regions – for example, skin color

Color Clustering by K-means Algorithm (from Chapter 10) 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 dist(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.

Example in 2D Blue dots are data vectors. Red dots are initial means. Blue dots are assigned to the closest red means. New means are computed for each cluster. Green dots are the next means.

K-means Clustering Example Original RGB Image Color Clusters by K-Means

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.

Histograms of two color images

How to make a color histogram Make a single 3D histogram. Make 3 histograms and concatenate them Create a single pseudo color between 0 and 255 by using 3 bits of R, 3 bits of G and 2 bits of B (which bits?) Use normalized color space and 2D histograms.

Apples versus Oranges H S I Separate HSI histograms for apples (left) and oranges (right) used by IBM’s VeggieVision for recognizing produce at the grocery store checkout station (see Ch 16).

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.

Finding a face in a video frame input video frame pixels classified in largest connected normalized RG space component with aspect similar to a face (all work contributed by Vera Bakic)

Swain and Ballard’s Histogram Matching for Color Object Recognition (IJCV Vol 7, No. 1, 1991) Opponent Encoding: Histograms: 8 x 16 x 16 = 2048 bins Intersection of image histogram and model histogram: Match score is the normalized intersection: wb = R + G + B rg = R - G by = 2B - R - G numbins intersection(h(I),h(M)) =  min{h(I)[j],h(M)[j]} j=1 numbins match(h(I),h(M)) = intersection(h(I),h(M)) /  h(M)[j] j=1

(from Swain and Ballard) cereal box image 3D color histogram

Four views of Snoopy Histograms

The 66 models objects Some test objects

Swain and Ballard Results Results were surprisingly good. At their highest resolution (128 x 90), average match percentile (with and without occlusion) was 99.9. This translates to 29 objects matching best with their true models and 3 others matching second best with their true models. At resolution 16 X 11, they still got decent results (15 6 4) in one experiment; (23 5 3) in another.