You are on page 1of 46

Digital Images

 Samples = pixels
 Quantization = number of bits per pixel
Image Representations
 Black and white image
 single color plane with 2 bits
 Grey scale image.The grey level
or grey value indicates the
brightness of a pixel. The minimum
grey level is 0. The maximum grey
level depends on the digitisation
depth of the image. For an 8-bit-deep
image it is 255
 single color plane with 8 bits
 Color image
 three color planes each with
8 bits
 RGB, CMY, .
. 4 gray levels 2gray levels
Digital Image Representation
(3 Bit Quantization)
Color Quantization
Example of 24 bit RGB Image

24-bit Color Monitor


Image Representation Example
24 bit RGB Representation (uncompressed)

128 135 166 138 190 132


129 255 105 189 167 190
229 213 134 111 138 187

128 138 135 190 166 132


129 189 255 167 105 190
229 111 213 138 134 187
Color Planes
What is a Digital Image?
A digital image is a representation of a
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

two-dimensional image as a finite set of


digital values, called picture elements or
pixels
What is a Digital Image? (cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Pixel values typically represent gray levels,


colours,
Remember digitization implies that a digital
image is an approximation of a real scene

1 pixel
What is a Digital Image? (cont…)

Common image formats include:


1 sample per point (B&W or Grayscale)
 3 samples per point (Red, Green, and Blue)

For most of this course we will focus on grey-scale images


1980s - Today: The use of digital image processing
techniques has exploded and they are now used for
all kinds of tasks in all kinds of areas
 Image enhancement/restoration
 Artistic effects
 Medical visualisation
 Industrial inspection
 Law enforcement
 Human computer interfaces
Applications: Image
Enhancement
One of the most common uses of DIP
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

techniques: improve quality, remove noise


etc
Applications: The Hubble
Telescope

Launched in 1990 the Hubble


telescope can take images of
very distant objects
However, an incorrect mirror
made many of Hubble’s
images useless
Image processing
techniques were
used to fix this
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

X-ray imaging
Applications: Medicine
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Gamma-ray imaging
Applications: Medicine (cont...)
Applications: HCI
Try to make human
computer interfaces more
natural
 Face recognition
 Gesture recognition
Key Stages in Digital Image Processing

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Image Aquisition
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Image Enhancement
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Image Restoration
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Morphological Processing
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Segmentation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Object Recognition
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Representation & Description
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Image Compression

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
& Description
Colour Image Image
Processing Compression
Key Stages in Digital Image Processing:
Colour Image Processing

Image Morphological
Restoration Processing

Image
Segmentation
Enhancement

Image Object
Acquisition Recognition

Representation
Problem Domain
Colour Image Image & Description
Processing Compression
Image Representation
Before we discuss image acquisition recall
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

that a digital image is composed of M rows


and N columns of pixels col
each storing a value
Pixel values are most
often grey levels in the
range 0-255(black-white)

f (row, col)
row
Image Acquisition
Images are typically generated by
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

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
Image Sensing
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Incoming energy lands on a sensor material


responsive to that type of energy and this
generates a voltage
Collections of sensors are arranged to
capture images

Imaging Sensor

Line of Image Sensors Array of Image Sensors


Image Sampling And
Quantisation
A digital sensor can only measure a limited
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

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
Image Sampling And Quantisation
(cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Remember that a digital image is always


only an approximation of a real world
scene
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Representation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Representation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Representation
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Image Representation
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 5.1
e gapix
inch (DPI) M
els
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Spatial Resolution (cont…)


Spatial Resolution (cont…)
1024 * 1024 512 * 512 256 * 256
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

128 * 128 64 * 64 32 * 32
Intensity Level Resolution
Intensity level resolution refers to the
number 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 Intensity
Number of Bits Examples
Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010
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)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

16 grey levels (4 bpp) 8 grey levels (3 bpp) 4 grey levels (2 bpp) 2 grey levels (1 bpp)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Saturation & Noise


Resolution: How Much Is
Enough?
The big question with resolution is always
how much is enough?
 Thisall 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?
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
Intensity Level Resolution
(cont…)
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Low Detail Medium Detail High Detail


Images taken from Gonzalez & Woods, Digital Image Processing (2002)

(cont…)
Intensity Level Resolution
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

(cont…)
Intensity Level Resolution
Intensity Level Resolution
(cont…)curves.
Isopreference
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Represent the dependence


between intensity and spatial
resolutions.
Points lying on a curve represent
images of “equal” quality as
described by observers.
They become more vertical as the
degree of detail increases (a lot of
detail need less intensity levels),
e.g. in the Crowd image, for a
given value of N, k is almost
constant.
Images taken from Gonzalez & Woods, Digital Image Processing (2002)

Interpolation (cont...)

You might also like