Image Processing - Intro. Tamás Szirányi

Similar documents
Introduction to Visual Perception & the EM Spectrum

Review. Introduction to Visual Perception & the EM Spectrum. Overview (1):

Chapter 2: Digital Image Fundamentals. Digital image processing is based on. Mathematical and probabilistic models Human intuition and analysis

Digital Image Processing

Lecture 2 Digital Image Fundamentals. Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

VC 14/15 TP2 Image Formation

VC 11/12 T2 Image Formation

Unit 1 DIGITAL IMAGE FUNDAMENTALS

STUDY NOTES UNIT I IMAGE PERCEPTION AND SAMPLING. Elements of Digital Image Processing Systems. Elements of Visual Perception structure of human eye

Digital Image Processing COSC 6380/4393

DIGITAL IMAGE PROCESSING LECTURE # 4 DIGITAL IMAGE FUNDAMENTALS-I

Digital Image Processing

Image and Multidimensional Signal Processing

Vision. The eye. Image formation. Eye defects & corrective lenses. Visual acuity. Colour vision. Lecture 3.5

CS 548: Computer Vision REVIEW: Digital Image Basics. Spring 2016 Dr. Michael J. Reale

VC 16/17 TP2 Image Formation

Visual Perception of Images

Digital Image Processing COSC 6380/4393

LIGHT AND LIGHTING FUNDAMENTALS. Prepared by Engr. John Paul Timola

Visual perception basics. Image aquisition system. IE PŁ P. Strumiłło

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

Human Visual System. Prof. George Wolberg Dept. of Computer Science City College of New York

CS559: Computer Graphics. Lecture 2: Image Formation in Eyes and Cameras Li Zhang Spring 2008

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

Image Formation and Capture

Digital Image Processing

Further reading. 1. Visual perception. Restricting the light. Forming an image. Angel, section 1.4

Digital Image Processing

Science 8 Unit 2 Pack:

Digitization and fundamental techniques

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

Cameras. CSE 455, Winter 2010 January 25, 2010

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

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

CSE 527: Introduction to Computer Vision

Name: Date: Block: Light Unit Study Guide Matching Match the correct definition to each term. 1. Waves

CS6670: Computer Vision

Image Acquisition, Display, and Perception

Physical Science Physics

The Special Senses: Vision

Digital Image Fundamentals and Image Enhancement in the Spatial Domain

IMAGE FORMATION. Light source properties. Sensor characteristics Surface. Surface reflectance properties. Optics

Course Objectives & Structure

Section 1: Sound. Sound and Light Section 1

Digital Imaging Rochester Institute of Technology

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

EC-433 Digital Image Processing

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Chapter 25. Optical Instruments

The Human Eye and a Camera 12.1

III: Vision. Objectives:

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSE 557 Autumn Good resources:

Vision and Color. Brian Curless CSE 557 Autumn 2015

Reading. 1. Visual perception. Outline. Forming an image. Optional: Glassner, Principles of Digital Image Synthesis, sections

Image Formation. Dr. Gerhard Roth. COMP 4102A Winter 2015 Version 3

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

Vision and Color. Reading. The lensmaker s formula. Lenses. Brian Curless CSEP 557 Autumn Good resources:

General Imaging System

Digital Image Processing

Topic 1 - What is Light? 1. Radiation is the type of energy transfer which does not require... A matter B heat C waves D light

Vision and Color. Reading. Optics, cont d. Lenses. d d f. Brian Curless CSEP 557 Fall Good resources:

Vision and Color. Brian Curless CSEP 557 Fall 2016

Fundamentals. Preview 2.1. Elements of Visual Perception. Those who wish to succeed must ask the right preliminary questions.

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

Digital Image Processing

Unit 1: Image Formation

The Human Visual System. Lecture 1. The Human Visual System. The Human Eye. The Human Retina. cones. rods. horizontal. bipolar. amacrine.

ELECTROMAGNETIC WAVES AND LIGHT. Physics 5 th Six Weeks

Reading. Lenses, cont d. Lenses. Vision and color. d d f. Good resources: Glassner, Principles of Digital Image Synthesis, pp

Visual Perception. Readings and References. Forming an image. Pinhole camera. Readings. Other References. CSE 457, Autumn 2004 Computer Graphics

Optics Review (Chapters 11, 12, 13)

LlIGHT REVIEW PART 2 DOWNLOAD, PRINT and submit for 100 points

Instructional Resources/Materials: Light vocabulary cards printed (class set) Enough for each student (See card sort below)

The human visual system

Cvision 2. António J. R. Neves João Paulo Silva Cunha. Bernardo Cunha. IEETA / Universidade de Aveiro

Graphics and Image Processing Basics

Chapter 9: Light, Colour and Radiant Energy. Passed a beam of white light through a prism.

Digital Images & Image Quality

Introduction

Capturing Light in man and machine

Basic principles of photography. David Capel 346B IST

Vision, Color, and Illusions. Vision: How we see

It allows wide range of algorithms to be applied to the input data. It avoids noise and signals distortion problems.

Image Formation. Dr. Gerhard Roth. COMP 4102A Winter 2014 Version 1

Chapter 6 Human Vision

CPSC 425: Computer Vision

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

Capturing light and color

Name: Date: Waves and Electromagnetic Spectrum, Sound Waves, and Light Waves Study Guide For Final

Introduction. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Refraction, Lenses, and Prisms

Chapter 16 Light Waves and Color

Science Focus 8. Light and Optical Systems. Pop Quiz Master (5 questions) for each Topic A C B D C C B C C A D B C A B B C C A C A C D B A C B B C D

COLOR and the human response to light

Announcements. EM Induction. Faraday s Law 4/24/15. Why is current induced? EM Induction: Current is Induced

Mastery. Chapter Content. What is light? CHAPTER 11 LESSON 1 C A

Chapter 11 Lesson 4 THE EYE

Visual Optics. Visual Optics - Introduction

Image Acquisition Hardware. Image Acquisition and Representation. CCD Camera. Camera. how digital images are produced

a) How big will that physical image of the cells be your camera sensor?

Transcription:

Image Processing - Intro Tamás Szirányi

The path of light through optics

A Brief History of Images 1558 Camera Obscura, Gemma Frisius, 1558

A Brief History of Images 1558 1568 Lens Based Camera Obscura, 1568

A Brief History of Images 1558 1568 1837 Still Life, Louis Jaques Mande Daguerre, 1837

A Brief History of Images 1558 1568 1837 Silicon Image Detector, 1970 1970

A Brief History of Images 1558 1568 1837 Digital Cameras 1970 1994

Image matrix at the input Digital image = 2D pixel array; (x,y): pixel coordinates Binary: b(x,y) Grayscale: f(x,y) f(x,y) : 0 255

Color image array Color image: 2D pixelarray (RGB)

Commonly used Terminology Neighbors of a pixel p=(i,j) N 4 (p)={(i-1,j),(i+1,j),(i,j-1),(i,j+1)} N 8 (p)={(i-1,j),(i+1,j),(i,j-1),(i,j+1), (i-1,j-1),(i-1,j+1),(i+1,j-1),(i+1,j+1)} Adjacency 4-adjacency: p,q are 4-adjacent if p is in the set N 4 (q) 8-adjacency: p,q are 8-adjacent if p is in the set N 8 (q) Note that if p is in N 4/8 (q), then q must be also in N 4/8 (p) EE465: Introduction to Digital Image Processing 10

Common Distance Definitions Euclidean distance (2-norm) D 4 distance (city-block distance) D 8 distance (checkboard distance) 2 5 2 5 2 5 2 1 2 2 2 5 4 3 3 2 2 1 3 2 4 3 2 2 2 2 2 2 1 1 1 2 2 1 0 1 2 2 1 0 1 2 2 1 0 1 2 5 2 1 2 5 3 2 1 2 3 2 1 1 1 2 2 2 5 2 5 2 2 4 3 2 3 4 2 2 2 2 2 EE465: Introduction to Digital Image Processing 11

Picture elements Picture in 2D and 3D: 2D: pixel (picture element) 3D: voxel (volume element) Pixel geometry:

Neighborhood Neighborhood in 2D : 4 or 8 connections For 3D we have more cases: Side (6), edge(18), corner(26)

Resolution

Resolution

Sampling theorem Double highest frequency fits the sampling rate

Sampling theory Sampling is just the double:

Nyquist frequency OK

Nyquist sampling rate Bad rating:

Sampling Theorem Continuous signal: f x Shah function (Impulse train): s x x x x nx s 0 n Sampled function: x 0 x f x s x f x x nx f s 0 n x

Sampling Theorem Sampled function: F S x f x s x f x x nx f s 0 n u F u S u F u F A u 1 x u n x 0 n 0 F S u A x 0 Sampling frequency 1 x 0 u max u Only if u max 1 2x 0 u max 1 x u 0

Nyquist Theorem If u max 1 2x 0 F S A x 0 u Aliasing When can we recover F u from u? Only if We can use 0 u max u 1 x 0 F S 1 umax (Nyquist Frequency) 2x C u x 0 u 1 2 otherwise 0 x0 Then F u F u C u and f x IFT F u S Sampling frequency must be greater than 2umax

Aliasing

Aliasing in Digital Images EE465: Introduction to Digital Image Processing 24

Image Formation Fundamentals

How are images represented in the computer?

Color images

Image formation There are two parts to the image formation process: The geometry of image formation, which determines where in the image plane the projection of a point in the scene will be located. The physics of light, which determines the brightness of a point in the image plane as a function of illumination and surface properties.

A Simple model of image formation The scene is illuminated by a single source. The scene reflects radiation towards the camera. The camera senses it via chemicals on film.

Pinhole camera This is the simplest device to form an image of a 3D scene on a 2D surface. Straight rays of light pass through a pinhole and form an inverted image of the object on the image plane. x y fx Z fy Z

Camera optics In practice, the aperture must be larger to admit more light. Lenses are placed to in the aperture to focus the bundle of rays from each scene point onto the corresponding point in the image plane

Image formation (cont d) Optical parameters of the lens lens type focal length field of view Photometric parameters type, intensity, and direction of illumination reflectance properties of the viewed surfaces Geometric parameters type of projections position and orientation of camera in space perspective distortions introduced by the imaging process

Image distortion Distortion (barrel, cushion)

What is light? The visible portion of the electromagnetic (EM) spectrum. It occurs between wavelengths of approximately 400 and 700 nanometers.

Short wavelengths Different wavelengths of radiation have different properties. The x-ray region of the spectrum, it carries sufficient energy to penetrate a significant volume or material.

Long wavelengths Copious quantities of infrared (IR) radiation are emitted from warm objects (e.g., locate people in total darkness).

Long wavelengths (cont d) Synthetic aperture radar (SAR) imaging techniques use an artificially generated source of microwaves to probe a scene. SAR is unaffected by weather conditions and clouds (e.g., has provided us images of the surface of Venus).

Range images An array of distances to the objects in the scene. They can be produced by sonar or by using laser rangefinders.

Sonic images Produced by the reflection of sound waves off an object. High sound frequencies are used to improve resolution.

CCD (Charged-Coupled Device) cameras Tiny solid state cells convert light energy into electrical charge. The image plane acts as a digital memory that can be read row by row by a computer.

Frame grabber Usually, a CCD camera plugs into a computer board (frame grabber). The frame grabber digitizes the signal and stores it in its memory (frame buffer).

Image digitization Sampling means measuring the value of an image at a finite number of points. Quantization is the representation of the measured value at the sampled point by an integer.

Image digitization (cont d)

Image quantization(example) 256 gray levels (8bits/pixel) 32 gray levels (5 bits/pixel) 16 gray levels (4 bits/pixel) 8 gray levels (3 bits/pixel) 4 gray levels (2 bits/pixel) 2 gray levels (1 bit/pixel)

Electromagnetic spectrum EE465: Introduction to Digital Image Processing 45

Light: the Visible Spectrum Visible range: 0.43µm(violet)-0.78µm(red) Six bands: violet, blue, green, yellow, orange, red The color of an object is determined by the nature of the light reflected by the object Monochromatic light (gray level) Three elements measuring chromatic light Radiance, luminance and brightness EE465: Introduction to Digital Image Processing 46

Beyond Visible Gamma-ray and X-ray: medical and astronomical applications Infrared (thermal imaging): near-infrared and far-infrared Microwave imaging: Radio-frequency: MRI and astronomic applications EE465: Introduction to Digital Image Processing 47

Thermal Imaging Operate in infrared frequency Human body disperses heat (red pixels) Different colors indicate varying temperatures EE465: Introduction to Digital Image Processing 48

Radar Imaging Operate in microwave frequency Mountains in Southeast Tibet EE465: Introduction to Digital Image Processing 49

Magnetic Resonance Imaging (MRI) Operate in radio frequency knee spine head EE465: Introduction to Digital Image Processing 50

Comparison of Different Imaging Modalities visible infrared radio EE465: Introduction to Digital Image Processing 51

Fluorescence Microscopy Imaging Operate in ultraviolet frequency normal corn smut corn EE465: Introduction to Digital Image Processing 52

X-ray Imaging Operate in X-ray frequency chest head EE465: Introduction to Digital Image Processing 53

Positron Emission Tomography Operate in gamma-ray frequency EE465: Introduction to Digital Image Processing 54

Single-sensor Imaging EE465: Introduction to Digital Image Processing 55

Motion Aids Imaging EE465: Introduction to Digital Image Processing 56

EE465: Introduction to Digital Image Processing 57

Sensor Array: CCD Imaging EE465: Introduction to Digital Image Processing 58

Image Formation Model f(x,y)=i(x,y)r(x,y) 0<f(x,y)< 0<i(x,y)< Intensity proportional to energy radiated by a physical source illumination 0<r(x,y)<1 reflectance EE465: Introduction to Digital Image Processing 59

Sampling and Quantization: 1D Case EE465: Introduction to Digital Image Processing 60

2D Sampling and Quantization EE465: Introduction to Digital Image Processing 61

Introduction to Grayscale Images Image acquisition Light and Electromagnetic spectrum Sampling and Quantization Image perception Structure of human eyes Image formation in human eyes Human vision system Image representation Spatial and bit-depth resolution Local neighborhood EE465: Introduction to Digital Image Processing 62

Human Eye Structure Three membranes enclose the eye: Cornea and sclera, Choroid, Retina ciliary body iris diaphragm Pupil size: 2-8mm Eye color: melanin (pigment) in iris EE465: Introduction to Digital Image Processing 63

Retina When the eye is properly focused, light from an outside object is imaged on the retina Two classes of receptors are located over the surface of retina: cones and rods Cone: 6-7 million in each eye, central part of retina (fovea) and highly sensitive to color Rod: 75-150 million, all over the retina surface and sensitive to low levels of illumination EE465: Introduction to Digital Image Processing 64

Image Formation in the Eye Focal length: 14-17mm Length of tree image 2.55mm For distant objects (>3m), lens exhibits the least refractive power (flattened) For nearby objects (<1m), lens is most strongly refractive (curved) EE465: Introduction to Digital Image Processing 65

Eye Physiology Rods are more sensitive to light than the cones.

Eye Physiology The eye contains about 6.5 million cones and 100 million rods distributed over the retina. The density of the cones is greatest at the fovea, this is the region of sharpest photopic vision.

Rods and Cones in Retina EE465: Introduction to Digital Image Processing 69

Eye Physiology There are three basic types of cones in the retina These cones have different absorption characteristics as a function of wavelength with peak absorptions in the red, green, and blue regions of the optical spectrum. is blue, b is green, and g is red There is a relatively low sensitivity to blue light There is a lot of overlap

Eye Physiology The optic nerve bundle contains on the order of 800,000 nerve fibers. There are over 100,000,000 receptors in the retina. Therefore, the rods and cones must be interconnected to nerve fibers on a many-to-one basis.

Contrast Sensitivity 0% 1% 2% 3% 4% Circle constant Background constant Just noticeable difference (JND) at 2%

Contrast Sensitivity 0% 1% 2% 3% 4% Circle constant Background constant Just noticeable difference (JND) at 2%

Contrast Sensitivity 0% 1% 2% 3% 4% Background different then both halves Background same as right half Just noticeable difference (JND): 4% (top) and 2% (bottom)

Contrast Sensitivity 0% 1% 2% 3% 4% Background different then both halves Background same as right half Just noticeable difference (JND): 4% (top) and 2% (bottom)

Contrast Sensitivity The response of the eye to changes in the intensity of illumination is nonlinear Consider a patch of light of intensity i+di surrounded by a background intensity I as shown in the previous figure

Contrast Sensitivity Over a wide range of intensities, it is found that the ratio di/i, called the Weber fraction, is nearly constant at a value of about 0.02. This does not hold at very low or very high intensities Furthermore, contrast sensitivity is dependent on the intensity of the surround. Consider the second panel of the previous figure.

Brightness Adaptation Human visual system cannot operate over such a high dynamic range simultaneously, But accomplish such large variation by changes in its overall sensitivity, a phenomenon called brightness adaptation EE465: Introduction to Digital Image Processing 78

Brightness Discrimination Weber ratio= I/I EE465: Introduction to Digital Image Processing 79

Mach Bands EE465: Introduction to Digital Image Processing 80

Simultaneous Contrast EE465: Introduction to Digital Image Processing 81

Optical Illusions EE465: Introduction to Digital Image Processing 82

Introduction to Grayscale Images Image acquisition Light and Electromagnetic spectrum Sampling and Quantization Image perception Structure of human eyes Image formation in human eyes Human vision system Image representation Spatial and bit-depth resolution Local neighborhood EE465: Introduction to Digital Image Processing 83

Image Represented by a Matrix Spatial resolution Bit-depth resolution EE465: Introduction to Digital Image Processing 84

Bit-depth Resolution EE465: Introduction to Digital Image Processing 85

Bit-depth Resolution (Con d) EE465: Introduction to Digital Image Processing 86

High Dynamic Range Imaging Q: Can we generate a HDR image (16bpp) by a standard camera? A: Yes, adjust the exposure and fuse multiple LDR images together EE465: Introduction to Digital Image Processing 87

Spatial Resolution EE465: Introduction to Digital Image Processing 88

Image Resampling EE465: Introduction to Digital Image Processing 89

Towards Gigapixel Mega-pel Giga-pel Photographers and artists have manually or semi-automatically stitched hundreds of mega-pel pictures together to demonstrate how a giga-pel picture looks like the power of pixels http://triton.tpd.tno.nl/gigazoom/delft2.htm EE465: Introduction to Digital Image Processing 90

Block-based Processing EE465: Introduction to Digital Image Processing 91

Image file formats Many image formats adhere to the simple model shown below (line by line, no breaks between lines). The header contains at least the width and height of the image. Most headers begin with a signature or magic number - a short sequence of bytes for identifying the file format.

Comparison of image formats