DIP Lecture 1-8 (Digital Image Processing Presentation.pptx

whattsappstates 39 views 146 slides Aug 02, 2024
Slide 1
Slide 1 of 146
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47
Slide 48
48
Slide 49
49
Slide 50
50
Slide 51
51
Slide 52
52
Slide 53
53
Slide 54
54
Slide 55
55
Slide 56
56
Slide 57
57
Slide 58
58
Slide 59
59
Slide 60
60
Slide 61
61
Slide 62
62
Slide 63
63
Slide 64
64
Slide 65
65
Slide 66
66
Slide 67
67
Slide 68
68
Slide 69
69
Slide 70
70
Slide 71
71
Slide 72
72
Slide 73
73
Slide 74
74
Slide 75
75
Slide 76
76
Slide 77
77
Slide 78
78
Slide 79
79
Slide 80
80
Slide 81
81
Slide 82
82
Slide 83
83
Slide 84
84
Slide 85
85
Slide 86
86
Slide 87
87
Slide 88
88
Slide 89
89
Slide 90
90
Slide 91
91
Slide 92
92
Slide 93
93
Slide 94
94
Slide 95
95
Slide 96
96
Slide 97
97
Slide 98
98
Slide 99
99
Slide 100
100
Slide 101
101
Slide 102
102
Slide 103
103
Slide 104
104
Slide 105
105
Slide 106
106
Slide 107
107
Slide 108
108
Slide 109
109
Slide 110
110
Slide 111
111
Slide 112
112
Slide 113
113
Slide 114
114
Slide 115
115
Slide 116
116
Slide 117
117
Slide 118
118
Slide 119
119
Slide 120
120
Slide 121
121
Slide 122
122
Slide 123
123
Slide 124
124
Slide 125
125
Slide 126
126
Slide 127
127
Slide 128
128
Slide 129
129
Slide 130
130
Slide 131
131
Slide 132
132
Slide 133
133
Slide 134
134
Slide 135
135
Slide 136
136
Slide 137
137
Slide 138
138
Slide 139
139
Slide 140
140
Slide 141
141
Slide 142
142
Slide 143
143
Slide 144
144
Slide 145
145
Slide 146
146

About This Presentation

Digital Image Processing ppt


Slide Content

. 1

Muhammad Tahir Mumtaz M- Phil in computer science (Computer Vision) University of Central Punjab Lahore, Punjab, Pakistan. M- Phil in computer science (Software Engineering) Pir Mehr Ali Shah Arid Agriculture University Rawalpindi Islamabad, Punjab, Pakistan Ph. D in computer science (Cont..) (Deep Learning) Unisza, Terengganu, Malaysia.

. 3

Today’s Topics Signal Analog and Digital Data & Signals Periodic & Aperiodic Signals Digital Signal Processing Digital Image Processing

. 5

. 6

Analog ANALOG Refers to something that is Continuous CONTINUOUS A set of specific points of data and all possible points between them

Digital DIGITAL Refers to something that is Discrete DISCRETE A set of specific points of data with no points in between

Analog and Digital Data Analog Data Human Voice Digital Data Data stored in the memory of a computer

Analog and Digital Signals

Periodic and Aperiodic Signals Periodic Signals (Analog or Digital) Aperiodic

Periodic Signals A signal is called Periodic if it completes a pattern within a measurable time frame called a Period and then repeats that pattern over identical subsequent Periods

Periodic Signal Example

Aperiodic Signals An Aperiodic or Non-Periodic signal is the one that changes constantly without exhibiting (showing) a pattern or cycle that repeats over time

Aperiodic Signals

Digital Signal Processing Digital signal processing (DSP) refers to various techniques for improving the accuracy and reliability of digital communications. This can involve multiple mathematical operations such as compression, decompression, filtering, equalization, modulation and demodulation to generate a signal of superior quality . i.e Audio, video, image etc.. 16

. 17

Analog-to-Digital Converter (ADC) In electronics , an ADC stands for Analog-to-Digital Converter. It is a device that converts continuous-time and continuous-amplitude analog signals (such as from sensors) into discrete-time and discrete-amplitude digital signals for processing by digital systems . 18

Digital-to-Analog Converter (DAC) : In the context of audio and technology, a DAC, or Digital-to-Analog Converter, is a device that converts digital audio signals (ones and zeros) into analog signals (continuous electrical voltage) that can be played through headphones or speakers . 19

Audio Amp An audio amplifier, often referred to simply as an "amp," is a device used to increase the amplitude (volume) of audio signals. . 20

. 21

Applications of DSP Digital image processing Computer graphics Photo manipulation Biomedicine Speech processing Speech recognition Data transmission Audio signal processing Audio data compression  e.g.  MP3 Video data compression Radar Sonar Financial signal processing Economic forecasting Seismology Weather forecasting . 22

. 23

. 24

Disadvantages Search at least three and write into your notes. Or on this slide… . 25

. 26

Image processing Image processing is the process of transforming an image into a digital form and performing certain operations to get some useful information from it. The image processing system usually treats all images as 2D signals when applying certain predetermined signal processing methods. . 27

Image An  image  is a visual representation of something. In information technology, the term has several usages: 1) An  image  is a  picture  that has been created or copied and stored in electronic form. An image  can be described in terms of vector graphics or raster graphics. Image – A two-dimensional signal that can be observed by human visual system . 28

How are images represented in the computer?

Image processing is used for two somewhat different purposes : • improving the visual appearance of images (pictorial information) to a human viewer, and • Preparing (processing) images for measurement of the features and structures present . 30

. 31

. 32 Introduction What is Digital Image Processing? Digital Image — a two-dimensional function x and y are spatial coordinates The f is called intensity or gray level at the point (x, y) Digital Image Processing — process digital images by means of computer, it covers low-, mid-, and high-level processes low-level: inputs and outputs are images mid-level: outputs are attributes extracted from input images high-level: an ensemble of recognition of individual objects Pixel — the elements of a digital image

Color Image A color image is just three functions pasted together. We can write this as a “vector-valued” function: . 33

. 34 Origins of Digital Image Processing Sent by submarine cable between London and New York, the transportation time was reduced to less than three hours from more than a week

. 35 Origins of Digital Image Processing

. 36

. 37

. 38

. 39

. 40

. 41

. 42

. 43

. 44

. 45

. 46 Sources for Images Electromagnetic (EM) energy spectrum Acoustic Ultrasonic Electronic Artificial images produced by computer

47 Electromagnetic (EM) energy spectrum Major uses Gamma-ray imaging : nuclear medicine and astronomical observations X-rays : medical diagnostics, industry, and astronomy, etc. Ultraviolet : industrial inspection, microscopy, lasers, biological imaging, and astronomical observations Visible and infrared bands : light microscopy, astronomy, remote sensing, industry, and law enforcement Microwave band : radar Radio band : medicine (such as MRI) and astronomy

. 48

. 49 Examples: Gama-Ray Imaging

. 50 Examples: X-Ray Imaging

. 51 Examples: Ultraviolet Imaging

. 52 Examples: Light Microscopy Imaging

. 53 Examples: Visual and Infrared Imaging

. 54 Examples: Infrared Satellite Imaging USA 1993 USA 2003

. 55 Examples: Infrared Satellite Imaging

. 56 Examples: Automated Visual Inspection

. 57 Examples: Automated Visual Inspection The area in which the imaging system detected the plate Results of automated reading of the plate content by the system

. 58 Example of Radar Image

. 59 Examples: MRI (Radio Band)

. 60 Examples: Ultrasound Imaging

. 61 Light and EM Spectrum

. 62 Light and EM Spectrum The colors that humans perceive in an object are determined by the nature of the light reflected from the object.

. 63

. 64

Image Acquisition . 65

. 66

. 67

. 68

. 69

. 70

. 71

. 72

. 73

. 74

. 75

. 76

. 77

. 78

. 79

. 80

. 81

. 82

. 83

. 84

. 85

. 86 A Simple Image Formation Model

. 87 Representing Digital Images The representation of an M ×N numerical array as

. 88 Representing Digital Images The representation of an M ×N numerical array as

. 89 Representing Digital Images The representation of an M ×N numerical array in MATLAB

. 90 Representing Digital Images Discrete intensity interval [0, L-1], L=2 k The number b of bits required to store a M × N digitized image b = M × N × k

. 91 Representing Digital Images

. 92 Spatial and Intensity Resolution Spatial resolution — A measure of the smallest visible detail in an image — stated with line pairs per unit distance, dots (pixels) per unit distance, dots per inch (dpi) Intensity resolution — The smallest discernible change in intensity level — stated with 8 bits, 12 bits, 16 bits, etc.

. 93 Spatial and Intensity Resolution

. 94 Spatial and Intensity Resolution

. 95 Spatial and Intensity Resolution

. 96 Image Interpolation Interpolation — Process of using known data to estimate unknown values e.g., zooming, shrinking, rotating, and geometric correction Interpolation (sometimes called resampling ) — an imaging method to increase (or decrease) the number of pixels in a digital image. Some digital cameras use interpolation to produce a larger image than the sensor captured or to create digital zoom http://www.dpreview.com/learn/?/key=interpolation

. 97 Examples: Interpolation

. 98 Examples: Interpolation

. 99 Examples: Interpolation

. 100 Examples: Interpolation

. 101 Basic Relationships Between Pixels Neighborhood Adjacency Connectivity Paths Regions and boundaries

. 102 Basic Relationships Between Pixels Neighbors of a pixel p at coordinates ( x,y ) 4-neighbors of p , denoted by N 4 (p) : (x-1, y), (x+1, y), (x,y-1), and (x, y+1). 4 diagonal neighbors of p , denoted by N D (p) : (x-1, y-1), (x+1, y+1), (x+1,y-1), and (x-1, y+1). 8 neighbors of p , denoted N 8 (p) N 8 (p) = N 4 (p) U N D (p)

. 103

. 104

. 105 Basic Relationships Between Pixels Adjacency Let V be the set of intensity values 4-adjacency : Two pixels p and q with values from V are 4-adjacent if q is in the set N 4 (p). 8-adjacency : Two pixels p and q with values from V are 8-adjacent if q is in the set N 8 (p).

. 106 Basic Relationships Between Pixels Adjacency Let V be the set of intensity values m-adjacency : Two pixels p and q with values from V are m-adjacent if (i) q is in the set N 4 (p), or (ii) q is in the set N D (p) and the set N 4 (p) ∩ N 4 (p) has no pixels whose values are from V.

. 107 Basic Relationships Between Pixels Path A (digital) path (or curve) from pixel p with coordinates (x , y ) to pixel q with coordinates ( x n , y n ) is a sequence of distinct pixels with coordinates (x , y ), (x 1 , y 1 ), …, ( x n , y n ) Where (x i , y i ) and (x i-1 , y i-1 ) are adjacent for 1 ≤ i ≤ n. Here n is the length of the path. If (x , y ) = ( x n , y n ), the path is closed path. We can define 4-, 8-, and m-paths based on the type of adjacency used.

. 108 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2}

. 109 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2} 8-adjacent

. 110 Examples: Adjacency and Path 0 1 1 0 1 1 0 1 1 0 2 0 0 2 0 0 2 0 0 0 1 0 0 1 0 0 1 V = {1, 2} 8-adjacent m-adjacent

. 111 Examples: Adjacency and Path 1,1 1 1,2 1 1,3 0 1 1 0 1 1 2,1 2 2,2 2,3 0 2 0 0 2 0 3,1 3,2 1 3,3 0 0 1 0 0 1 V = {1, 2} 8-adjacent m-adjacent The 8-path from (1,3) to (3,3): (1,3), (1,2), (2,2), (3,3) (1,3), (2,2), (3,3) The m-path from (1,3) to (3,3): (1,3), (1,2), (2,2), (3,3)

. 112 Introduction to Mathematical Operations in DIP Array vs. Matrix Operation Array product Matrix product Array product operator Matrix product operator

. 113 Arithmetic Operations Arithmetic operations between images are array operations. The four arithmetic operations are denoted as s(x,y) = f(x,y) + g(x,y) d(x,y) = f(x,y) – g(x,y) p(x,y) = f(x,y) × g(x,y) v(x,y) = f(x,y) ÷ g(x,y)

. 114 Example: Addition of Noisy Images for Noise Reduction Noiseless image: f(x,y) Noise: n(x,y) (at every pair of coordinates (x,y), the noise is uncorrelated and has zero average value) Corrupted image: g(x,y) g(x,y) = f(x,y) + n(x,y) Reducing the noise by adding a set of noisy images, {g i (x,y)}

. 115 Example: Addition of Noisy Images for Noise Reduction

. 116 Example: Addition of Noisy Images for Noise Reduction In astronomy, imaging under very low light levels frequently causes sensor noise to render single images virtually useless for analysis. In astronomical observations, similar sensors for noise reduction by observing the same scene over long periods of time. Image averaging is then used to reduce the noise.

. 117

. 118 An Example of Image Subtraction: Mask Mode Radiography Mask h(x,y): an X-ray image of a region of a patient’s body Live images f(x,y): X-ray images captured at TV rates after injection of the contrast medium Enhanced detail g(x,y) g(x,y) = f(x,y) - h(x,y) The procedure gives a movie showing how the contrast medium propagates through the various arteries in the area being observed.

. 119

. 120 An Example of Image Multiplication

. 121 Set and Logical Operations

. 122 Set and Logical Operations Let A be the elements of a gray-scale image The elements of A are triplets of the form (x, y, z), where x and y are spatial coordinates and z denotes the intensity at the point (x, y). The complement of A is denoted A c

. 123 Set and Logical Operations The union of two gray-scale images (sets) A and B is defined as the set

. 124 Set and Logical Operations

. 125 Set and Logical Operations

. 126 Spatial Operations Single-pixel operations Alter the values of an image’s pixels based on the intensity. e.g.,

. 127 Spatial Operations Neighborhood operations The value of this pixel is determined by a specified operation involving the pixels in the input image with coordinates in S xy

. 128 Spatial Operations Neighborhood operations

. 129 Geometric Spatial Transformations Geometric transformation (rubber-sheet transformation) — A spatial transformation of coordinates — intensity interpolation that assigns intensity values to the spatially transformed pixels. Affine transform

. 130

. 131 Intensity Assignment Forward Mapping It’s possible that two or more pixels can be transformed to the same location in the output image. Inverse Mapping The nearest input pixels to determine the intensity of the output pixel value. Inverse mappings are more efficient to implement than forward mappings.

. 132 Example: Image Rotation and Intensity Interpolation

. 133 Image Registration Input and output images are available but the transformation function is unknown. Goal: estimate the transformation function and use it to register the two images. One of the principal approaches for image registration is to use tie points (also called control points ) The corresponding points are known precisely in the input and output ( reference ) images.

. 134 Image Registration A simple model based on bilinear approximation:

. 135 Image Registration

. 136 Image Transform A particularly important class of 2-D linear transforms, denoted T(u, v)

. 137 Image Transform Given T(u, v), the original image f(x, y) can be recoverd using the inverse tranformation of T(u, v).

. 138 Image Transform

. 139 Example: Image Denoising by Using DCT Transform

. 140 Forward Transform Kernel

. 141 The Kernels for 2-D Fourier Transform

. 142 2-D Fourier Transform

. 143 Probabilistic Methods

. 144 Probabilistic Methods

. 145 Example: Comparison of Standard Deviation Values

. 146 Homework http://cramer.cs.nmt.edu/~ip/assignments.html