SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Course: Machine Vision
Light and Color
Session 03
D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
Outline
• The Physics of Color
• Human Color Perception
• Representing Color
• A Model of Image Color
The Physics of Color
What is color?
• Color is a psychological property of our visual experiences when we
look at objects and lights, not a physical property of those objects or
lights (S. Palmer, Vision Science: Photons to Phenomenology)
• Color is the result of interaction between physical light in the
environment and our visual system
Electromagnetic spectrum
• Why do we see light at these (visible) wavelengths?
Because that’s where the sun radiates electromagnetic energy
The Physics of Light
• Any source of light can be completely described physically by its
spectrum: the amount of energy emitted (per time unit) at each
wavelength 400 - 700 nm
Interaction of light and surfaces
• The color of surfaces is a result of a large variety of mechanisms,
including differential absorption at different wavelengths, refraction,
diffraction, and bulk scattering
Interaction of light and surfaces
Human Color Perception
The Human Eye
• Diameter: 20 mm
• 3 membranes enclose the eye
• Cornea & sclera
• Choroid
• Lens
• Retina
• The human eye is a camera:
photoreceptor cells (rods and
cones) in the retina have the
same function as
film/CCD/CMOS sensor in a
camera
Light Receptors
• Cones
– Cones are located in the fovea and
are sensitive to color
– Each one is connected to its own
nerve end
– Cone vision is called photopic (or
bright-light vision)
• Rods
– Rods are giving a general, overall
picture of the field of view and are
not involved in color vision
– Several rods are connected to a
single nerve and are sensitive to
low levels of illumination (scotopic
or dim-light vision)
Human Color Vision
• Unlike rods, which contain a single photopigment, there are three
types of cones that differ in the photopigment they contain
• Each of these photopigments has a different sensitivity to light of
different wavelengths
• For this reason are referred to as “blue,” “green,” and “red,” or, more
appropriately, short (S), medium (M), and long (L) wavelength cones
Color Perception
• Rods and cones act as filters on
the spectrum
• To get the output of a filter,
multiply its response curve by
the spectrum, integrate over all
wavelengths
• Each cone yields one number
• The sensitivity of the human eye
to luminous intensities related to
the three primary colors is not
the same
Color Sensing in Camera (RGB)
Bayer filter
Inside a digital SLR
Practical Color Sensing:
Bayer Grid
Representing Color
Standardizing color experience
• Accurate color reproduction is
commercially valuable
• Many products are identified by
color (e.g. “golden” arches)
• Only few color names are widely
recognized by English speakers:
– About 10; other languages have
fewer/more, but not many more.
– It’s common to disagree on
appropriate color names.
• Color reproduction problems
increased by prevalence of
digital imaging
Color Matching Experiment
• Most studies of the three-color
nature of human vision are
based on some variation of this
simple apparatus
• One part of the screen is
illuminated by a lamp of a target
color; the other by a mixture of
three colored lamps.
• The test subject (observer)
adjusts the intensities of the
three lamps until the mixture
appears to match the target
color.
Trichromacy
• Three numbers seem to be sufficient for encoding color
• In color matching experiments, most people can match any given light
with three primaries
• Exception: color blindness
• For the same light and same primaries, most people select the same
weights
• Trichromatic color theory dates back to 18th century (Thomas Young)
Additive vs. Subtractive
Color Matching
Additive
• Many colors can be represented
as a mixture of A, B, C:
M=a A + b B + c C
• Where the = sign should be read
as “matches”
• Gives a color description system:
two people who agree on A, B, C
need only supply (a, b, c) to
describe a color
Subtractive
• Some colors can’t be matched
like this M=a A + b B + c C,
instead, must write:
M+a A = b B+c C
• Interpret this as (-a, b, c)
• Problem for building monitors:
Choose R, G, B such that
positive linear combinations
match a large set of colors
Grassman’s Laws
• Additive matching is linear
• If two test lights can be matched with the same set of
weights, then they match each other:
– Suppose A = u1 P1 + u2 P2 + u3 P3 and B = u1 P1 + u2 P2 + u3 P3.
Then A = B.
• If we mix two test lights, then mixing the matches will
match the result:
– Suppose A = u1 P1 + u2 P2 + u3 P3 and B = v1 P1 + v2 P2 + v3 P3.
Then A+B = (u1+v1) P1 + (u2+v2) P2 + (u3+v3) P3.
• If we scale the test light, then the matches get scaled
by the same amount:
– Suppose A = u1 P1 + u2 P2 + u3 P3.
Then kA = (ku1) P1 + (ku2) P2 + (ku3) P3.
Color Matching Functions
• Choose primaries, say A, B, C
• Given energy function, E(λ) what amounts of primaries will match it?
• For each wavelength, determine how much of A, of B, and of C is
needed to match light of that wavelength alone
a(λ)
b(λ)
c(λ)
• These are color matching functions
• Then the match is
a(l)E(l)dl
ò
{ }A+
b(l)E(l)dl
ò
{ }B+
c(l)E(l)dl
ò
{ }C
Linear Color Spaces: RGB
• Linear color space that uses
single wavelength primaries
(645.16 nm for R, 526.32 nm for
G, and 444.44 nm
• Available colors are usually
represented as a unit cube—
usually called the RGB cube—
whose edges represent the R, G,
and B weights
• Subtractive matching required
for some wavelengths
Linear color spaces: CIE XYZ
• Established in 1931 by the
International Commission on
Illumination
• Primaries are imaginary, but
matching functions are
everywhere positive
• 2D visualization:
draw (x,y), where
x = X/(X+Y+Z)
y = Y/(X+Y+Z)
Nonlinear color spaces:
Uniform color spaces
• Unfortunately, differences in x,y coordinates do not reflect perceptual
color differences
• CIE u’v’ is a projective transform of x,y to make the ellipses more
uniform
u' =
4x
-2x +12y+3
v' =
9y
-2x +12y+3
Nonlinear color spaces: HSV
• First described by Alvy Ray Smith in 1978, HSV seeks to depict
relationships between colors, and improve upon the RGB color model
• Perceptually meaningful dimensions:
Hue, Saturation, Value (Intensity)
A Model of Image Color
The Use of Color
in Computer Vision
• Color histogram for indexing and retrieval
Swain and Ballard, Color Indexing, IJCV 1991
• Skin detection
M. Jones and J. Rehg, Statistical Color Models with Application to
Skin Detection, IJCV 2002
• Image segmentation and retrieval
C. Carson, S. Belongie, H. Greenspan, and Ji. Malik, Blobworld:
Image segmentation using Expectation-Maximization and its
application to image querying, ICVIS 1999
• Robot soccer
M. Sridharan and P. Stone, Towards Eliminating Manual Color
Calibration at RoboCup. RoboCup-2005: Robot Soccer World Cup
IX, Springer Verlag, 2006
Acknowledgment
Some of slides in this PowerPoint presentation are adaptation from
various slides, many thanks to:
1. D.A. Forsyth, Department of Computer Science, University of Illinois
at Urbana – Champaign (http://luthuli.cs.uiuc.edu/~daf/)
2. Professor William Hoff, Department of Electrical Engineering &
Computer Science (http://inside.mines.edu/~whoff/)
3. James Hays, Computer Science Department, Brown University,
(http://cs.brown.edu/~hays/)
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

Image processing
Image processingImage processing
Image processing
abuamo
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentation
Parijat Sinha
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Deepak Kumar
 

Was ist angesagt? (20)

Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation ajal
Image segmentation ajalImage segmentation ajal
Image segmentation ajal
 
Image processing
Image processingImage processing
Image processing
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGESIMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
IMAGE SEGMENTATION BY USING THRESHOLDING TECHNIQUES FOR MEDICAL IMAGES
 
Threshold Selection for Image segmentation
Threshold Selection for Image segmentationThreshold Selection for Image segmentation
Threshold Selection for Image segmentation
 
Otsu binarization
Otsu binarizationOtsu binarization
Otsu binarization
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
IMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUESIMAGE SEGMENTATION TECHNIQUES
IMAGE SEGMENTATION TECHNIQUES
 
Features image processing and Extaction
Features image processing and ExtactionFeatures image processing and Extaction
Features image processing and Extaction
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Feature detection and matching
Feature detection and matchingFeature detection and matching
Feature detection and matching
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I COM2304: Digital Image Fundamentals - I
COM2304: Digital Image Fundamentals - I
 
Edge linking in image processing
Edge linking in image processingEdge linking in image processing
Edge linking in image processing
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 

Ähnlich wie PPT s03-machine vision-s2

introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
wasrse
 
Theory and principle of colour management application and communication.pptx
Theory and principle of colour management application and communication.pptxTheory and principle of colour management application and communication.pptx
Theory and principle of colour management application and communication.pptx
OUTR, Bhubaneswar
 
Color theorykareemebrahim
Color theorykareemebrahimColor theorykareemebrahim
Color theorykareemebrahim
Kareem .
 

Ähnlich wie PPT s03-machine vision-s2 (20)

Lec04 color
Lec04 colorLec04 color
Lec04 color
 
Color
ColorColor
Color
 
Colour spaces
Colour spacesColour spaces
Colour spaces
 
Shade selection seminar - Copy.pptx
Shade selection seminar - Copy.pptxShade selection seminar - Copy.pptx
Shade selection seminar - Copy.pptx
 
lecture_07.pptx
lecture_07.pptxlecture_07.pptx
lecture_07.pptx
 
Colour%20Model%20new.pptx
Colour%20Model%20new.pptxColour%20Model%20new.pptx
Colour%20Model%20new.pptx
 
Color description sg babu
Color description sg babuColor description sg babu
Color description sg babu
 
06 color image processing
06 color image processing06 color image processing
06 color image processing
 
Colormodels
ColormodelsColormodels
Colormodels
 
10. color-texture.pptx
10. color-texture.pptx10. color-texture.pptx
10. color-texture.pptx
 
introduction to colors in images and videos
introduction to colors in images and videosintroduction to colors in images and videos
introduction to colors in images and videos
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)Displays and color system in computer graphics(Computer graphics tutorials)
Displays and color system in computer graphics(Computer graphics tutorials)
 
Color image processing
Color image processingColor image processing
Color image processing
 
Theory and principle of colour management application and communication.pptx
Theory and principle of colour management application and communication.pptxTheory and principle of colour management application and communication.pptx
Theory and principle of colour management application and communication.pptx
 
Color-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptxColor-in-Digital-Image-Processing.pptx
Color-in-Digital-Image-Processing.pptx
 
16 color 1
16   color 116   color 1
16 color 1
 
Color theorykareemebrahim
Color theorykareemebrahimColor theorykareemebrahim
Color theorykareemebrahim
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
CG_U4_M1.pptx
CG_U4_M1.pptxCG_U4_M1.pptx
CG_U4_M1.pptx
 

Mehr von Binus Online Learning

Mehr von Binus Online Learning (20)

LN s12-machine vision-s2
LN s12-machine vision-s2LN s12-machine vision-s2
LN s12-machine vision-s2
 
LN s11-machine vision-s2
LN s11-machine vision-s2LN s11-machine vision-s2
LN s11-machine vision-s2
 
LN s10-machine vision-s2
LN s10-machine vision-s2LN s10-machine vision-s2
LN s10-machine vision-s2
 
LN s09-machine vision-s2
LN s09-machine vision-s2LN s09-machine vision-s2
LN s09-machine vision-s2
 
LN s08-machine vision-s2
LN s08-machine vision-s2LN s08-machine vision-s2
LN s08-machine vision-s2
 
LN s07-machine vision-s2
LN s07-machine vision-s2LN s07-machine vision-s2
LN s07-machine vision-s2
 
LN s06-machine vision-s2
LN s06-machine vision-s2LN s06-machine vision-s2
LN s06-machine vision-s2
 
LN s05-machine vision-s2
LN s05-machine vision-s2LN s05-machine vision-s2
LN s05-machine vision-s2
 
LN s04-machine vision-s2
LN s04-machine vision-s2LN s04-machine vision-s2
LN s04-machine vision-s2
 
LN s03-machine vision-s2
LN s03-machine vision-s2LN s03-machine vision-s2
LN s03-machine vision-s2
 
LN s02-machine vision-s2
LN s02-machine vision-s2LN s02-machine vision-s2
LN s02-machine vision-s2
 
LN s01-machine vision-s2
LN s01-machine vision-s2LN s01-machine vision-s2
LN s01-machine vision-s2
 
PPT s11-machine vision-s2
PPT s11-machine vision-s2PPT s11-machine vision-s2
PPT s11-machine vision-s2
 
PPT s09-machine vision-s2
PPT s09-machine vision-s2PPT s09-machine vision-s2
PPT s09-machine vision-s2
 
PPT s07-machine vision-s2
PPT s07-machine vision-s2PPT s07-machine vision-s2
PPT s07-machine vision-s2
 
PPT s06-machine vision-s2
PPT s06-machine vision-s2PPT s06-machine vision-s2
PPT s06-machine vision-s2
 
PPT s05-machine vision-s2
PPT s05-machine vision-s2PPT s05-machine vision-s2
PPT s05-machine vision-s2
 
PPT s01-machine vision-s2
PPT s01-machine vision-s2PPT s01-machine vision-s2
PPT s01-machine vision-s2
 
LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1LN sesi 2 delivering quality-1
LN sesi 2 delivering quality-1
 
PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1PPT Sesi 2 FO the guest delivering quality-1
PPT Sesi 2 FO the guest delivering quality-1
 

Kürzlich hochgeladen

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Kürzlich hochgeladen (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

PPT s03-machine vision-s2

  • 1. Course: Machine Vision Light and Color Session 03 D5627 – I Gede Putra Kusuma Negara, B.Eng., PhD
  • 2. Outline • The Physics of Color • Human Color Perception • Representing Color • A Model of Image Color
  • 4. What is color? • Color is a psychological property of our visual experiences when we look at objects and lights, not a physical property of those objects or lights (S. Palmer, Vision Science: Photons to Phenomenology) • Color is the result of interaction between physical light in the environment and our visual system
  • 5. Electromagnetic spectrum • Why do we see light at these (visible) wavelengths? Because that’s where the sun radiates electromagnetic energy
  • 6. The Physics of Light • Any source of light can be completely described physically by its spectrum: the amount of energy emitted (per time unit) at each wavelength 400 - 700 nm
  • 7. Interaction of light and surfaces • The color of surfaces is a result of a large variety of mechanisms, including differential absorption at different wavelengths, refraction, diffraction, and bulk scattering
  • 8. Interaction of light and surfaces
  • 10. The Human Eye • Diameter: 20 mm • 3 membranes enclose the eye • Cornea & sclera • Choroid • Lens • Retina • The human eye is a camera: photoreceptor cells (rods and cones) in the retina have the same function as film/CCD/CMOS sensor in a camera
  • 11. Light Receptors • Cones – Cones are located in the fovea and are sensitive to color – Each one is connected to its own nerve end – Cone vision is called photopic (or bright-light vision) • Rods – Rods are giving a general, overall picture of the field of view and are not involved in color vision – Several rods are connected to a single nerve and are sensitive to low levels of illumination (scotopic or dim-light vision)
  • 12. Human Color Vision • Unlike rods, which contain a single photopigment, there are three types of cones that differ in the photopigment they contain • Each of these photopigments has a different sensitivity to light of different wavelengths • For this reason are referred to as “blue,” “green,” and “red,” or, more appropriately, short (S), medium (M), and long (L) wavelength cones
  • 13. Color Perception • Rods and cones act as filters on the spectrum • To get the output of a filter, multiply its response curve by the spectrum, integrate over all wavelengths • Each cone yields one number • The sensitivity of the human eye to luminous intensities related to the three primary colors is not the same
  • 14. Color Sensing in Camera (RGB) Bayer filter Inside a digital SLR
  • 17. Standardizing color experience • Accurate color reproduction is commercially valuable • Many products are identified by color (e.g. “golden” arches) • Only few color names are widely recognized by English speakers: – About 10; other languages have fewer/more, but not many more. – It’s common to disagree on appropriate color names. • Color reproduction problems increased by prevalence of digital imaging
  • 18. Color Matching Experiment • Most studies of the three-color nature of human vision are based on some variation of this simple apparatus • One part of the screen is illuminated by a lamp of a target color; the other by a mixture of three colored lamps. • The test subject (observer) adjusts the intensities of the three lamps until the mixture appears to match the target color.
  • 19. Trichromacy • Three numbers seem to be sufficient for encoding color • In color matching experiments, most people can match any given light with three primaries • Exception: color blindness • For the same light and same primaries, most people select the same weights • Trichromatic color theory dates back to 18th century (Thomas Young)
  • 20. Additive vs. Subtractive Color Matching Additive • Many colors can be represented as a mixture of A, B, C: M=a A + b B + c C • Where the = sign should be read as “matches” • Gives a color description system: two people who agree on A, B, C need only supply (a, b, c) to describe a color Subtractive • Some colors can’t be matched like this M=a A + b B + c C, instead, must write: M+a A = b B+c C • Interpret this as (-a, b, c) • Problem for building monitors: Choose R, G, B such that positive linear combinations match a large set of colors
  • 21. Grassman’s Laws • Additive matching is linear • If two test lights can be matched with the same set of weights, then they match each other: – Suppose A = u1 P1 + u2 P2 + u3 P3 and B = u1 P1 + u2 P2 + u3 P3. Then A = B. • If we mix two test lights, then mixing the matches will match the result: – Suppose A = u1 P1 + u2 P2 + u3 P3 and B = v1 P1 + v2 P2 + v3 P3. Then A+B = (u1+v1) P1 + (u2+v2) P2 + (u3+v3) P3. • If we scale the test light, then the matches get scaled by the same amount: – Suppose A = u1 P1 + u2 P2 + u3 P3. Then kA = (ku1) P1 + (ku2) P2 + (ku3) P3.
  • 22. Color Matching Functions • Choose primaries, say A, B, C • Given energy function, E(λ) what amounts of primaries will match it? • For each wavelength, determine how much of A, of B, and of C is needed to match light of that wavelength alone a(λ) b(λ) c(λ) • These are color matching functions • Then the match is a(l)E(l)dl ò { }A+ b(l)E(l)dl ò { }B+ c(l)E(l)dl ò { }C
  • 23. Linear Color Spaces: RGB • Linear color space that uses single wavelength primaries (645.16 nm for R, 526.32 nm for G, and 444.44 nm • Available colors are usually represented as a unit cube— usually called the RGB cube— whose edges represent the R, G, and B weights • Subtractive matching required for some wavelengths
  • 24. Linear color spaces: CIE XYZ • Established in 1931 by the International Commission on Illumination • Primaries are imaginary, but matching functions are everywhere positive • 2D visualization: draw (x,y), where x = X/(X+Y+Z) y = Y/(X+Y+Z)
  • 25. Nonlinear color spaces: Uniform color spaces • Unfortunately, differences in x,y coordinates do not reflect perceptual color differences • CIE u’v’ is a projective transform of x,y to make the ellipses more uniform u' = 4x -2x +12y+3 v' = 9y -2x +12y+3
  • 26. Nonlinear color spaces: HSV • First described by Alvy Ray Smith in 1978, HSV seeks to depict relationships between colors, and improve upon the RGB color model • Perceptually meaningful dimensions: Hue, Saturation, Value (Intensity)
  • 27. A Model of Image Color
  • 28. The Use of Color in Computer Vision • Color histogram for indexing and retrieval Swain and Ballard, Color Indexing, IJCV 1991 • Skin detection M. Jones and J. Rehg, Statistical Color Models with Application to Skin Detection, IJCV 2002 • Image segmentation and retrieval C. Carson, S. Belongie, H. Greenspan, and Ji. Malik, Blobworld: Image segmentation using Expectation-Maximization and its application to image querying, ICVIS 1999 • Robot soccer M. Sridharan and P. Stone, Towards Eliminating Manual Color Calibration at RoboCup. RoboCup-2005: Robot Soccer World Cup IX, Springer Verlag, 2006
  • 29. Acknowledgment Some of slides in this PowerPoint presentation are adaptation from various slides, many thanks to: 1. D.A. Forsyth, Department of Computer Science, University of Illinois at Urbana – Champaign (http://luthuli.cs.uiuc.edu/~daf/) 2. Professor William Hoff, Department of Electrical Engineering & Computer Science (http://inside.mines.edu/~whoff/) 3. James Hays, Computer Science Department, Brown University, (http://cs.brown.edu/~hays/)