Digital Image Processing Lecture 3: Image Formation

30
Dr. Engr. Sami ur Rahman Digital Image Processing Lecture 3: Image Formation

description

Digital Image Processing Lecture 3: Image Formation. Courtesy. Brian Mac Namee Gonzalez and Woods. Contents. This lecture will cover: Image representation Image sensing and acquisition Sampling, quantisation and resolution. - PowerPoint PPT Presentation

Transcript of Digital Image Processing Lecture 3: Image Formation

Page 1: Digital Image Processing Lecture 3: Image Formation

Dr. Engr. Sami ur Rahman

Digital Image ProcessingLecture 3: Image Formation

Page 2: Digital Image Processing Lecture 3: Image Formation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 2

Courtesy

Brian Mac NameeGonzalez and Woods

Page 3: Digital Image Processing Lecture 3: Image Formation

ContentsThis lecture will cover: Image representation Image sensing and acquisitionSampling, quantisation and resolution

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 3

Page 4: Digital Image Processing Lecture 3: Image Formation

Electromagnetic spectrum

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 4

Electromagnetic radiation (EM radiation or EMR)

Form of energy emitted and absorbed by charged particles Exhibits wave-like behaviourTravels through spaceHas both electric and magnetic components

Electromagnetic spectrum

 Range of all possible frequencies of  electromagnetic radiation

Page 5: Digital Image Processing Lecture 3: Image Formation

Contents

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 5

Page 6: Digital Image Processing Lecture 3: Image Formation

Image Representation

col

row

f (row, col)

A digital image is composed of M rows and N columns of pixels each storing a value Pixel values are most often grey levels in the range 0-255 (black-white) Images can easily be represented as matrices

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 6

Page 7: Digital Image Processing Lecture 3: Image Formation

Image Acquisition

Images are typically generated by illuminating a scene and absorbing the energy reflected by the objects in that scene

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 7

Page 8: Digital Image Processing Lecture 3: Image Formation

Image SensingIncoming energy lands on a sensor material responsive to that type of energy and this generates a voltageCollections of sensors are arranged to capture images

Imaging Sensor

Line of Image Sensors

Array of Image Sensors

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 8

Page 9: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

A digital sensor can only measure a limited number of samples at a discrete set of energy levelsQuantisation is the process of converting a continuous analogue signal into a digital representation of this signal

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 9

Page 10: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 10

Page 11: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 11

Page 12: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 12

Page 13: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 13

Page 14: Digital Image Processing Lecture 3: Image Formation

Image Sampling And Quantisation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 14

0 50 45 30 20 10 5 1 5 10 20 30 45 50 0

Page 15: Digital Image Processing Lecture 3: Image Formation

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

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 15

Page 16: Digital Image Processing Lecture 3: Image Formation

Image Representation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 16

Page 17: Digital Image Processing Lecture 3: Image Formation

Image Representation

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 17

Page 18: Digital Image Processing Lecture 3: Image Formation

X-Ray image formation

Page 19: Digital Image Processing Lecture 3: Image Formation

Spatial ResolutionThe spatial resolution of an image is determined by how sampling was carried outSpatial resolution simply refers to the smallest details in an image

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 19

Page 20: Digital Image Processing Lecture 3: Image Formation

Spatial Resolution (cont…)

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 20

Page 21: Digital Image Processing Lecture 3: Image Formation

Intensity Level ResolutionIntensity level resolution refers to the number of intensity levels used to represent the imageThe more intensity levels used, the finer the level 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

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 21

Page 22: Digital Image Processing Lecture 3: Image Formation

Intensity Level Resolution (cont…)

Quality of two images with same contents and same size?

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 22

4 grey levels (2 bpp) 2 grey levels (1 bpp)

Page 23: Digital Image Processing Lecture 3: Image Formation

Intensity Level Resolution (cont…)

Quality of two images with same contents and same size?

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 23

1 2 1 3 0

1 3 1 0 1

0 2 3 2 3

3 1 1 1 0

0 3 2 0 1

0 1 0 1 0

0 1 0 0 0

0 1 1 1 1

1 0 0 0 0

0 1 1 0 0

4 grey levels (2 bpp) 2 grey levels (1 bpp)

Page 24: Digital Image Processing Lecture 3: Image Formation

Intensity Level Resolution (cont…)

Quality of two images with same contents and same size?

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 24

4 grey levels (2 bpp) 2 grey levels (1 bpp)

Page 25: Digital Image Processing Lecture 3: Image Formation

Intensity Level Resolution (cont…)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) 4 grey levels (2 bpp) 2 grey levels (1 bpp)

256 grey levels (8 bits per pixel)

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 25

Page 26: Digital Image Processing Lecture 3: Image Formation

Saturation & Noise

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 26

Page 27: Digital Image Processing Lecture 3: Image Formation

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 itKey questions includeDoes the image look aesthetically pleasing?Can you see what you need to see within the image?

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 27

Page 28: Digital Image Processing Lecture 3: Image Formation

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

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 28

Page 29: Digital Image Processing Lecture 3: Image Formation

Intensity Level Resolution (cont…)

Low Detail Medium Detail High Detail

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 29

Page 30: Digital Image Processing Lecture 3: Image Formation

SummaryWe have looked at: Image representation Image sensing and acquisitionSampling, quantisation and resolution

University Of Malakand | Department of Computer Science | UoMIPS | Dr. Engr. Sami ur Rahman | 30