Top Banner

of 58

ImageProcessing2-ImageProcessingFundamentals

Apr 14, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    1/58

    Course Website:http://www.comp.dit.ie/bmacnamee

    Digital Image Processing:

    Digital Imaging Fundamentals

    Brian Mac [email protected]

    http://www.comp.dit.ie/bmacnameemailto:[email protected]:[email protected]://www.comp.dit.ie/bmacnamee
  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    2/58

    2

    of

    42Contents

    This lecture will cover: The human visual system

    Light and the electromagnetic spectrum

    Image representation Image sensing and acquisition

    Sampling, quantisation and resolution

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    3/58

    3

    of

    42Human 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 thehuman visual system

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    4/58

    4

    of

    42Structure Of The Human Eye

    The lens focuses light from objects onto theretina

    The retina is covered with

    light receptors calledcones (6-7 million) androds (75-150 million)

    Cones are concentrated

    around the fovea and arevery sensitive to colour

    Rods are more spread out

    and are sensitive to low levels of illuminationImagestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    5/58

    5

    of

    42Blind-Spot Experiment

    Draw an image similar to that below on apiece of paper (the dot and cross are about

    6 inches apart)

    Close your right eye and focus on the cross

    with your left eyeHold the image about 20 inches away from

    your face and move it slowly towards you

    The dot should disappear!

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    6/58

    6

    of

    42

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    7/58

    7

    of

    42Image Formation In The Eye

    Muscles within the eye can be used tochange the shape of the lens allowing us

    focus on objects that are near or far away

    An image is focused onto the retina causingrods and cones to become excited which

    ultimately send signals to the brain

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    8/58

    8

    of

    42Brightness Adaptation & Discrimination

    The human visual system can perceiveapproximately 1010 different light intensity

    levels

    However, at any one time we can onlydiscriminate between a much smaller

    numberbrightness adaptation

    Similarly, theperceived intensityof a regionis related to the light intensities of the

    regions surrounding it

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    9/58

    9

    of

    42

    Brightness Adaptation & Discrimination

    (cont)

    An example of Mach bands

    ImagestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    10/58

    10

    of

    42

    Brightness Adaptation & Discrimination

    (cont)

    ImagestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    11/58

    11

    of

    42

    Brightness Adaptation & Discrimination

    (cont)

    An example ofsimultaneous contrast

    ImagestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    12/58

    12

    of

    42

    Brightness Adaptation & Discrimination

    (cont)

    For more great illusion examples take a look at: http://web.mit.edu/persci/gaz/

    http://web.mit.edu/persci/gaz/http://web.mit.edu/persci/gaz/
  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    13/58

    13

    of

    42

    Available here: http://www.lottolab.org/Visual%20Demos/Demo%2015.html

    http://www.lottolab.org/Visual%20Demos/Demo%2015.htmlhttp://www.lottolab.org/Visual%20Demos/Demo%2015.html
  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    14/58

    14

    of

    42Optical Illusions

    Our visualsystems play lots

    of interesting

    tricks on us

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    15/58

    15

    of

    42Optical Illusions (cont)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    16/58

    16

    of

    42Optical Illusions (cont)

    Stare at the crossin the middle of

    the image and

    think circles

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    17/58

    17

    of

    42

    Mind Map Exercise: Mind Mapping

    For Note Taking

    Beau Lotto: Optical Illusions Show How We Seehttp://www.ted.com/talks/lang/eng/beau_lotto_optical_illusions_show_how_we_see.html

    http://www.ted.com/talks/lang/eng/beau_lotto_optical_illusions_show_how_we_see.htmlhttp://www.ted.com/talks/lang/eng/beau_lotto_optical_illusions_show_how_we_see.htmlhttp://www.ted.com/talks/lang/eng/beau_lotto_optical_illusions_show_how_we_see.htmlhttp://www.ted.com/talks/lang/eng/beau_lotto_optical_illusions_show_how_we_see.html
  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    18/58

    18

    of

    42

    Light And The Electromagnetic

    Spectrum

    Light is just a particular part of theelectromagnetic spectrum that can be

    sensed by the human eye

    The electromagnetic spectrum is split upaccording to the wavelengths of different

    forms of energy

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    19/58

    19

    of

    42Reflected Light

    The colours that we perceive are determinedby the nature of the light reflected from an

    object

    For example, if whitelight is shone onto a

    green object most

    wavelengths areabsorbed, while green

    light is reflected from

    the object

    Colours

    Absorbed

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    20/58

    20

    of

    42Sampling, Quantisation And Resolution

    In the following slides we will consider whatis involved in capturing a digital image of a

    real-world scene

    Image sensing and representation Sampling and quantisation

    Resolution

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    21/58

    21

    of

    42Image Representation

    col

    row

    f (row, col)

    Before we discuss image acquisition recallthat a digital image is composed ofM rowsand Ncolumns of pixelseach storing a value

    Pixel values are mostoften grey levels in therange 0-255(black-white)

    We will see later onthat images can easilybe represented asmatrices

    Im

    agestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    22/58

    22

    of

    42Image Acquisition

    Images are typically generated byilluminatinga scene and absorbing the

    energy reflected by the objects in that scene

    Typical notions ofillumination and

    scene can be way off:

    X-rays of a skeleton

    Ultrasound of anunborn baby

    Electro-microscopic

    images of molecules

    Im

    agestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    23/58

    23

    of

    42Image Sensing

    Incoming energy lands on a sensor materialresponsive to that type of energy and this

    generates a voltage

    Collections of sensors are arranged tocapture images

    Imaging Sensor

    Line of Image Sensors Array of Image SensorsIm

    agestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    24/58

    24

    of

    42Image Sensing

    Im

    agestakenfromGonzalez&Woods,

    DigitalIma

    geProcessing(2002)

    Using Sensor Strips and Rings

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    25/58

    25

    of

    42Image Sampling And Quantisation

    A digital sensor can only measure a limitednumber ofsamples at a discrete set of

    energy levels

    Quantisation is the process of converting acontinuous analogue signal into a digital

    representation of this signal

    Im

    agestakenfromGonzalez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    26/58

    26

    of

    42Image Sampling And Quantisation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    27/58

    27

    of

    42Image Sampling And Quantisation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    I S li A d Q ti ti

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    28/58

    28

    of

    42

    Image Sampling And Quantisation

    (cont)

    Remember that a digital image is alwaysonly an approximation of a real world

    scene

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    29/58

    29

    of

    42Image Representation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    30/58

    30

    of

    42Image Representation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    31/58

    31

    of

    42Image Representation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    32/58

    32

    of

    42Image Representation

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    33

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    33/58

    33

    of

    42Spatial Resolution

    The spatial resolution of an image isdetermined 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)

    34

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    34/58

    34

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    35

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    35/58

    35

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    36

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    36/58

    36

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    37

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    37/58

    37

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    38

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    38/58

    38

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    39

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    39/58

    39

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    40

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    40/58

    40

    of

    42Spatial Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    41

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    41/58

    41

    of

    42Intensity Level Resolution

    Intensity level resolution refers to thenumber of intensity levels used to represent

    the image The 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

    42

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    42/58

    42

    of

    42Intensity 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)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    43

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    43/58

    43

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalImageProcessing(2002)

    44

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    44/58

    44

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalIm

    ageProcessing(2002)

    45

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    45/58

    45

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalIm

    ageProcessing(2002)

    46

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    46/58

    46

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalIm

    ageProcessing(2002)

    47

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    47/58

    47

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalIm

    ageProcessing(2002)

    48

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    48/58

    48

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonza

    lez&Woods,

    DigitalIm

    ageProcessing(2002)

    49

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    49/58

    49

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    50

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    50/58

    50

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    51

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    51/58

    51

    of

    42Saturation & Noise

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    52

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    52/58

    5

    of

    42Resolution: How Much Is Enough?

    The big question with resolution is alwayshow 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?

    53 Resolution: How Much Is Enough?

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    53/58

    of

    42

    Resolution: How Much Is Enough?

    (cont)

    The picture on the right is fine for countingthe number of cars, but not for reading the

    number plate

    54

    I i L l R l i ( )

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    54/58

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    Low Detail Medium Detail High Detail

    55

    I t it L l R l ti ( t )

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    55/58

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    56

    I t it L l R l ti ( t )

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    56/58

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    57

    I t it L l R l ti ( t )

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    57/58

    of

    42Intensity Level Resolution (cont)

    Im

    agestakenfromGonzalez&Woods,

    DigitalIm

    ageProcessing(2002)

    58

    S

  • 7/30/2019 ImageProcessing2-ImageProcessingFundamentals

    58/58

    of

    42Summary

    We have looked at: Human visual system

    Light and the electromagnetic spectrum

    Image representation Image sensing and acquisition

    Sampling, quantisation and resolution

    Next time we start to look at techniques forimage enhancement