SlideShare a Scribd company logo
1 of 82
1
of
36
UNIT I
Digital Image Processing:
Introduction
2
of
36
Introduction
“One picture is worth more than ten
thousand words”
Anonymous
3
of
36
• UNIT I:
• Introduction to Image Processing
• Fundamentals of Image Processing and Image
Transforms, Basic steps of Image Processing
System Sampling and Quantization of an
image – Basic relationship between pixels
• Image Transforms: 2 D- Discrete Fourier
Transform, Discrete Cosine Transform (DCT),
Wavelet Transforms: Continuous Wavelet
Transform, Discrete Wavelet Transforms.
4
of
36
Contents
This lecture will cover:
– Motivation
– What is a digital image?
– What is digital image processing?
– History of digital image processing
– State of the art examples of digital image
processing
– Key stages in digital image processing
5
of
36
What is a Digital Image?
A digital image is a representation of a two-
dimensional image as a finite set of digital
values, called picture elements or pixels
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
6
of
36
What is a Digital Image? (cont…)
Pixel values typically represent gray levels,
colours, heights, opacities etc
Remember digitization implies that a digital
image is an approximation of a real scene
1 pixel
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
7
of
36
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)
– 4 samples per point (Red, Green, Blue, and “Alpha”,
a.k.a. Opacity)
For most of this course we will focus on grey-scale
images
8
of
36
What is Digital Image Processing?
Digital image processing focuses on two
major tasks
– Improvement of pictorial information for
human interpretation
– Processing of image data for storage,
transmission and representation for
autonomous machine perception
Some argument about where image
processing ends and fields such as image
analysis and computer vision start
9
of
36
What is DIP? (cont…)
The continuum from image processing to
computer vision can be broken up into low-,
mid- and high-level processes
Low Level Process
Input: Image
Output: Image
Examples: Noise
removal, image
sharpening
Mid Level Process
Input: Image
Output: Attributes
Examples: Object
recognition,
segmentation
High Level Process
Input: Attributes
Output: Understanding
Examples: Scene
understanding,
autonomous navigation
In this course we will
stop here
10
of
36
History of Digital Image Processing
Early 1920s: One of the first applications of
digital imaging was in the news-
paper industry
– The Bartlane cable picture
transmission service
– Images were transferred by submarine cable
between London and New York
– Pictures were coded for cable transfer and
reconstructed at the receiving end on a
telegraph printer
Early digital image
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
11
of
36
History of DIP (cont…)
Mid to late 1920s: Improvements to the
Bartlane system resulted in higher quality
images
– New reproduction
processes based
on photographic
techniques
– Increased number
of tones in
reproduced images
Improved
digital image Early 15 tone digital
image
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
12
of
36
History of DIP (cont…)
1960s: Improvements in computing
technology and the onset of the space race
led to a surge of work in digital image
processing
– 1964: Computers used to
improve the quality of
images of the moon taken
by the Ranger 7 probe
– Such techniques were used
in other space missions
including the Apollo landings
A picture of the moon taken
by the Ranger 7 probe
minutes before landing
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
13
of
36
History of DIP (cont…)
1970s: Digital image processing begins to
be used in medical applications
– 1979: Sir Godfrey N.
Hounsfield & Prof. Allan M.
Cormack share the Nobel
Prize in medicine for the
invention of tomography,
the technology behind
Computerised Axial
Tomography (CAT) scans
Typical head slice CAT
image
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
14
of
36
History of DIP (cont…)
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
15
of
36
Examples: Image Enhancement
One of the most common uses of DIP
techniques: improve quality, remove noise
etc
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
16
of
36
Examples: 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
17
of
36
Examples: Artistic Effects
Artistic effects are
used to make
images more
visually appealing,
to add special
effects and to make
composite images
18
of
36
Examples: Medicine
Take slice from MRI scan of canine heart,
and find boundaries between types of tissue
– Image with gray levels representing tissue
density
– Use a suitable filter to highlight edges
Original MRI Image of a Dog Heart Edge Detection Image
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
19
of
36
Examples: GIS
Geographic Information Systems
– Digital image processing techniques are used
extensively to manipulate satellite imagery
– Terrain classification
– Meteorology
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
20
of
36
Examples: GIS (cont…)
Night-Time Lights of
the World data set
– Global inventory of
human settlement
– Not hard to imagine
the kind of analysis
that might be done
using this data
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
21
of
36
Examples: Industrial Inspection
Human operators are
expensive, slow and
unreliable
Make machines do the
job instead
Industrial vision systems
are used in all kinds of
industries
Can we trust them?
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
22
of
36
Examples: PCB Inspection
Printed Circuit Board (PCB) inspection
– Machine inspection is used to determine that
all components are present and that all solder
joints are acceptable
– Both conventional imaging and x-ray imaging
are used
23
of
36
Examples: Law Enforcement
Image processing
techniques are used
extensively by law
enforcers
– Number plate
recognition for speed
cameras/automated
toll systems
– Fingerprint recognition
– Enhancement of
CCTV images
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
24
of
36
Examples: HCI
Try to make human computer
interfaces more natural
– Face recognition
– Gesture recognition
Does anyone remember the
user interface from “Minority
Report”?
These tasks can be
extremely difficult
25
of
36
Colour Fundamentals (cont…)
Chromatic light spans the electromagnetic
spectrum from approximately 400 to 700 nm
As we mentioned before human colour
vision is achieved through 6 to 7 million
cones in each eye
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
26
of
36
8/19/2023
Imaging types
•gamma ray Imaging(Nuclear Medicine)
•x-ray imaging(Diagnosis)
•Imaging in Ultrviolet band(industrial inspection, astronomical
observation)
•Imaging in visible & Infra Red band
•Imaging in MicroWave band
The dominant application of imaging in the microwave band is wave
The unique feature of imaging radar is its ability to collect data over virtually any region at anytime, regardless of weather or
ambient lighting condition
•Imaging in Radio band
•Imaging Modeleties using non EM Spectrum band
27
of
36
Components of Image Processing
System
28
of
36
• Image Sensors:
Image sensors senses the intensity, amplitude, co-ordinates and other features of the
images and passes the result to the image processing hardware. It includes the
problem domain.
• Image Processing Hardware:
Image processing hardware is the dedicated hardware that is used to process the
instructions obtained from the image sensors. It passes the result to general purpose
computer.
• Computer:
Computer used in the image processing system is the general purpose computer that is
used by us in our daily life.
• Image Processing Software:
Image processing software is the software that includes all the mechanisms
and algorithms that are used in image processing system.
• Mass Storage:
Mass storage stores the pixels of the images during the processing.
• Hard Copy Device:
Once the image is processed then it is stored in the hard copy device. It can
be a pen drive or any external ROM device.
• Image Display:
It includes the monitor or display screen that displays the processed images.
• Network:
Network is the connection of all the above elements of the image processing system.
29
of
36
Fundamental Steps in DIP
Material covered in book has two broad categories
– Methods having input & Output as images
– Methods having image as input and attributes as output
– This is depicted in diagram
– Diagram doesn’t imply that all process are applied to all
images but just that any can be applied for specific purpose
8/19/2023
30
of
36
31
of
36
Key Stages in Digital Image Processing
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
32
of
36
Key Stages in Digital Image Processing:
Image Aquisition
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
33
of
36
Key Stages in Digital Image Processing:
Image Enhancement
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
34
of
36
Key Stages in Digital Image Processing:
Image Restoration
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
35
of
36
Key Stages in Digital Image Processing:
Morphological Processing
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
36
of
36
Key Stages in Digital Image Processing:
Segmentation
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
37
of
36
Key Stages in Digital Image Processing:
Object Recognition
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
38
of
36
Key Stages in Digital Image Processing:
Representation & Description
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
Images
taken
from
Gonzalez
&
Woods,
Digital
Image
Processing
(2002)
39
of
36
Key Stages in Digital Image Processing:
Image Compression
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
40
of
36
Key Stages in Digital Image Processing:
Colour Image Processing
Image
Acquisition
Image
Restoration
Morphological
Processing
Segmentation
Representation
& Description
Image
Enhancement
Object
Recognition
Problem Domain
Colour Image
Processing
Image
Compression
41
of
36
Image Sampling & Quantization
42
of
36
43
of
36
44
of
36
45
of
36
46
of
36
47
of
36
48
of
36
49
of
36
50
of
36
51
of
36
BASIC RELATIONSHIP BETWEEN
PIXELS
• The word pixel is based on a contraction of pix ("pictures") and el
(for "element"); similar formations with el for "element" include the
words: voxel and texel.
• In digital imaging, a pixel (or picture element) is a single point in a
image.
• The pixel is the smallest addressable screen element; it is the
smallest unit of picture that can be controlled.
• Each pixel has its own address. The address of a pixel corresponds
to its coordinates.
• Pixels are normally arranged in a 2-dimensional grid, and are often
represented using dots or squares.
• Each pixel is a sample of an original image; more samples typically
provide more accurate representations of the original.
• The intensity of each pixel is variable.
• In colour image systems, a colour is typically represented by three
or four component intensities such as red, green, and blue, or cyan,
52
of
36
bits per pixel
• The number of distinct colors that can be represented by a pixel depends
on the number of bits per pixel (bpp).
• A 1 bpp image uses 1-bit for each pixel, so each pixel can be either on or
off. Each additional bit doubles the number of colors available,
• so a 2 bpp image can have 4 colors, and a 3 bpp image can have 8 colors:
1 bpp, 21 = 2 colors (monochrome)
• 2 bpp, 22 = 4 colors
• 3 bpp, 23 = 8 colors
• 8 bpp, 28 = 256 colors
• 16 bpp, 216 = 65,536 colors ("Highcolor" )
• 24 bpp, 224 ≈ 16.8 million colors ("Truecolor")
53
of
36
• For color depths of 15 or more bits per pixel, the depth is normally
the sum of the bits allocated to each of the red, green, and blue
components. Highcolor, usually meaning 16 bpp, normally has five
bits for red and blue, and six bits for green, as the human eye is
more sensitive to errors in green than in the other two primary
colors.
• For applications involving transparency, the 16 bits may be divided
into five bits each of red, green, and available: this means that each
24-bit pixel has an extra 8 bits to describe its blue, with one bit left
for transparency.
• A 24-bit depth allows 8 bits per component. On some systems, 32-
bit depth is opacity,dullness (for purposes of combining with another
image).
54
of
36
NEIGHBORS OF A PIXEL
• A pixel p at coordinates (x,y) has four horizontal and vertical neighbors whose
coordinates are given by:
(x+1,y), (x-1, y), (x, y+1), (x,y-1)
This set of pixels, called the 4-neighbors or p, is denoted by N4(p). Each pixel is one
unit distance from (x,y) and some of the neighbors of p lie outside the digital image if
(x,y) is on the border of the image. The four diagonal neighbors of p have coordinates and
are denoted by ND (p).
(x+1, y+1), (x+1, y-1), (x-1, y+1), (x-1, y-1)
55
of
36
These points, together with the 4-neighbors, are called the 8-neighbors of p, denoted by N8 (p).
As before, some of the points in ND (p) and N8 (p) fall outside the image if
(x,y) is on the border of the image.
The boundary (also called border or contour) of a region R
is the set of pixels in the region that have one or more neighbors that are not
in R. If R happens to be an entire image (which we recall is a rectangular set of
pixels), then its boundary is defined as the set of pixels in the first and last rows
and columns of the image
56
of
36
ADJACENCY AND CONNECTIVITY
• Let v be the set of gray –level values used to define adjacency, in a binary
image, v={1}. In a gray-scale image, the idea is the same, but V typically
contains more elements, for example, V = {180, 181, 182, …, 200}.
• If the possible intensity values 0 – 255, V set can be any subset of these
256 values. if we are reference to adjacency of pixel with value.
• Three types of adjacency
– 4- Adjacency – two pixel P and Q with value from V are 4 –adjacency if
A is in the set N4(P)
– 8- Adjacency – two pixel P and Q with value from V are 8 –adjacency if
A is in the set N8(P)
– M-adjacency –two pixel P and Q with value from V are m – adjacency if
(i) Q is in N4(p) or
– (ii) Q is in ND(q) and
– the set N4(p) ∩ N4(q) has no pixel whose values are from V.
• Mixed adjacency is a modification of 8-adjacency. It is introduced to
eliminate the ambiguities that often arise when 8-adjacency is used.
57
of
36
Distance Measures
For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w), respectively, D
is a distance function or metric if
(a) D(p, q) 0 AD(p, q)=0 iff p=qB,
(b) D(p, q)=D(q, p), and
(c) D(p, z) D(p, q)+D(q, z).
The Euclidean distance between p and q is defined as
De (p,q) = [(x – s)2 + (y - t)2]1/2
Pixels having a distance less than or equal to some value r from (x,y) are the points
contained in a disk of radius „ r „centered at (x,y)
58
of
36
Pixels having a D4 distance from (x,y), less than or equal to some value r form a Diamond
centered at (x,y)
• The D4 distance (also called city-block distance) between p and q is defined as:
D4 (p,q) = | x – s | + | y – t |
59
of
36
60
of
36
61
of
36
62
of
36
63
of
36
64
of
36
65
of
36
66
of
36
67
of
36
68
of
36
69
of
36
70
of
36
71
of
36
72
of
36
73
of
36
DISCRETE COSINE TRANSFORM
(DCT) :
The discrete cosine transform (DCT) helps separate the image into parts (or spectral sub-
bands) of differing importance (with respect to the image's visual quality). The DCT is similar
to the discrete Fourier transform: it transforms a signal or image from the spatial domain to the
frequency domain.
The general equation for a 1D (N data items) DCT is defined by the following equation
and the corresponding inverse 1D DCT transform is simple F-1(u), i.e.: where
74
of
36
• The general equation for a 2D (N by M image) DCT is defined by the
following equation:
and the corresponding inverse 2D DCT transform is simple F-1(u,v), i.e.: where
The basic operation of the DCT is as follows:
 The input image is N by M;
 f(i,j) is the intensity of the pixel in row i and column j;
 F(u,v) is the DCT coefficient in row k1 and column k2 of the DCT matrix.
 For most images, much of the signal energy lies at low frequencies; these appear in the
upper left corner of the DCT.
 Compression is achieved since the lower right values represent higher frequencies, and are
often small - small enough to be neglected with little visible distortion.
 The DCT input is an 8 by 8 array of integers. This array contains each pixel's gray scale
level;
8 bit pixels have levels from 0 to 255.
75
of
36
DISCRETE WAVELET
TRANSFORM (DWT):
Haar Wavelet Transform
76
of
36
77
of
36
• We can also apply a wavelet transform differently.
• Suppose we apply a wavelet transform to an image by rows, then by
columns, but using our transform at one scale only.
• This technique will produce a result in four quarters: the top left will be a
half-sized version of the image and the other quarter‟s high-pass filtered
images.
• These quarters will contain horizontal, vertical, and diagonal edges of the
image.
• We then apply a one-scale DWT to the top-left quarter, creating smaller
images, and so on. This is called the nonstandard decomposition, and is
illustrated in figure
78
of
36
• Steps for performing a one-scale wavelet transform are
given below:
• Step 1: Convolve the image rows with the low-pass filter.
• Step 2 : Convolve the columns of the result of step 1 with
the low-pass filter and rescale this to half its size by sub-
sampling.
• Step 3 : Convolve the result of step 1 with high-pass filter
and again sub-sample to obtain an image of half the
size.
• Step 4 : Convolve the original image rows with the high-
pass filter.
• Step 5: Convolve the columns of the result of step 4 with
the low-pass filter and recycle this to half its size by sub-
sampling.
• Step 6 :Convolve the result of step 4 with the high-pass
filter and again sub-sample to obtain an image of half the
size.
79
of
36
80
of
36
Figure Original image and DWT decomposed image.
81
of
36
• An example of a discrete wavelet
transform on an image is shown in Figure
above. On the left is the original image
data, and on the right are the coefficients
after a single pass of the wavelet
transform. The low-pass data is the
recognizable portion of the image in the
upper left corner. The high-pass
components are almost invisible because
image data contains mostly low frequency
information.
82
of
36
Summary
We have looked at:
– What is a digital image?
– What is digital image processing?
– History of digital image processing
– State of the art examples of digital image
processing
– Key stages in digital image processing
– Sampling & Quantization
Next time we will start to see how it all
works…

More Related Content

Similar to CHAPTER_1_updated_8_aug.ppt

Image processing1 introduction
Image processing1 introductionImage processing1 introduction
Image processing1 introductionshabanam tamboli
 
Image processing1 introduction
Image processing1 introductionImage processing1 introduction
Image processing1 introductionShingrakhia Hansa
 
Lec_1_Introduction.pdf
Lec_1_Introduction.pdfLec_1_Introduction.pdf
Lec_1_Introduction.pdfnagwaAboElenein
 
Lec_1_Introduction.pdf
Lec_1_Introduction.pdfLec_1_Introduction.pdf
Lec_1_Introduction.pdfnagwaAboElenein
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Moe Moe Myint
 
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdg
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdgDIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdg
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdgMrVMNair
 
Dip unit-i-ppt academic year(2016-17)
Dip unit-i-ppt academic year(2016-17)Dip unit-i-ppt academic year(2016-17)
Dip unit-i-ppt academic year(2016-17)RagavanK6
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentalsA B Shinde
 
1. digital image processing
1. digital image processing1. digital image processing
1. digital image processingvilasini rvr
 
BEC007 -Digital image processing.pdf
BEC007  -Digital image processing.pdfBEC007  -Digital image processing.pdf
BEC007 -Digital image processing.pdfgopikahari7
 
Basics of digital image processing
Basics of digital image  processingBasics of digital image  processing
Basics of digital image processingzahid6
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfVaideshSiva1
 
Chapter_01_Introduction.ppt
Chapter_01_Introduction.pptChapter_01_Introduction.ppt
Chapter_01_Introduction.pptRajGunal
 
Chapter_01_Introduction Two differen.ppt
Chapter_01_Introduction Two differen.pptChapter_01_Introduction Two differen.ppt
Chapter_01_Introduction Two differen.pptMrVMNair
 
Chapter_01_Introduction.ppt
Chapter_01_Introduction.pptChapter_01_Introduction.ppt
Chapter_01_Introduction.pptDevika703320
 
Digital Image Processing presentation
Digital Image Processing presentationDigital Image Processing presentation
Digital Image Processing presentationOmkarDattatrayKanase
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image ProcessingSalim Hosen
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing BasicsA B Shinde
 

Similar to CHAPTER_1_updated_8_aug.ppt (20)

Image processing1 introduction
Image processing1 introductionImage processing1 introduction
Image processing1 introduction
 
Image processing1 introduction
Image processing1 introductionImage processing1 introduction
Image processing1 introduction
 
Lec_1_Introduction.pdf
Lec_1_Introduction.pdfLec_1_Introduction.pdf
Lec_1_Introduction.pdf
 
Lec_1_Introduction.pdf
Lec_1_Introduction.pdfLec_1_Introduction.pdf
Lec_1_Introduction.pdf
 
Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)Lecture 1 for Digital Image Processing (2nd Edition)
Lecture 1 for Digital Image Processing (2nd Edition)
 
mca.pptx
mca.pptxmca.pptx
mca.pptx
 
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdg
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdgDIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdg
DIPsadasdasfsdfsdfdfasdfsdfsdgsdgdsfgdfgfdg
 
Dip unit-i-ppt academic year(2016-17)
Dip unit-i-ppt academic year(2016-17)Dip unit-i-ppt academic year(2016-17)
Dip unit-i-ppt academic year(2016-17)
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
1. digital image processing
1. digital image processing1. digital image processing
1. digital image processing
 
BEC007 -Digital image processing.pdf
BEC007  -Digital image processing.pdfBEC007  -Digital image processing.pdf
BEC007 -Digital image processing.pdf
 
Basics of digital image processing
Basics of digital image  processingBasics of digital image  processing
Basics of digital image processing
 
Dip review
Dip reviewDip review
Dip review
 
Digital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdfDigital_image_processing_-Vijaya_Raghavan.pdf
Digital_image_processing_-Vijaya_Raghavan.pdf
 
Chapter_01_Introduction.ppt
Chapter_01_Introduction.pptChapter_01_Introduction.ppt
Chapter_01_Introduction.ppt
 
Chapter_01_Introduction Two differen.ppt
Chapter_01_Introduction Two differen.pptChapter_01_Introduction Two differen.ppt
Chapter_01_Introduction Two differen.ppt
 
Chapter_01_Introduction.ppt
Chapter_01_Introduction.pptChapter_01_Introduction.ppt
Chapter_01_Introduction.ppt
 
Digital Image Processing presentation
Digital Image Processing presentationDigital Image Processing presentation
Digital Image Processing presentation
 
Presentation on Digital Image Processing
Presentation on Digital Image ProcessingPresentation on Digital Image Processing
Presentation on Digital Image Processing
 
Image Processing Basics
Image Processing BasicsImage Processing Basics
Image Processing Basics
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAĐĄY_INDEX-DM_23-1-final-eng.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

CHAPTER_1_updated_8_aug.ppt

  • 1. 1 of 36 UNIT I Digital Image Processing: Introduction
  • 2. 2 of 36 Introduction “One picture is worth more than ten thousand words” Anonymous
  • 3. 3 of 36 • UNIT I: • Introduction to Image Processing • Fundamentals of Image Processing and Image Transforms, Basic steps of Image Processing System Sampling and Quantization of an image – Basic relationship between pixels • Image Transforms: 2 D- Discrete Fourier Transform, Discrete Cosine Transform (DCT), Wavelet Transforms: Continuous Wavelet Transform, Discrete Wavelet Transforms.
  • 4. 4 of 36 Contents This lecture will cover: – Motivation – What is a digital image? – What is digital image processing? – History of digital image processing – State of the art examples of digital image processing – Key stages in digital image processing
  • 5. 5 of 36 What is a Digital Image? A digital image is a representation of a two- dimensional image as a finite set of digital values, called picture elements or pixels Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 6. 6 of 36 What is a Digital Image? (cont…) Pixel values typically represent gray levels, colours, heights, opacities etc Remember digitization implies that a digital image is an approximation of a real scene 1 pixel Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 7. 7 of 36 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) – 4 samples per point (Red, Green, Blue, and “Alpha”, a.k.a. Opacity) For most of this course we will focus on grey-scale images
  • 8. 8 of 36 What is Digital Image Processing? Digital image processing focuses on two major tasks – Improvement of pictorial information for human interpretation – Processing of image data for storage, transmission and representation for autonomous machine perception Some argument about where image processing ends and fields such as image analysis and computer vision start
  • 9. 9 of 36 What is DIP? (cont…) The continuum from image processing to computer vision can be broken up into low-, mid- and high-level processes Low Level Process Input: Image Output: Image Examples: Noise removal, image sharpening Mid Level Process Input: Image Output: Attributes Examples: Object recognition, segmentation High Level Process Input: Attributes Output: Understanding Examples: Scene understanding, autonomous navigation In this course we will stop here
  • 10. 10 of 36 History of Digital Image Processing Early 1920s: One of the first applications of digital imaging was in the news- paper industry – The Bartlane cable picture transmission service – Images were transferred by submarine cable between London and New York – Pictures were coded for cable transfer and reconstructed at the receiving end on a telegraph printer Early digital image Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 11. 11 of 36 History of DIP (cont…) Mid to late 1920s: Improvements to the Bartlane system resulted in higher quality images – New reproduction processes based on photographic techniques – Increased number of tones in reproduced images Improved digital image Early 15 tone digital image Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 12. 12 of 36 History of DIP (cont…) 1960s: Improvements in computing technology and the onset of the space race led to a surge of work in digital image processing – 1964: Computers used to improve the quality of images of the moon taken by the Ranger 7 probe – Such techniques were used in other space missions including the Apollo landings A picture of the moon taken by the Ranger 7 probe minutes before landing Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 13. 13 of 36 History of DIP (cont…) 1970s: Digital image processing begins to be used in medical applications – 1979: Sir Godfrey N. Hounsfield & Prof. Allan M. Cormack share the Nobel Prize in medicine for the invention of tomography, the technology behind Computerised Axial Tomography (CAT) scans Typical head slice CAT image Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 14. 14 of 36 History of DIP (cont…) 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
  • 15. 15 of 36 Examples: Image Enhancement One of the most common uses of DIP techniques: improve quality, remove noise etc Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 16. 16 of 36 Examples: 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
  • 17. 17 of 36 Examples: Artistic Effects Artistic effects are used to make images more visually appealing, to add special effects and to make composite images
  • 18. 18 of 36 Examples: Medicine Take slice from MRI scan of canine heart, and find boundaries between types of tissue – Image with gray levels representing tissue density – Use a suitable filter to highlight edges Original MRI Image of a Dog Heart Edge Detection Image Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 19. 19 of 36 Examples: GIS Geographic Information Systems – Digital image processing techniques are used extensively to manipulate satellite imagery – Terrain classification – Meteorology Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 20. 20 of 36 Examples: GIS (cont…) Night-Time Lights of the World data set – Global inventory of human settlement – Not hard to imagine the kind of analysis that might be done using this data Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 21. 21 of 36 Examples: Industrial Inspection Human operators are expensive, slow and unreliable Make machines do the job instead Industrial vision systems are used in all kinds of industries Can we trust them? Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 22. 22 of 36 Examples: PCB Inspection Printed Circuit Board (PCB) inspection – Machine inspection is used to determine that all components are present and that all solder joints are acceptable – Both conventional imaging and x-ray imaging are used
  • 23. 23 of 36 Examples: Law Enforcement Image processing techniques are used extensively by law enforcers – Number plate recognition for speed cameras/automated toll systems – Fingerprint recognition – Enhancement of CCTV images Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 24. 24 of 36 Examples: HCI Try to make human computer interfaces more natural – Face recognition – Gesture recognition Does anyone remember the user interface from “Minority Report”? These tasks can be extremely difficult
  • 25. 25 of 36 Colour Fundamentals (cont…) Chromatic light spans the electromagnetic spectrum from approximately 400 to 700 nm As we mentioned before human colour vision is achieved through 6 to 7 million cones in each eye Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 26. 26 of 36 8/19/2023 Imaging types •gamma ray Imaging(Nuclear Medicine) •x-ray imaging(Diagnosis) •Imaging in Ultrviolet band(industrial inspection, astronomical observation) •Imaging in visible & Infra Red band •Imaging in MicroWave band The dominant application of imaging in the microwave band is wave The unique feature of imaging radar is its ability to collect data over virtually any region at anytime, regardless of weather or ambient lighting condition •Imaging in Radio band •Imaging Modeleties using non EM Spectrum band
  • 27. 27 of 36 Components of Image Processing System
  • 28. 28 of 36 • Image Sensors: Image sensors senses the intensity, amplitude, co-ordinates and other features of the images and passes the result to the image processing hardware. It includes the problem domain. • Image Processing Hardware: Image processing hardware is the dedicated hardware that is used to process the instructions obtained from the image sensors. It passes the result to general purpose computer. • Computer: Computer used in the image processing system is the general purpose computer that is used by us in our daily life. • Image Processing Software: Image processing software is the software that includes all the mechanisms and algorithms that are used in image processing system. • Mass Storage: Mass storage stores the pixels of the images during the processing. • Hard Copy Device: Once the image is processed then it is stored in the hard copy device. It can be a pen drive or any external ROM device. • Image Display: It includes the monitor or display screen that displays the processed images. • Network: Network is the connection of all the above elements of the image processing system.
  • 29. 29 of 36 Fundamental Steps in DIP Material covered in book has two broad categories – Methods having input & Output as images – Methods having image as input and attributes as output – This is depicted in diagram – Diagram doesn’t imply that all process are applied to all images but just that any can be applied for specific purpose 8/19/2023
  • 31. 31 of 36 Key Stages in Digital Image Processing Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression
  • 32. 32 of 36 Key Stages in Digital Image Processing: Image Aquisition Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 33. 33 of 36 Key Stages in Digital Image Processing: Image Enhancement Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 34. 34 of 36 Key Stages in Digital Image Processing: Image Restoration Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 35. 35 of 36 Key Stages in Digital Image Processing: Morphological Processing Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 36. 36 of 36 Key Stages in Digital Image Processing: Segmentation Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 37. 37 of 36 Key Stages in Digital Image Processing: Object Recognition Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 38. 38 of 36 Key Stages in Digital Image Processing: Representation & Description Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  • 39. 39 of 36 Key Stages in Digital Image Processing: Image Compression Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression
  • 40. 40 of 36 Key Stages in Digital Image Processing: Colour Image Processing Image Acquisition Image Restoration Morphological Processing Segmentation Representation & Description Image Enhancement Object Recognition Problem Domain Colour Image Processing Image Compression
  • 51. 51 of 36 BASIC RELATIONSHIP BETWEEN PIXELS • The word pixel is based on a contraction of pix ("pictures") and el (for "element"); similar formations with el for "element" include the words: voxel and texel. • In digital imaging, a pixel (or picture element) is a single point in a image. • The pixel is the smallest addressable screen element; it is the smallest unit of picture that can be controlled. • Each pixel has its own address. The address of a pixel corresponds to its coordinates. • Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots or squares. • Each pixel is a sample of an original image; more samples typically provide more accurate representations of the original. • The intensity of each pixel is variable. • In colour image systems, a colour is typically represented by three or four component intensities such as red, green, and blue, or cyan,
  • 52. 52 of 36 bits per pixel • The number of distinct colors that can be represented by a pixel depends on the number of bits per pixel (bpp). • A 1 bpp image uses 1-bit for each pixel, so each pixel can be either on or off. Each additional bit doubles the number of colors available, • so a 2 bpp image can have 4 colors, and a 3 bpp image can have 8 colors: 1 bpp, 21 = 2 colors (monochrome) • 2 bpp, 22 = 4 colors • 3 bpp, 23 = 8 colors • 8 bpp, 28 = 256 colors • 16 bpp, 216 = 65,536 colors ("Highcolor" ) • 24 bpp, 224 ≈ 16.8 million colors ("Truecolor")
  • 53. 53 of 36 • For color depths of 15 or more bits per pixel, the depth is normally the sum of the bits allocated to each of the red, green, and blue components. Highcolor, usually meaning 16 bpp, normally has five bits for red and blue, and six bits for green, as the human eye is more sensitive to errors in green than in the other two primary colors. • For applications involving transparency, the 16 bits may be divided into five bits each of red, green, and available: this means that each 24-bit pixel has an extra 8 bits to describe its blue, with one bit left for transparency. • A 24-bit depth allows 8 bits per component. On some systems, 32- bit depth is opacity,dullness (for purposes of combining with another image).
  • 54. 54 of 36 NEIGHBORS OF A PIXEL • A pixel p at coordinates (x,y) has four horizontal and vertical neighbors whose coordinates are given by: (x+1,y), (x-1, y), (x, y+1), (x,y-1) This set of pixels, called the 4-neighbors or p, is denoted by N4(p). Each pixel is one unit distance from (x,y) and some of the neighbors of p lie outside the digital image if (x,y) is on the border of the image. The four diagonal neighbors of p have coordinates and are denoted by ND (p). (x+1, y+1), (x+1, y-1), (x-1, y+1), (x-1, y-1)
  • 55. 55 of 36 These points, together with the 4-neighbors, are called the 8-neighbors of p, denoted by N8 (p). As before, some of the points in ND (p) and N8 (p) fall outside the image if (x,y) is on the border of the image. The boundary (also called border or contour) of a region R is the set of pixels in the region that have one or more neighbors that are not in R. If R happens to be an entire image (which we recall is a rectangular set of pixels), then its boundary is defined as the set of pixels in the first and last rows and columns of the image
  • 56. 56 of 36 ADJACENCY AND CONNECTIVITY • Let v be the set of gray –level values used to define adjacency, in a binary image, v={1}. In a gray-scale image, the idea is the same, but V typically contains more elements, for example, V = {180, 181, 182, …, 200}. • If the possible intensity values 0 – 255, V set can be any subset of these 256 values. if we are reference to adjacency of pixel with value. • Three types of adjacency – 4- Adjacency – two pixel P and Q with value from V are 4 –adjacency if A is in the set N4(P) – 8- Adjacency – two pixel P and Q with value from V are 8 –adjacency if A is in the set N8(P) – M-adjacency –two pixel P and Q with value from V are m – adjacency if (i) Q is in N4(p) or – (ii) Q is in ND(q) and – the set N4(p) ∊ N4(q) has no pixel whose values are from V. • Mixed adjacency is a modification of 8-adjacency. It is introduced to eliminate the ambiguities that often arise when 8-adjacency is used.
  • 57. 57 of 36 Distance Measures For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w), respectively, D is a distance function or metric if (a) D(p, q) 0 AD(p, q)=0 iff p=qB, (b) D(p, q)=D(q, p), and (c) D(p, z) D(p, q)+D(q, z). The Euclidean distance between p and q is defined as De (p,q) = [(x – s)2 + (y - t)2]1/2 Pixels having a distance less than or equal to some value r from (x,y) are the points contained in a disk of radius „ r „centered at (x,y)
  • 58. 58 of 36 Pixels having a D4 distance from (x,y), less than or equal to some value r form a Diamond centered at (x,y) • The D4 distance (also called city-block distance) between p and q is defined as: D4 (p,q) = | x – s | + | y – t |
  • 73. 73 of 36 DISCRETE COSINE TRANSFORM (DCT) : The discrete cosine transform (DCT) helps separate the image into parts (or spectral sub- bands) of differing importance (with respect to the image's visual quality). The DCT is similar to the discrete Fourier transform: it transforms a signal or image from the spatial domain to the frequency domain. The general equation for a 1D (N data items) DCT is defined by the following equation and the corresponding inverse 1D DCT transform is simple F-1(u), i.e.: where
  • 74. 74 of 36 • The general equation for a 2D (N by M image) DCT is defined by the following equation: and the corresponding inverse 2D DCT transform is simple F-1(u,v), i.e.: where The basic operation of the DCT is as follows:  The input image is N by M;  f(i,j) is the intensity of the pixel in row i and column j;  F(u,v) is the DCT coefficient in row k1 and column k2 of the DCT matrix.  For most images, much of the signal energy lies at low frequencies; these appear in the upper left corner of the DCT.  Compression is achieved since the lower right values represent higher frequencies, and are often small - small enough to be neglected with little visible distortion.  The DCT input is an 8 by 8 array of integers. This array contains each pixel's gray scale level; 8 bit pixels have levels from 0 to 255.
  • 77. 77 of 36 • We can also apply a wavelet transform differently. • Suppose we apply a wavelet transform to an image by rows, then by columns, but using our transform at one scale only. • This technique will produce a result in four quarters: the top left will be a half-sized version of the image and the other quarter‟s high-pass filtered images. • These quarters will contain horizontal, vertical, and diagonal edges of the image. • We then apply a one-scale DWT to the top-left quarter, creating smaller images, and so on. This is called the nonstandard decomposition, and is illustrated in figure
  • 78. 78 of 36 • Steps for performing a one-scale wavelet transform are given below: • Step 1: Convolve the image rows with the low-pass filter. • Step 2 : Convolve the columns of the result of step 1 with the low-pass filter and rescale this to half its size by sub- sampling. • Step 3 : Convolve the result of step 1 with high-pass filter and again sub-sample to obtain an image of half the size. • Step 4 : Convolve the original image rows with the high- pass filter. • Step 5: Convolve the columns of the result of step 4 with the low-pass filter and recycle this to half its size by sub- sampling. • Step 6 :Convolve the result of step 4 with the high-pass filter and again sub-sample to obtain an image of half the size.
  • 80. 80 of 36 Figure Original image and DWT decomposed image.
  • 81. 81 of 36 • An example of a discrete wavelet transform on an image is shown in Figure above. On the left is the original image data, and on the right are the coefficients after a single pass of the wavelet transform. The low-pass data is the recognizable portion of the image in the upper left corner. The high-pass components are almost invisible because image data contains mostly low frequency information.
  • 82. 82 of 36 Summary We have looked at: – What is a digital image? – What is digital image processing? – History of digital image processing – State of the art examples of digital image processing – Key stages in digital image processing – Sampling & Quantization Next time we will start to see how it all works…