Digital Image Processing

Similar documents
Digital Image Processing

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

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

Digital Image Processing

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

Image and Multidimensional Signal Processing

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

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

Digital Image Processing

Introduction to Visual Perception & the EM Spectrum

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

Image Processing (EA C443)

EC-433 Digital Image Processing

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

Digital Image Processing

Digital Image Processing

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

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

Vision. Biological vision and image processing

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

CSCE 763: Digital Image Processing

Acquisition and representation of images

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

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

Digital Image Processing. Lecture # 8 Color Processing

Image Perception & 2D Images

Acquisition and representation of images

Image Processing - Intro. Tamás Szirányi

Graphics and Image Processing Basics

DIGITAL IMAGE PROCESSING LECTURE # 4 DIGITAL IMAGE FUNDAMENTALS-I

The human visual system

Unit 1 DIGITAL IMAGE FUNDAMENTALS

Cameras. CSE 455, Winter 2010 January 25, 2010

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

Vision Basics Measured in:

Image and Video Processing

Visual Perception of Images

The Human Eye and a Camera 12.1

Human Vision, Color and Basic Image Processing

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

Study guide for Graduate Computer Vision

Lecture 2: Digital Image Fundamentals -- Sampling & Quantization

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

Using Color in Scientific Visualization

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

The Special Senses: Vision

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

Early Visual Processing: Receptive Fields & Retinal Processing (Chapter 2, part 2)

AP PSYCH Unit 4.2 Vision 1. How does the eye transform light energy into neural messages? 2. How does the brain process visual information? 3.

Digital Image Fundamentals and Image Enhancement in the Spatial Domain

General Imaging System

ECC419 IMAGE PROCESSING

Visual Perception. human perception display devices. CS Visual Perception

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

Prof. Feng Liu. Winter /09/2017

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

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

Retina. Convergence. Early visual processing: retina & LGN. Visual Photoreptors: rods and cones. Visual Photoreptors: rods and cones.

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

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

CPSC 425: Computer Vision

Lecture 3: Grey and Color Image Processing

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

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

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

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

Visual Effects of Light. Prof. Grega Bizjak, PhD Laboratory of Lighting and Photometry Faculty of Electrical Engineering University of Ljubljana

Human Vision and Human-Computer Interaction. Much content from Jeff Johnson, UI Wizards, Inc.

Life Science Chapter 2 Study Guide

Digital Image Processing COSC 6380/4393

Image Processing for feature extraction

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

Refraction, Lenses, and Prisms

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

Visual Effects of. Light. Warmth. Light is life. Sun as a deity (god) If sun would turn off the life on earth would extinct

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

Colors in Scientific Visualization. Mike Bailey Oregon State University

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

Color Image Processing

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

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

IMAGE ENHANCEMENT - POINT PROCESSING

Human Vision. Human Vision - Perception

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

Spatial Vision: Primary Visual Cortex (Chapter 3, part 1)

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

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

CS 544 Human Abilities

Digital Image Processing COSC 6380/4393

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

Lecture 8. Human Information Processing (1) CENG 412-Human Factors in Engineering May

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

HW- Finish your vision book!

Unit 1: Image Formation

Color, Vision, & Perception. Outline

Computer Assisted Image Analysis 1 GW 1, Filip Malmberg Centre for Image Analysis Deptartment of Information Technology Uppsala University

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

Transcription:

Digital Image Processing Digital Imaging Fundamentals Christophoros Nikou cnikou@cs.uoi.gr Images taken from: R. Gonzalez and R. Woods. Digital Image Processing, Prentice Hall, 2008. Digital Image Processing course by Brian Mac Namee, Dublin Institute of Technology. University of Ioannina - Department of Computer Science 2 Digital Image Fundamentals Those who wish to succeed must ask the right preliminary questions Aristotle 1

3 Contents This lecture will cover: The human visual system Light and the electromagnetic spectrum Image representation Image sensing and acquisition Sampling, quantisation and resolution 4 Human Visual System The best vision model we have! Knowledge of how images form in the eye can help us with processing digital images We will take just a whirlwind tour of the human visual system 2

5 Structure Of The Human Eye The lens focuses light from objects onto the retina The retina is covered with light receptors called cones (6-7 million) and rods (75-150 million) Cones are concentrated around the fovea and are very sensitive to colour Rods are more spread out and are sensitive to low levels of illumination 6 Structure Of The Human Eye (cont.) Density of cones and rods across a section of the right eye 3

7 Structure Of The Human Eye (cont.) Each cone is connected to each own nerve end. They can resolve fine details. Sensitive to color (photopic vision) Many rods are connected to a single nerve end Limited resolution with respect to cones Not sensitive to color Sensitive to low level illumination (scotopic vision) 8 Blind-Spot Experiment Draw an image similar to that below on a piece of paper (the dot and cross are about 6 inches apart) Close your right eye and focus on the cross with your left eye Hold the image about 20 inches away from your face and move it slowly towards you The dot should disappear! 4

9 Image Formation In The Eye Muscles within the eye can be used to change the shape of the lens allowing us focus on objects that are near or far away (in contrast with a camera where the distance between the lens and the focal plane varies) An image is focused onto the retina causing rods and cones to become excited which ultimately send signals to the brain 10 Brightness Adaptation & Discrimination The human visual system can perceive approximately 10 10 different light intensity levels. At any time instance, we can only discriminate between a much smaller number brightness adaptation. Similarly, the perceived intensity of a region is related to the light intensities of the regions surrounding it. 5

11 Brightness Adaptation & Discrimination (cont ) Weber ratio 12 Brightness Adaptation & Discrimination (cont ) An example of Mach bands 6

13 Brightness Adaptation & Discrimination (cont ) 14 Brightness Adaptation & Discrimination (cont ) An example of simultaneous contrast 7

15 Optical Illusions Our visual system plays many interesting tricks on us 16 Optical Illusions (cont ) 8

17 Optical Illusions (cont ) Stare at the cross in the middle of the image and think circles 18 Light And The Electromagnetic Spectrum Light is just a particular part of the electromagnetic spectrum that can be sensed by the human eye The electromagnetic spectrum is split up according to the wavelengths of different forms of energy 9

19 Light And The Electromagnetic Spectrum (cont.) 20 Reflected Light The colours that we perceive are determined by the nature of the light reflected from an object For example, if white light is shone onto a green object most wavelengths are absorbed, while green light is reflected from the object Colours Absorbed 10

21 Image Acquisition Images are typically generated by illuminating a scene and absorbing the energy reflected by the objects in that scene Typical notions of illumination and scene can be way off: X-rays of a skeleton Ultrasound of an unborn baby Electro-microscopic images of molecules 22 Image Sensing and Acquisition Sensors transform the incoming energy into voltage and the output of the sensor is digitized. Imaging Sensor Line of Image Sensors Array of Image Sensors 11

23 Image Sensing Using Sensor Strips and Rings 24 Image Representation A digital image is composed of M rows and N columns of pixels each storing a value Pixel values are in the range 0-255 (blackwhite) We will see later on that images can easily be represented as matrices row col f (row, col) 12

25 Colour images 26 Colour images 13

27 Image Sampling And Quantisation A digital sensor can only measure a limited number of samples at a discrete set of energy levels Quantisation is the process of converting a continuous analogue signal into a digital representation of this signal 28 Image Sampling And Quantisation 14

29 Image Sampling And Quantisation 30 Image Sampling And Quantisation (cont ) Remember that a digital image is always only an approximation of a real world scene 15

31 Image Representation 32 Image Representation 16

33 Image Representation 34 Image Representation 17

35 Saturation & Noise Dynamic range: The ratio of the maximum (saturation) tothethe minimum (noise) detectable intensity of the imaging system. Noise generally appear as a grainy texture pattern in the darker regions and masks the lowest detectable true intensity level 36 Spatial Resolution The spatial resolution of an image is determined by how sampling was carried out Spatial resolution simply refers to the smallest discernable detail in an image Vision specialists will often talk about pixel size Graphic designers will talk about dots per inch (DPI) 18

37 Spatial Resolution (cont ) 38 Spatial Resolution (cont ) 1024 * 1024 512 * 512 256 * 256 128 * 128 64 * 64 32 * 32 19

39 Spatial Resolution (cont ) 40 Intensity Level Resolution Intensity level resolution refers to the number of intensity levels used to represent the image The more intensity it levels l used, the finer the level l of detail discernable in an image Intensity level resolution is usually given in terms of the number of bits used to store each intensity level Number of Bits Number of Intensity Levels Examples 1 2 0, 1 2 4 00, 01, 10, 11 4 16 0000, 0101, 1111 8 256 00110011, 01010101 16 65,536 1010101010101010 20

41 Intensity Level Resolution (cont ) 256 grey levels (8 bits per pixel) 128 grey levels (7 bpp) 64 grey levels (6 bpp) 32 grey levels (5 bpp) 16 grey levels (4 bpp) 8 grey levels (3 bpp) C. Nikou Digital Image Processing 4 grey levels (E12) (2 bpp) 2 grey levels (1 bpp) 42 Intensity Level Resolution (cont ) Low Detail Medium Detail High Detail 21

43 Intensity Level Resolution (cont ) 44 Intensity Level Resolution (cont ) 22

45 Intensity Level Resolution (cont ) 46 Intensity Level Resolution (cont ) Isopreference curves represent the dependence between intensity and spatial resolutions. Points lying on a curve represent images of equal quality as described by observers. The curves become more vertical as the degree of detail increases (a lot of detail need less intensity levels 23

47 Resolution: How Much Is Enough? The big question with resolution is always how much is enough? This all depends on what is in the image and what you would like to do with it Key questions include Does the image look aesthetically pleasing? Can you see what you need to see within the image? 48 Resolution: How Much Is Enough? (cont ) The picture on the right is fine for counting the number of cars, but not for reading the number plate 24

49 Interpolation The process of using known data to estimate values at unknown locations Basic operation for shrinking, zooming, rotation and translation e.g. a 500x500 image has to be enlarged by 1.5 to 750x750 pixels Create an imaginary 750x750 grid with the same pixel spacing as the original and then shrink it to 500x500 The 750x750 shrunk pixel spacing will be less than the spacing in the original image. Pixel values have to be determined in between the original pixel locations 50 Interpolation (cont.) How to determine pixel values Nearest neighbour Bilinear Bicubic 2D sinc b a 1-a Y 1-b 25

51 Interpolation (cont...) 52 Interpolation (cont...) 26

53 Distances between pixels For pixels p(x,y), q(s,t) and z(v,w), D is a distance function or metric if: a) D( p, q) 0 ( D( p, q) = 0 iff p = q), b) D( p, q) = D( q, p), c) D( p, z) D( p, q) + D( q, z). The Euclidean distance between p and q is defined as: 1 2 2 2 D (, ) ( ) ( ) e p q = x s + y t 54 Distances between pixels (cont.) The city-block or D 4 distance between p and q is defined as: D ( pq, ) = x s + y t 4 Pixels having the city-block distance from a pixel (x,y) less than or equal to some value T form a diamond centered at (x,y). For example, for T=2: 2 2 1 2 2 1 0 1 2 2 1 2 2 27

55 Distances between pixels (cont.) The chessboard or D 8 distance between p and q is defined as: D ( pq, ) = max( x s, y t ) 8 Pixels having the city-block distance from a pixel (x,y) less than or equal to some value T form a square centered at (x,y). For example, for T=2: 2 2 2 2 2 2 1 1 1 2 2 1 0 1 2 2 1 1 1 2 2 2 2 2 2 56 Mathematical operations used in digital image processing Arithmetic operations (e.g image subtraction pixel by pixel) Matrix and vector operations Linear (e.g. sum) and nonlinear operations (e.g. min and max) Set and logical operations Spatial and neighbourhood operations (e.g. local average) Geometric spatial transformations (e.g. rotation) 28

57 Image subtraction 58 Image multiplication 29

59 Image multiplication (cont.) 60 A note on arithmetic operations Most images are displayed at 8 bits (0-255). When images are saved in standard formats like TIFF or JPEG the conversion to this range is automatic. However, the approach used for the conversion depends on the software package. The difference of two images is in the range [-255, 255] and the sum is in the range [0, 510]. Many packages simply set all negative values to 0 and all values exceeding 255 to 255 which is undesirable. 30

61 A note on arithmetic operations (cont.) An approach that guarantees that the full range is captured into a fixed number of bits is the following: At first, make the minimum value of the image equal to zero: f = f f m min ( ) Then perform intensity scaling to [0, K] f s = f max ( f ) m m K 62 Logical operator 31

63 Neighbourhood operation 64 Geometric spatial transformations A common geometric transformation is the affine transform t11 t11 0 [ x y 1] = [ u v 1] T = [ u v 1 ] t21 t12 0 t31 t13 1 It may translate, rotate, scale and sheer an image depending on the value of the elements of T To avoid empty pixels we implement the inverse mapping Interpolation is essential 32

65 Geometric spatial transformations (cont.) 66 Geometric spatial transformations (cont.) The effects and importance of interpolation in image transformations 33

67 Image Registration Estimate the transformation parameters between two images. Very important application of digital image processing. Single and multimodal Temporal evolution and quantitative analysis (medicine, satellite images) A basic approach is to use control points (user defined or automatically detected) and estimate the elements of the transformation matrix by solving a linear system. 68 Image Registration (cont.) Manually selected landmarks 34