Prof. Feng Liu. Winter /09/2017

Similar documents
Computer Graphics Si Lu Fall /27/2016

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

Prof. Feng Liu. Fall /02/2018

Introduction to Color Science (Cont)

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 , , Computational Photography Fall 2017, Lecture 11

Continued. Introduction to Computer Vision CSE 252a Lecture 11

Color Computer Vision Spring 2018, Lecture 15

Color , , Computational Photography Fall 2018, Lecture 7

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

Announcements. The appearance of colors

Color Image Processing

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

COLOR and the human response to light

University of British Columbia CPSC 414 Computer Graphics

Colors in Images & Video

Color Science. CS 4620 Lecture 15

Capturing Light in man and machine

Color. Bilkent University. CS554 Computer Vision Pinar Duygulu

Lecture 3: Grey and Color Image Processing

Frequencies and Color

Computer Graphics Si Lu Fall /25/2017

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

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

COLOR. and the human response to light

LECTURE 07 COLORS IN IMAGES & VIDEO

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

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

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can.

A World of Color. Session 4 Color Spaces. OLLI at Illinois Spring D. H. Tracy

CS559: Computer Graphics

Capturing Light in man and machine

Interactive Computer Graphics

Color Cameras: Three kinds of pixels

Color. April 16 th, Yong Jae Lee UC Davis

Color April 16 th, 2015

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

Capturing Light in man and machine

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

Visual Imaging and the Electronic Age Color Science

Color vision and representation

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

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

excite the cones in the same way.

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

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

Figure 1: Energy Distributions for light

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

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

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Capturing Light in man and machine

Digital Image Processing

Histograms and Color Balancing

Lecture 8. Color Image Processing

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

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

Human Visual System. Digital Image Processing. Digital Image Fundamentals. Structure Of The Human Eye. Blind-Spot Experiment.

Digital Image Processing

Color images C1 C2 C3

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

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

CSE1710. Big Picture. Reminder

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

19. Vision and color

University of British Columbia CPSC 314 Computer Graphics Jan-Apr Tamara Munzner. Color.

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

Mahdi Amiri. March Sharif University of Technology

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

Introduction. The Spectral Basis for Color

Capturing Light in man and machine

Spectral colors. What is colour? 11/23/17. Colour Vision 1 - receptoral. Colour Vision I: The receptoral basis of colour vision

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

Digital Image Processing

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

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

Chapter 3 Part 2 Color image processing

What is Color Gamut? Public Information Display. How do we see color and why it matters for your PID options?

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

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

Vision. PSYCHOLOGY (8th Edition, in Modules) David Myers. Module 13. Vision. Vision

Vision and color. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Problems. How do cameras measure light and color? How do humans perceive light and color?

Reading for Color. Vision/Color. RGB Color. Vision/Color. University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013.

Reading instructions: Chapter 6

Color Image Processing

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

Human Vision, Color and Basic Image Processing

Introduction to Multimedia Computing

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

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

Digital Image Processing

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

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

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012

Digital Image Processing

Digital Image Processing

Color. Fredo Durand Many slides by Victor Ostromoukhov. Color Vision 1

Transcription:

Prof. Feng Liu Winter 2017 http://www.cs.pdx.edu/~fliu/courses/cs410/ 01/09/2017

Today Course overview Computer vision Admin. Info Visual Computing at PSU Image representation Color 2

Big Picture: Visual Computing Computer Vision Computer Graphics Image and Video Processing 3

Visual Computing Computer vision Images Models Image analysis and understanding Scene reconstruction Computer graphics Models Images Object modeling Image synthesis Image and video processing Images Images 4

Course objective A broad overview of visual computing Cover basic, common algorithms Advanced algorithms will be covered in CS 510/610 Computational Photography in Spring Exercise in using computer vision toolkits Focus on the development of computer vision applications 5

People Lecturer: Prof. Feng Liu Room FAB 120-09 Office Hours: MW 3:30-4:30pm fliu@cs.pdx.edu 6

Web and Computer Account Course website http://www.cs.pdx.edu/~fliu/courses/cs410/ Join class mailing list https://groups.google.com/forum/#!forum/cs410-visualcomputing-2017-winter Everyone needs a Computer Science department computer account Get account at CAT http://cat.pdx.edu 7

Textbooks & Readings Computer Vision: Algorithms and Applications By R. Szeliski Available online, free Learning OpenCV: Computer Vision with the OpenCV Library By Gary Bradski and Adrian Kaehler Papers recommended by the lecturer 8

Grading Project 1: 40% Project 2: 60% 9

Programming tools C/C++ under Windows Preferable Visual Studio 2008, 2010, 2012 Highly recommended You can use the OpenCV libraries Other graphics and vision libraries Matlab Recommended Others OK As long as it works for you 10

OpenCV Open Source Computer Vision library http://opencv.org/ V 3.2 Perhaps the most popular toolkits for computer vision Provides APIs for a wide range of vision algorithms Highly recommended for your projects 11

Lab Facilities EB 325: Windows Lab Visual Studio 2012 installed You need a Computer Science department account to use any CS labs Request one from CAT 12

Admin Questions? 13

Today Course overview Computer vision Admin. Info Visual Computing at PSU Image representation Color 14

Visual Computing @ PSU PSU Computer Graphics and Vision Lab http://graphics.cs.pdx.edu/ Projects Video stabilization Shadow editing Super resolution Panorama synthesis Video segmentation Video visualization and interaction Visual quality assessment Stereoscopic imaging 15

Stabilization http://web.cecs.pdx.edu/~fliu/project/subspace_stabilization/ 16

Shadow Editing Input Output 17

Super-resolution Low resolution High resolution 18

Panorama from Video 19

Segmentation http://web.cecs.pdx.edu/~fliu/project/motionseg.htm 20

Visual saliency analysis http://web.cecs.pdx.edu/~fliu/project/stereo-saliency 21

Visual quality assessment http://web.cecs.pdx.edu/~fliu/project/thirdsrule.htm 22

Stereoscopic imaging 23

VR Video Editing 24

Today Course overview Admin. Info Computer vision Visual Computing at PSU Image representation Color 25

A Digital Image is a Matrix of Pixels Slide credit: C. Dyer Source: D. Hoiem

A Digital Image is a Matrix of Pixels 0.92 0.93 0.94 0.97 0.62 0.37 0.85 0.97 0.93 0.92 0.99 0.95 0.89 0.82 0.89 0.56 0.31 0.75 0.92 0.81 0.95 0.91 0.89 0.72 0.51 0.55 0.51 0.42 0.57 0.41 0.49 0.91 0.92 0.96 0.95 0.88 0.94 0.56 0.46 0.91 0.87 0.90 0.97 0.95 0.71 0.81 0.81 0.87 0.57 0.37 0.80 0.88 0.89 0.79 0.85 0.49 0.62 0.60 0.58 0.50 0.60 0.58 0.50 0.61 0.45 0.33 0.86 0.84 0.74 0.58 0.51 0.39 0.73 0.92 0.91 0.49 0.74 0.96 0.67 0.54 0.85 0.48 0.37 0.88 0.90 0.94 0.82 0.93 0.69 0.49 0.56 0.66 0.43 0.42 0.77 0.73 0.71 0.90 0.99 0.79 0.73 0.90 0.67 0.33 0.61 0.69 0.79 0.73 0.93 0.97 0.91 0.94 0.89 0.49 0.41 0.78 0.78 0.77 0.89 0.99 0.93 Slide credit: C. Dyer Source: D. Hoiem

Discretization Issues Can only store a finite number of pixels Choose your target physical image size, choose your resolution (pixels per inch, or dots per inch, dpi), determine width/height in pixels necessary Storage space goes up with square of resolution 600dpi has 4 more pixels than 300dpi Can only store a finite range of intensity values Typically referred to as depth - number of bits per pixel Directly related to the number of colors available and typically little choice Most common depth is 8, but also sometimes see 16 for grey Also concerned with the minimum and maximum intensity dynamic range What is enough resolution and enough depth? 28

Perception of Intensity Slide credit: C. Dyer

Perception of Intensity Slide credit: C. Dyer

Color Image R G B Slide credit: C. Dyer Source: D. Hoiem

Light and Color The frequency,, of light determines its color Wavelength,, is related: Energy also related Describe incoming light by a spectrum Intensity of light at each frequency A graph of intensity vs. frequency We care about wavelengths in the visible spectrum: between the infra-red (700nm) and the ultra-violet (400nm) 32

Color and Wavelength 33

# Photons Normal Daylight 400 500 600 700 Wavelength (nm) Note the hump at short wavelengths - the sky is blue

Seeing in Color The eye contains rods and cones Rods work at low light levels and do not see color That is, their response depends only on how many photons, not their wavelength Cones come in three types (experimentally and genetically proven), each responds in a different way to frequency distributions 35

Color receptors Each cone type has a different sensitivity curve Experimentally determined in a variety of ways For instance, the L-cone responds most strongly to red light Response in your eye means nerve cell firings How you interpret those firings is not so simple 36

Color Perception How your brain interprets nerve impulses from your cones is an open area of study, and deeply mysterious Colors may be perceived differently: Affected by other nearby colors Affected by adaptation to previous views Affected by state of mind Experiment: Subject views a colored surface through a hole in a sheet, so that the color looks like a film in space Investigator controls for nearby colors, and state of mind 37

The Same Color? 38

The Same Color? 39

Color Deficiency Some people are missing one type of receptor Most common is red-green color blindness in men Red and green receptor genes are carried on the X chromosome - most red-green color blind men have two red genes or two green genes Other color deficiencies Anomalous trichromacy, Achromatopsia, Macular degeneration Deficiency can be caused by the central nervous system, by optical problems in the eye, injury, or by absent receptors 40

Color Deficiency 41

Trichromacy Experiments show that it is possible to match almost all colors using only three primary sources - the principle of trichromacy Sometimes, have to add light to the target In practical terms, this means that if you show someone the right amount of each primary, they will perceive the right color This was how experimentalists knew there were 3 types of cones 42

Color Spaces The principle of trichromacy means that the colors displayable are all the linear combination of primaries Taking linear combinations of R, G and B defines the RGB color space the range of perceptible colors generated by adding some part of R, G and B If R, G and B correspond to a monitor s phosphors (monitor RGB), then the space is the range of colors displayable on the monitor 43

RGB Color Space Demo 44

Problems with RGB Can only represent a small range of all the colors humans are capable of perceiving (particularly for monitor RGB) It isn t easy for humans to say how much of RGB to use to make a given color How much R, G and B is there in brown? (Answer:.64,.16,.16) Perceptually non-uniform 45

CIE XYZ Color Space Imaginary primaries X, Y, Z Y component intended to correspond to intensity Cannot produce the primaries need negative light! Defined in 1931 to describe the full space of perceptible colors Revisions now used by color professionals Most frequently set x=x/(x+y+z) and y=y/(x+y+z) x,y are coordinates on a constant brightness slice 46

Standard RGB XYZ X 0.4124 Y 0.2126 Z 0.0193 R 3.2410 G 0.9692 B 0.0556 0.3576 0.7151 0.1192 1.5374 1.8760 0.2040 0.1805R 0.0721 G 0.9505 B 0.4986X 0.0416 Y 1.0570 Z Note that each matrix is the inverse of the other Recall, Y encodes brightness, so the matrix tells us how to go from RGB to grey

Accurate Color Reproduction Device dependent RGB space High quality graphic design applications, and even some monitor software, offers accurate color reproduction A color calibration phase is required: Fix the lighting conditions under which you will use the monitor Fix the brightness and contrast on the monitor Determine the monitor s γ Using a standard color card, match colors on your monitor to colors on the card: This gives you the matrix to convert your monitor s RGB to XYZ Together, this information allows you to accurately reproduce a color specified in XYZ format

More Linear Color Spaces Monitor RGB: primaries are monitor phosphor colors, primaries and color matching functions vary from monitor to monitor srgb: A new color space designed for web graphics YIQ: mainly used in television Y is (approximately) intensity, I, Q are chromatic properties Linear color space; hence there is a matrix that transforms XYZ coords to YIQ coords, and another to take RGB to YIQ

HSV Color Space (Alvy Ray Smith, 1978) Hue: the color family: red, yellow, blue Saturation: The purity of a color: white is totally unsaturated Value: The intensity of a color: white is intense, black isn t Space looks like a cone Parts of the cone can be mapped to RGB space Not a linear space, so no linear transform to take RGB to HSV But there is an algorithmic transform

HSV Color Space

MacAdam Ellipses Refer to the region which contains all colors which are indistinguishable Scaled by a factor of 10 and shown on CIE xy color space If you are shown two colors, one at the center of the ellipse and the other inside it, you cannot tell them apart Only a few ellipses are shown, but one can be defined for every point 52

CIE u v Space CIE u v is a non-linear color space where color differences are more uniform Note that now ellipses look more like circles The third coordinate is the original Z from XYZ Violet u v X 1 15Y 3Z 4X 9Y 53

Next Time Filter 54