Chapter2 Image Formation Reading: Szeliski, Chapter 2.

Slides:



Advertisements
Similar presentations
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
Advertisements

Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
Color spaces CIE - RGB space. HSV - space. CIE - XYZ space.
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.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner Lighting/Shading II Week.
School of Computing Science Simon Fraser University
Video enhances, dramatizes, and gives impact to your multimedia application. Your audience will better understand the message of your application.
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Announcements. Projection Today’s Readings Nalwa 2.1.
CSCE641: Computer Graphics Image Formation Jinxiang Chai.
What is color for?.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
CSC 461: Lecture 2 1 CSC461 Lecture 2: Image Formation Objectives Fundamental imaging notions Fundamental imaging notions Physical basis for image formation.
CSCE 641: Computer Graphics Image Formation & Plenoptic Function Jinxiang Chai.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color of (digital image) Raed S. Rasheed Agenda Color. Color Image. Color Models – RGB color model. – CMYK color model. – HSV and HSL color model.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Computer Graphics I, Fall 2008 Image Formation.
1 Image Formation. 2 Objectives Fundamental imaging notions Physical basis for image formation ­Light ­Color ­Perception Synthetic camera model Other.
Any questions about the current assignment? (I’ll do my best to help!)
Image Formation. Input - Digital Images Intensity Images – encoding of light intensity Range Images – encoding of shape and distance They are both a 2-D.
Human Eye and Color Rays of light enter the pupil and strike the back of the eye (retina) – signals go to the optic nerve and eventually to the brain Retina.
Advanced Computer Vision Chapter 2 Image Formation Presented by 林新凱
How A Camera Works Image Sensor Shutter Mirror Lens.
CPSC 641: Computer Graphics Image Formation Jinxiang Chai.
Image Formation Fundamentals Basic Concepts (Continued…)
Computer Science 631 Lecture 7: Colorspace, local operations
Digital Image Fundamentals Selim Aksoy Department of Computer Engineering Bilkent University
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
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:
Advanced Computer Vision Chapter 2 Image Formation Presented by 楊應甲 2012/3/6, 13,
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
Lecture 34: Light, color, and reflectance CS4670 / 5670: Computer Vision Noah Snavely.
1Ellen L. Walker 3D Vision Why? The world is 3D Not all useful information is readily available in 2D Why so hard? “Inverse problem”: one image = many.
David Luebke 1 2/5/2016 Color CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Advanced Computer Vision Chapter 2 Image Formation Presented by: 傅楸善 & 張乃婷
Advanced Computer Vision Chapter 2 Image Formation Chapter 2 Image Formation Presented by: 傅楸善 & 翁丞世
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
CSE 185 Introduction to Computer Vision
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
Color Models Light property Color models.
CS262 – Computer Vision Lect 4 - Image Formation
Color Image Processing
Color Image Processing
Color Image Processing
COLOR space Mohiuddin Ahmad.
Color Image Processing
Distributed Ray Tracing
Perception and Measurement of Light, Color, and Appearance
Color & Light CMSC 435/634.
ECE 638: Principles of Digital Color Imaging Systems
Computer Vision Lecture 4: Color
Color Image Processing
Announcements Midterm out today Project 1 demos.
Distributed Ray Tracing
Part One: Acquisition of 3-D Data 2019/1/2 3DVIP-01.
Filtering Things to take away from this lecture An image as a function
Color Image Processing
Color Model By : Mustafa Salam.
Distributed Ray Tracing
Histograms and Color Balancing
Presentation transcript:

Chapter2 Image Formation Reading: Szeliski, Chapter 2

What are we tuned to? The visual system is tuned to process structures typically found in the world.

What is a natural image?

The structure of ambient light

What is a natural image?

The visual system seems to be tuned to a set of images: What is a natural image?

The visual system seems to be tuned to a set of images: Did you saw this image? What is a natural image?

The visual system seems to be tuned to a set of images: Demo inspired from D. Field

6 images Not all these images are the result of sampling a real-world plenoptic function

Proposition 1. The primary task of early vision is to deliver a small set of useful measurements about each observable location in the plenoptic function. Proposition 2. The elemental operations of early vision involve the measurement of local change along various directions within the plenoptic function. Goal: to transform the image into other representations (rather than pixel values) that makes scene information more explicit Cavanagh, Perception 95

What are “visual features” Shape, color, texture, etc

2.1 Photometric Image Formation Discrete color or intensity values Where do these value come from? – Geometry, projection – Camera optics, sensor properties – Lighting, surface properties

Images as Functions

We can think of an image as a function, f, from R 2 to R: – f( x, y ) gives the intensity at position ( x, y ) – Realistically, we expect the image only to be defined over a rectangle, with a finite range: f: [a,b] x [c,d]  [0,1] A color image is just three functions pasted together. We can write this as a “vector-valued” function:

Images as functions

What is a digital image? We usually work with digital (discrete) images: – Sample the 2D space on a regular grid – Quantize each sample (round to nearest integer) If our samples are  apart, we can write this as: f[i,j] = Quantize{ f(i , j  ) } The image can now be represented as a matrix of integer values

Photometric Image Formation Perspective projectionLight scattering Lens opticsBayer color filter array

Photometric Image Formation

2.2 Lighting Point light source – Single location (small light bulb) – Infinity: the sun --directional light Area light source – A finite rectangular area emitting light equally in all directions Environment map Light direction to color mapping

2.2.2 Reflectance and Shading many models for reflectance and shading BRDF: Bidirectional Reflectance Distribution Function

BRDF BRDF is reciprocal For isotropic surface, no preferred directions for light transport

BRDF Light existing a surface point: Foreshortening factor

Diffuse Reflection Also called Lambertian or matte reflection – Light is scattered uniformly in all directions, i.e. – BRDF is constant: Think about the inverse problem

Specular Reflection Depends on the direction of outgoing light Mirror surface: – Specular reflection direction

Specular Reflection Amount of light – Phone model – Micro-facet model – Larger,, more specular surface with hightlights ; Smaller, softer gloss

Phone Shading Model Diffuse Specular Ambient: – Does not depend on surface orientation – Color and both ambient illumination and the object

Phone Shading Model The recent advent of programmable pixel shaders makes the use of more complex models feasible.

Example

Realistic Rendering The recent advent of programmable pixel shaders makes the use of more complex models feasible. Ioannis GkioulekasIoannis Gkioulekas, et al, Siggraph’13

Optics Lens, sensor Ideal pinhole camera More complex: focus, exposure, vignetting, aberation,…,

Thin lens model Thin lens: low, equal curvature on both sides Optical axis

Thin lens model object Focus plane

Thin lens model object Circle of confusion Pinhole camera

Pinhole Camera Model object

Pinhole Camera Model object

Pinhole Camera Model object

2.3 3D to 2D Projection 3D perspective: the most commonly used projection in computer vision and computer graphics 3D view of world perspective book: pp32-60

Pinhole Camera Model object

Pinhole Camera Model object

Pinhole Camera Model Using homogeneous (projective) coordinate –

Camera Intrinsics Imperfect camera image sensor s: possible skew between sensor axes a: aspect ratio : optical center F : focal length Five intrinsic parameters

Camera Intrinsics Focal length Actual focal length, e.g. 18~55mm, Conventional sensor width: 35 mm Digital Image: integer values, [0,W) x [0,H) Focal length Sensor width Field of view

Extrinsic Parameters World Coordinate system to Camera Coordinate system Extrinsic parameters

Extrinsic Parameters with Camera Matrix

2.3 Digital Camera Process chart

2.3 Digital Camera Process chart

2.3.2 Color Light from different parts of the spectrum is somehow integrated into discrete RGB color values

2.3.2 Color Primary and Secondary Colors Additive colors (projector, monitor) Subtractive colors (printing, printing)

CIE color matching Commission Internationale d’Eclairage (CIE) Color matching experiments pure colors to the R=700.0nm, G=546.1nm, and B=435.8nm

XYZ Color Space Y=1 for pure R (1,0,0)

XYZ Color Space Y=1 for (1,1,1)

XYZ Color Space Chromaticity coordinates Yxy (luminance plus the two most distinctive chrominance components)

Chromaticity Diagram

L*a*b* Color Space Human visual system is roughly logarithmic Differences in luminance or chrominance are more perceptually uniform Non-linear mapping from XYZ to L*a*b* space

L*a*b* Color Space

Color Cameras Spectral response function Make sure to generate the standard color values HDTV, new monitors, new standard ITU-R BT.709

Color Filter Arrays Separate sensors for three primary colors Bayer RGB pattern: (a) color filter array layout; (b) interpolated pixel values

Bayer Pattern, 1976 Green filters are twice as many as red and blue filters Human visual system is much more sensitive to high frequency detail in luminance than chrominance Luminance is mostly determined by green value

Color Balance Move the white point of a given image closer to pure white (R=G=B) – Multiply RGB values by a different factor – Color twist, general 3x3 transform matrix – Exercise 2.9 (optional)

Gamma CRT Monitor: non-linear relationship between the voltage and the resulting brightness is determined by gamma Pre-map the sensed luminance Y through an inverse gamma

Gamma Compensation Noise added during transmission or quantization will be reduced in the darker regions of the signal where it was more visible

Other Color Spaces XYZ, RGB for spectral content of color signals Others for image coding and computer graphics – YUV, YCrCb, HSV

YUV Color Space YUV for video transmission – Luma – Two lower frequency chroma channels

YCrCb Color Space Closely related to YUV Different scale factor to fit within the 8-bit range for digital signals Useful for careful image de-blocking, et al.

HSV Color Space Hue: direction around a color wheel Saturation: scaled distance from the diagonal Value: mean or maximum color value More suitable for color picking

HSV Color Space

Color Ratios Suitable for algorithms that only affect the value/luminance and not saturation or hue After processing, scale rgb back by the color ratio Ynew/Yold Color FAQ,

2.3.3 Compression Converting signal into YCbCr (or related variant) Compress the luminance signal with higher fidelity than the chrominance signal