Continued. Introduction to Computer Vision CSE 252a Lecture 11

Similar documents
Announcements. The appearance of colors

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Introduction to Computer Vision CSE 152 Lecture 18

Color Cameras: Three kinds of pixels

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

Computer Graphics Si Lu Fall /27/2016

Prof. Feng Liu. Winter /09/2017

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

Color Image Processing

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

COLOR. and the human response to light

Introduction to Color Science (Cont)

CMPSCI 670: Computer Vision! Color. University of Massachusetts, Amherst September 15, 2014 Instructor: Subhransu Maji

Colors in Images & Video

Chapter 3 Part 2 Color image processing

Digital Image Processing Color Models &Processing

Visual Perception. Overview. The Eye. Information Processing by Human Observer

Color images C1 C2 C3

Color. Some slides are adopted from William T. Freeman

Wireless Communication

COLOR and the human response to light

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Color Computer Vision Spring 2018, Lecture 15

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Color images C1 C2 C3

Comparing Sound and Light. Light and Color. More complicated light. Seeing colors. Rods and cones

Color image processing

Color Science. CS 4620 Lecture 15

Lecture 8. Color Image Processing

Color Image Processing

Lecture: Color. Juan Carlos Niebles and Ranjay Krishna Stanford AI Lab. Lecture 1 - Stanford University

Imaging Process (review)

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575

Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

LECTURE 07 COLORS IN IMAGES & VIDEO

Reading instructions: Chapter 6

Color. April 16 th, Yong Jae Lee UC Davis

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Today. Color. Color and light. Color and light. Electromagnetic spectrum 2/7/2011. CS376 Lecture 6: Color 1. What is color?

Color. Phillip Otto Runge ( )

Lecture 2: Color, Filtering & Edges. Slides: S. Lazebnik, S. Seitz, W. Freeman, F. Durand, D. Forsyth, D. Lowe, B. Wandell, S.Palmer, K.

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Color April 16 th, 2015

PERCEIVING COLOR. Functions of Color Vision

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

Introduction & Colour

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Digital Image Processing. Lecture # 8 Color Processing

Colors in images. Color spaces, perception, mixing, printing, manipulating...

Lecture 3: Grey and Color Image Processing

Color Image Processing EEE 6209 Digital Image Processing. Outline

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

University of British Columbia CPSC 414 Computer Graphics

Images and Colour COSC342. Lecture 2 2 March 2015

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

Color , , Computational Photography Fall 2018, Lecture 7

Color , , Computational Photography Fall 2017, Lecture 11

CS6640 Computational Photography. 6. Color science for digital photography Steve Marschner

IFT3355: Infographie Couleur. Victor Ostromoukhov, Pierre Poulin Dép. I.R.O. Université de Montréal

CIE tri-stimulus experiment. Color Value Functions. CIE 1931 Standard. Color. Diagram. Color light intensity for visual color match

Using Color in Scientific Visualization

Digital Image Processing

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

Announcements. Color. Last time. Today: Color. Color and light. Review questions

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Introduction to Multimedia Computing

Color and color constancy

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

Mahdi Amiri. March Sharif University of Technology

Color Space 1: RGB Color Space. Color Space 2: HSV. RGB Cube Easy for devices But not perceptual Where do the grays live? Where is hue and saturation?

To discuss. Color Science Color Models in image. Computer Graphics 2

Reading. Foley, Computer graphics, Chapter 13. Optional. Color. Brian Wandell. Foundations of Vision. Sinauer Associates, Sunderland, MA 1995.

12/02/2017. From light to colour spaces. Electromagnetic spectrum. Colour. Correlated colour temperature. Black body radiation.

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Color II: applications in photography

Color Image Processing. Gonzales & Woods: Chapter 6

Adapted from the Slides by Dr. Mike Bailey at Oregon State University

Color and color constancy

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Color Reproduction. Chapter 6

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

The human visual system

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Computational Photography. Computational Photography. The Camera. Camera Developments. Yacov Hel-Or and Yossi Rubner

Color II: applications in photography

VC 16/17 TP4 Colour and Noise

Tratamiento de Imágenes por Computadora. Color

MULTIMEDIA SYSTEMS

Image Filtering in Spatial domain. Computer Vision Jia-Bin Huang, Virginia Tech

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

Transcription:

Continued Introduction to Computer Vision CSE 252a Lecture 11

The appearance of colors Color appearance is strongly affected by (at least): Spectrum of lighting striking the retina other nearby colors (space) adaptation to previous views (time) state of mind

Color Reflectance Measured color spectrum is a function of the spectrum of the illumination and reflectance From Foundations of Vision, Brian Wandell, 1995, via B. Freeman slides

slide from Computer T. Darrel Vision I

The principle of trichromacy Experimental facts: Three primaries will work for most people if we allow subtractive matching Exceptional people can match with two or only one primary. This could be caused by a variety of deficiencies. Most people make the same matches. There are some anomalous trichromats, who use three primaries but make different combinations to match.

Color matching functions Choose primaries, say A(λ), B(λ), C(λ) For monochromatic (single wavelength) energy function, what amounts of primaries will match it? i.e., 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 λ

RGB RGB: primaries are monochromatic, energies are 645.2nm, 526.3nm, 444.4nm. Color matching functions have negative parts -> some colors can be matched only subtractively.

CIE XYZ CIE XYZ: Color matching functions are positive everywhere, but primaries are imaginary. Usually draw x, y, where x=x/(x+y+z) y=y/(x+y+z)

Three types of cones: R,G,B ρ ( λ ) E ( λ ) dλ Response of k th cone = k There are three types of cones S: Short wave lengths (Blue) M: Mid wave lengths (Green) L: Long wave lengths (Red) Three attributes to a color Three numbers to describe a color

Color spaces Linear color spaces describe colors as linear combinations of primaries Choice of primaries=choice of color matching functions=choice of color space Color matching functions, hence color descriptions, are all within linear transformations RGB: primaries are monochromatic, energies are 645.2nm, 526.3nm, 444.4nm. Color matching functions have negative parts -> some colors can be matched only subtractively. CIE XYZ: Color matching functions are positive everywhere, but primaries are imaginary. Usually draw x, y, where x=x/(x+y+z) y=y/(x+y+z)

Color Spaces There are many different color spaces, with each describing a color using three numbers: 1. RGB 2. HLS 3. YCrCb 4. HSV 5. CMY 6. YIQ (NTSC), 7. YUV (PAL), 8. CIExyz, 9. CIELAB 10. SUV In general a color represented in one color space (say HLS) can be converted and represented in a second color space (say RGB), unless the result falls outside of the gamut of the second space.

RGB Color Cube Block of colours for (r, g, b) in the range (0-1). Convenient to have an upper bound on coefficient of each primary. In practice: primaries given by monitor phosphors (phosphors are the materials on the face of the monitor screen that glow when struck by electrons)

YIQ Model Y I Q = 0.299 0.596 0.212 0.587 0.275 0.532 0.114 R 0.321 G 0.311 B Used by NTSC TV standard Separates Hue & Saturation (I,Q) from Luminance (Y)

CIE -XYZ and x-y

CIE xyy (Chromaticity Space)

Hue H H: An angle between 0 and 360 H= 0 : Red H= 135 : Green Color Wheel

Saturation Unsaturated S C S: On color wheel, distance between center and color point C Highly Saturated Color Wheel

HSV Hexcone Hue, Saturation, Value AKA: Hue, Saturatation, Intensity (HIS) Hexagon arises from projection of cube onto plane orthogonal to (R,G,B) = (1,1,1)

Uniform color spaces McAdam ellipses (next slide) demonstrate that differences in x,y are a poor guide to differences in color Construct color spaces so that differences in coordinates are a good guide to differences in color.

Variations in color matches on a CIE x, y space. At the center of the ellipse is the color of a test light; the size of the ellipse represents the scatter of lights that the human observers tested would match to the test color; the boundary shows where the just noticeable difference is. The ellipses on the left have been magnified 10x for clarity; on the right they are plotted to scale. The ellipses are known as MacAdam ellipses after their inventor. The ellipses at the top are larger than those at the bottom of the figure, and that they rotate as they move up. This means that the magnitude of the difference in x, y coordinates is a poor guide to the difference in color.

CIE u v which is a projective transform of x, y. We transform x,y so that ellipses are most like one another. Figure shows the transformed ellipses.

Motivation: Lambertian on NonLambertian Surface, David Kriegman

Dichromatic Reflection Model Diffuse Surface, David Kriegman

Dichromatic Reflection Model Transparent Film, David Kriegman

Dichromatic Reflection Model Dielectric Surface, David Kriegman

Image formation, David Kriegman

Data-dependent SUV Color Space, David Kriegman

Properties of SUV Data-dependent. Rotational (hence, linear) Transformation. The S channel encodes the entire specular component and an unknown amount of diffuse component. Shading information is preserved., David Kriegman

Example RGB S U V, David Kriegman

Multi-channel Photometric Stereo, David Kriegman

Multi-channel Photometric Stereo, David Kriegman

Qualitative Results, David Kriegman

Quantitative Results, David Kriegman

Blob Tracking for Robot Control

Filtering CSE252A Lecture 11

Image Filtering

(From Bill Freeman)

Noise Simplest noise model independent stationary additive Gaussian noise the noise value at each pixel is given by an independent draw from the same normal probability distribution Issues this model allows noise values that could be greater than maximum camera output or less than zero for small standard deviations, this isn t too much of a problem - it s a fairly good model independence may not be justified (e.g. damage to lens) may not be stationary (e.g. thermal gradients in the ccd)

Linear Filters General process: Form new image whose pixels are a weighted sum of original pixel values, using the same set of weights at each point. Properties Output is a linear function of the input Output is a shift-invariant function of the input (i.e. shift the input image two pixels to the left, the output is shifted two pixels to the left) Example: smoothing by averaging form the average of pixels in a neighbourhood Example: smoothing with a Gaussian form a weighted average of pixels in a neighbourhood Example: finding a derivative form a weighted average of pixels in a neighbourhood

(Freeman)

Convolution * 1 2 1-1 -2-1 Kernel (K) Image (I) Note: Typically Kernel is relatively small in vision applications.

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Convolution: R= K*I m=2 I R Kernel size is m+1 by m+1 R( i, j) = m/2 m/2 h= m/2 k= m/2 K( h, k) I( i h, j k)

Impulse Response 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 * = 0 0 0 0 0 0 0 0 0 0 0

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

(Swiped from Bill Freeman)

Smoothing by Averaging Kernel:

Filters are templates Applying a filter at some point can be seen as taking a dotproduct between the image and some vector Filtering the image is a set of dot products Insight filters look like the effects they are intended to find filters find effects they look like