Lecture 2 Digital Image Fundamentals Lin ZHANG, PhD School of - - PowerPoint PPT Presentation

lecture 2 digital image fundamentals
SMART_READER_LITE
LIVE PREVIEW

Lecture 2 Digital Image Fundamentals Lin ZHANG, PhD School of - - PowerPoint PPT Presentation

Lecture 2 Digital Image Fundamentals Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016 Lin ZHANG, SSE, 2016 Contents Elements of visual perception Light and the electromagnetic spectrum Image sensing and


slide-1
SLIDE 1

Lin ZHANG, SSE, 2016

Lecture 2 Digital Image Fundamentals

Lin ZHANG, PhD School of Software Engineering Tongji University Fall 2016

slide-2
SLIDE 2

Lin ZHANG, SSE, 2016

Contents

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels
slide-3
SLIDE 3

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye

sclera choroid blind spot visual axis

slide-4
SLIDE 4

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye
  • Three membranes enclose the eye: the cornea and sclera,

choroid, and retina

  • At its anterior extreme, the choroid is divided into the ciliary body

and the iris; the later contracts or expands to control the amount of light that enters the eye

slide-5
SLIDE 5

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye
  • When the eye is properly focused, light from an object
  • utside the eye is imaged on the retina
  • Two kinds of light receptors distribute on the retina, cones and rods
  • Cones are primarily located in the central portion of the retina,

called fovea and are sensitive to color; they function best in relatively bright light; so, cone vision is called bright‐light vision

  • Rods are distributed over the retinal surface; rods serve to give a

general overall picture of the field of view; they are not involved in color vision and are sensitive to low levels of illumination; rod vision is called dim‐light vision

  • Around the region of the emergence of the optic nerve, there is no

receptors and results in the so‐called blind spot

slide-6
SLIDE 6

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye (more on cone cell)
  • Humans usually have three kinds of cones with different

photopsins, which have different spectral response curves; thus, we have trichromatic vision.

  • Interestingly, some people have four or more types of cones,

giving them tetrachromatic vision

slide-7
SLIDE 7

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye (more on cone cell)

Three types of color‐sensitive cones in the retina of the human eye, corresponding roughly to red, green, and blue sensitive detectors.

slide-8
SLIDE 8

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye (more on cone cell)
slide-9
SLIDE 9

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye (more on rod cell)

Rod cell

slide-10
SLIDE 10

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye (more on rod cell)

Wavelength responsiveness of rods compared to that of three types of cones. The dashed gray curve is for rods.

slide-11
SLIDE 11

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Structure of the human eye

Distribution of rods and cones in the retina

slide-12
SLIDE 12

Lin ZHANG, SSE, 2016

Elements of Visual Perception

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!

  • Blind‐spot experiment
slide-13
SLIDE 13

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • 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

  • An image is focused onto the retina causing rods and cones

to become excited which ultimately send signals to the brain

C is the optical center of the lens

slide-14
SLIDE 14

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Human eye VS camera

VS Lens Iris Retina Related components?

slide-15
SLIDE 15

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

  • Visual system tends to undershoot or overshoot around the

boundary of regions of different intensities, called as “Mach” bands

  • A region’s perceived brightness does not only depend simply
  • n its intensity, but on its surrounding regions; such a

phenomenon is called “simultaneous contrast”

slide-16
SLIDE 16

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

An example of Mach bands

slide-17
SLIDE 17

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

slide-18
SLIDE 18

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

An example of simultaneous contrast

slide-19
SLIDE 19

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

slide-20
SLIDE 20

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Perceived brightness is not a simple function of

intensity

slide-21
SLIDE 21

Lin ZHANG, SSE, 2016

Elements of Visual Perception

  • Optical illusions: our visual systems play lots of

interesting tricks on us

  • It is stilly not fully understood yet
slide-22
SLIDE 22

Lin ZHANG, SSE, 2016

Elements of Visual Perception

slide-23
SLIDE 23

Lin ZHANG, SSE, 2016

Contents

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels
slide-24
SLIDE 24

Lin ZHANG, SSE, 2016

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

slide-25
SLIDE 25

Lin ZHANG, SSE, 2016

Light and the Electromagnetic Spectrum

  • The colours that we perceive are determined by the

nature of the light reflected from an object

  • In addition to frequency, three basic quantities are

used to describe the quality of a chromatic light source

  • Radiance. It is the total amount of energy that flows from the

light source, measured in Watts

  • Luminance. Gives a measure of the amount of energy an
  • bserver perceives, measured in lumens
  • Brightness. It is a subjective descriptor of light perception

that is practically impossible to measure

slide-26
SLIDE 26

Lin ZHANG, SSE, 2016

Light and the Electromagnetic Spectrum

electromagnetic wave spectral power distribution spectral power distribution reflectance spectrum Red

slide-27
SLIDE 27

Lin ZHANG, SSE, 2016

Contents

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels
slide-28
SLIDE 28

Lin ZHANG, SSE, 2016

Image Sensing and Acquisition

  • Image creation based on two factors
  • Illumination source
  • Reflection or absorption of energy from that source by the

elements of the “scene” being imaged Any examples for these two kinds?

slide-29
SLIDE 29

Lin ZHANG, SSE, 2016

Image Sensing and Acquisition

  • Imaging sensors
  • Single imaging sensor
  • Line sensor
  • Array sensor

Single imaging sensor

slide-30
SLIDE 30

Lin ZHANG, SSE, 2016

Image Sensing and Acquisition

  • Imaging sensors
  • Single imaging sensor
  • Line sensor
  • Array sensor

Line sensor

Application scenario?

slide-31
SLIDE 31

Lin ZHANG, SSE, 2016

Image Sensing and Acquisition

  • Imaging sensors
  • Single imaging sensor
  • Line sensor
  • Array sensor

Array sensor, used in ordinary digital camera

slide-32
SLIDE 32

Lin ZHANG, SSE, 2016 Image acquisiton using a linear sensor strip and a circular sensor strip

Image Sensing and Acquisition

  • Imaging sensing using sensor strips
slide-33
SLIDE 33

Lin ZHANG, SSE, 2016

An example of the digital image acquisition process

Image Sensing and Acquisition

  • Imaging sensing using sensor arrays
slide-34
SLIDE 34

Lin ZHANG, SSE, 2016

Contents

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels
slide-35
SLIDE 35

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Sampling and quantization will convert a continuous

image signal f to a discrete digital form

  • Digitizing the coordinate values is called sampling
  • Digitizing the amplitude is called quantization
slide-36
SLIDE 36

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Sampling and quantization will convert a continuous

image signal f to a discrete digital form

slide-37
SLIDE 37

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Sampling and quantization will convert a continuous

image signal f to a discrete digital form

Result of image sampling and quantization

slide-38
SLIDE 38

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Representing images
slide-39
SLIDE 39

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution
  • The spatial resolution of an image is determined by how

sampling was carried out

  • DPI (dots per inch) is used to measure the spatial resolution

Note: to say that an image has a resolution 1024*1024 is not a meaningful statement without stating the spatial dimensions encompassed by the image

slide-40
SLIDE 40

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-41
SLIDE 41

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-42
SLIDE 42

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-43
SLIDE 43

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-44
SLIDE 44

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-45
SLIDE 45

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Spatial resolution—an example
slide-46
SLIDE 46

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Intensity resolution
  • Intensity resolution refers to the smallest discernible change

in intensity level

  • The more intensity levels used, the finer the level of detail

discernable in an image

  • The number of bits used to quantize intensity is often referred

as the intensity resolution

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

slide-47
SLIDE 47

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Intensity resolution

7 bpp 6 bpp 5 bpp 4 bpp 3 bpp 2 bpp 1 bpp 8 bits per pixel

slide-48
SLIDE 48

Lin ZHANG, SSE, 2016

Image Sampling and Quantization

  • Image interpolation
  • It is a basic tool used in tasks such as zooming, shrinking,

rotating, and geometric corrections

  • Traditional methods include nearest neighbor, bilinear, and

bicubic

slide-49
SLIDE 49

Lin ZHANG, SSE, 2016

Contents

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels
slide-50
SLIDE 50

Lin ZHANG, SSE, 2016

Some Basic Relationships between Pixels

  • Neighbors of a pixel

p(x, y) is a pixel p

N4(p): 4‐neighbours

  • f p

p

ND(p): diagonal neighbours of p

p

N8(p): 8‐neighbours

  • f p
slide-51
SLIDE 51

Lin ZHANG, SSE, 2016

Summary

We have looked at:

  • Elements of visual perception
  • Light and the electromagnetic spectrum
  • Image sensing and acquisition
  • Image sampling and quantization
  • Some basic relationships between pixels

Next time we start to look at techniques for image enhancement

slide-52
SLIDE 52

Lin ZHANG, SSE, 2016

Thanks for your attention