SlideShare a Scribd company logo
1 of 47
Download to read offline
Digital Image Processing and
Analysis - I
Digital image fundamentals
Gizeaddis L. (Ph.D.)
Jimma institute of Technology
School of Biomedical Engineering
Outline
• Digital image fundamentals
• Concept of image
• image formation model,
• image sampling and quantization
• Basic relationship between pixels
• singular value representation of discrete images
Concept of image
• Image capturing
• Image intensity, f(x, y), is proportional to EM energy
radiated/received
• Required f(x, y) is nonzero and finite
• and
• Typical values:
0 ≤ 𝑓(𝑥, 𝑦) ≤ ∞
𝑓(𝑥, 𝑦) = 𝑖(𝑥, 𝑦)𝑟(𝑥, 𝑦)
𝑤ℎ𝑒𝑟𝑒 0 ≤ 𝑖(𝑥, 𝑦) ≤ ∞, incident illumination
0 < r(x,y) < 1, reflected illumination





=







=
snow
,
.
,
.
,
,
i(x,y)
,
93
.
0
paint
wall
flat white
,
8
.
0
material
black
01
0
y)
r(x,
office
commercial
,
lm/m
000
1
night
clear
moon,
full
,
lm/m
01
0
day
cloudy
,
lm/m
000
10
day
sunny
clear
,
lm/m
000
90
2
2
2
2
Concept of image
Digital image Representation
• A digital image is the representation of a continuous image
f(x,y) by a 2-d array of discrete samples.
• But the real world is continuous
Digital image acquisition process
Image sampling and quantization
• An image may be continuous with respect to the x- and y-
coordinates, and also in amplitude.
• When x, y, and the amplitude values are all finite, discrete
quantities, we call the image a digital image.
• To convert it to digital form, we have to sample the
function in both coordinates and in amplitude.
• Digitizing the coordinate values is called sampling.
• Digitizing the amplitude values is called quantization.
Image sampling
Continuous image
A scan line from A to B in the
continuous image
To sample this take equally spaced
samples along line AB.
Image sampling
• The set of these discrete
locations gives the
sampled function
• In order to form a digital
function, the gray-level
values also must be
converted (quantized) into
discrete quantities.
Concepts of sampling and quantization
Monochromatic images
• Continuous image function f(x,y)
• arguments - two co-ordinates (x,y) can have any value
• Digital image functions - represented by matrices
• co-ordinates = integer numbers
• Cartesian (horizontal x axis, vertical y axis)
• Monochromatic image function range
• lowest value - black
• highest value - white
• Limited brightness values = grey levels
Chromatic images
• Represented by vector not scalar
• Red, Green, Blue (RGB)
• Hue, Saturation, Value (HSV)
• Cyan, Magenta, Yellow (CMY)
Solid color cube
((28)3 = 16,777,216 colors)
Chromatic images
Gray level images
Gray level images
• Alternatively, a digital
image may be
represented as a column
or row vector:
Gray level images
• a digital 8-bit, 8x8 images is shown as an array of numbers on the
left and brightness levels on the right.
Representation of gray level images
Properties that define image format
• Pixel (or spatial) resolution (e.g. 640x480 pixels)
• Pixel bit-depth (8-bit)
• Number of planes (1 for gray scale images, 3 for color)
• Color-space (RGB, CMYK etc.)
Gray level images
• The number of distinct gray levels is usually a power of 2
that is, 𝑳 = 𝟐𝑩
where B is the number of bits in the binary representation of the
brightness levels.
• When B>1 we speak of a gray-level image; when B=1 we
speak of a binary image.
• In a binary image there are just two gray levels which can
be referred as “black” and “white” or “0” and “1”.
Gray level images
Binary and Gray scale images
• Smallest discernible change in intensity level
4-bit
6-bit 5-bit 2-bit
3-bit
1-bit
7-bit
8-bit
Intensity Resolution
Image of size
Image of size
fewer Pixels Mean Lower Spatial Resolution
• Image re-sampling or re-sizing operations:-
• zooming, shrinking, rotating, and geometric corrections
• Uses known image data to estimate at the new
locations.
• Different methods:
▪ Nearest neighbor interpolation:- assigns the
intensity of the nearest neighbor to the new
location. Not often used.
Image interpolation
▪ Bilinear interpolation: - uses the four nearest neighbors to
estimate the intensity at a the new location according to
where a, b, c, and d are determined using the four neighbors.
𝑣(𝑥, 𝑦) = 𝑎𝑥 + 𝑏𝑦 + 𝑐𝑥𝑦 + 𝑑
•
o
• •
•
1
• •
o
o
o
o
o
o
o
o
o
o
o
o
o
o •
•
•
o o
o
o
o o
o
o
o
o
o o
2
3 4
?
𝑣(𝑥1, 𝑦1) = 𝑎𝑥1 + 𝑏𝑦1 + 𝑐𝑥1𝑦1 + 𝑑
𝑣(𝑥2, 𝑦2) = 𝑎𝑥2 + 𝑏𝑦2 + 𝑐𝑥2𝑦2 + 𝑑
𝑣(𝑥3, 𝑦3) = 𝑎𝑥3 + 𝑏𝑦3 + 𝑐𝑥3𝑦3 + 𝑑
𝑣(𝑥4, 𝑦4) = 𝑎𝑥4 + 𝑏𝑦4 + 𝑐𝑥4𝑦4 + 𝑑
⇓
𝑎, 𝑏, 𝑐, 𝑑
o - new pixel location
• - old pixel location
Image interpolation
▪ Cubic interpolation: uses the sixteen nearest neighbors to
estimate the intensity at a the new location according to
where the sixteen coefficients aij are determined using the
sixteen equations and in sixteen unknowns using sixteen
nearest neighbors.
• Note:- The expression for the cubic interpolation (N=3)
reduces to the Bilinear interpolation (N =1), i.e.,
N = 1 for Bilinear
N = 3 for Cubic (Adobe Photoshop)
𝑣(𝑥, 𝑦) = ෍
𝑖=0
3
෍
𝑗=0
3
𝑎𝑖𝑗𝑥𝑖
𝑦𝑗
𝑣(𝑥, 𝑦) = ෍
𝑖=0
𝑁
෍
𝑗=0
𝑁
𝑎𝑖𝑗𝑥𝑖𝑦𝑗
Basic Relationships Between Pixels
• Neighborhood
• Adjacency
• Connectivity
• Paths
• Regions and boundaries
Basic Relationships Between Pixels
• Neighbors of a pixel p at coordinates (x,y)
• 4-neighbors of p, denoted by N4(p):
(x-1, y), (x+1, y), (x,y-1), and (x, y+1).
• 4 diagonal neighbors of p, denoted by ND(p):
(x-1, y-1), (x+1, y+1), (x+1,y-1), and (x-1, y+1).
• 8 neighbors of p, denoted N8(p)
N8(p) = N4(p) U ND(p)
Basic Relationships Between Pixels
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 N4(p).
• 8-adjacency: Two pixels p and q with
values from V are 8-adjacent if q is in
the set N8(p).
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 N4(p), or
(ii) q is in the set ND(p) and the set N4(p) ∩ N4(q) has no pixels whose values
are from V.
Basic Relationships Between Pixels
• Path
• A (digital) path (or curve) from pixel p with coordinates (x0, y0) to pixel q with
coordinates (xn, yn) is a sequence of distinct pixels with coordinates
(x0, y0), (x1, y1), …, (xn, yn)
Where (xi, yi) and (xi-1, yi-1) are adjacent for 1 ≤ i ≤ n.
• Here n is the length of the path.
• If (x0, y0) = (xn, yn), the path is closed path.
Basic Relationships Between Pixels
• Connected in S
• Let S represent a subset of pixels in an image.
• Two pixels p with coordinates (x0, y0) and q with coordinates (xn, yn) are
said to be connected in S if there exists a path
(x0, y0), (x1, y1), …, (xn, yn)
Where
∀𝑖, 0 ≤ 𝑖 ≤ 𝑛, (𝑥𝑖, 𝑦𝑖) ∈ 𝑆
Basic Relationships Between Pixels
Let S represent a subset of pixels in an image
• For every pixel p in S, the set of pixels in S that are connected to p is called a
connected component of S.
• If S has only one connected component, then S is called Connected Set.
• We call R a region of the image if R is a connected set
• Two regions, Ri and Rj are said to be adjacent if their union forms a
connected set.
• Regions that are not to be adjacent are said to be disjoint.
• Boundary (or border)
• The boundary of the 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, then its boundary is defined as the set of
pixels in the first and last rows and columns of the image.
• Foreground and background
• An image contains K disjoint regions, Rk, k = 1, 2, …, K. Let Ru denote the
union of all the K regions, and let (Ru)c denote its complement.
• All the points in Ru is called foreground;
• All the points in (Ru)c is called background.
Basic Relationships Between Pixels
Distance Measures
• Given pixels p, q and z with coordinates (x, y), (s, t), (u, v)
respectively, the distance function D has following
properties:
a. D(p, q) ≥ 0 [D(p, q) = 0, iff p = q]
b. D(p, q) = D(q, p)
c. D(p, z) ≤ D(p, q) + D(q, z)
Distance Measures
The following are the different Distance measures:
a. Euclidean Distance :
De(p, q) = [(x-s)2 + (y-t)2]1/2
b. City Block Distance:
D4(p, q) = |x-s| + |y-t|
c. Chess Board Distance:
D8(p, q) = max(|x-s|, |y-t|)
Example
• In the following arrangement of pixels, what’s the value of the
Euclidian and chessboard distance between the circled two
points?
0 0 0 0 0
0 0 1 1 0
0 1 1 0 0
0 1 0 0 0
0 0 0 0 0
0 0 0 0 0
Singular Value Decomposition (SVD) of
representation of images
• Any real m x n matrix A can be decomposed uniquely:
• U is m x m and column orthonormal (UTU=I)
• D is n x n and diagonal
• σi are called singular values of A
• It is assumed that σ1 ≥ σ2 ≥ … ≥ σn ≥ 0
• V is n x n and orthonormal (VVT=VTV=I)
SVD (cont’d)
• If m = n, then:
• U is n x n and orthonormal (UTU=UUT=I)
• D is n x n and diagonal
• V is n x n and orthonormal (VVT=VTV=I)
SVD (cont’d)
• The columns of U are eigenvectors of AAT
• The columns of V are eigenvectors of ATA
• If λi is an eigenvalue of ATA (or AAT), then λi = σi
2
for square matrices:
A=PΛP-1
SVD - Example
D
U = (u1 u2 . . . un) V = (v1 v2 . . . vn)
SVD properties
• A square (n × n) matrix A is
singular iff at least one of
its singular values σ1, …, σn
is zero.
• The rank of matrix A is
equal to the number of
nonzero singular values σi
Matrix “condition”
• SVD gives a way of determining how
singular A is.
• The condition of A measures the degree
of singularity of A:
(ratio of largest singular value to its
smallest singular value)
• A singular matrix is a matrix whose
determinant is 0 and hence it has no
inverse
cond(A)=
Example
• For the following matrix, determine
a. The Singular value decomposition of Matrix A
b. From the decomposed values confirm the relation A =
USV’
c. The economy singular value decomposition of A
Noise reduction
• The SVD has also applications in digital signal processing,
e.g., as a method for noise reduction.
• The central idea is to let a matrix A represent the noisy
signal, compute the SVD, and then discard small singular
values of A.
• It can be shown that the small singular values mainly
represent the noise, and thus the rank-k matrix Ak
represents a filtered signal with less noise.

More Related Content

Similar to Digital image processing fundamental explanation

chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdfchapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdfSomeone413715
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.YogeshRotela
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation pptKNaveenKumarECE
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lecturesTaymoor Nazmy
 
digital image processing chapter two, fundamentals
digital image processing chapter two, fundamentalsdigital image processing chapter two, fundamentals
digital image processing chapter two, fundamentalsKNaveenKumarECE
 
Digital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptDigital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptMrsSDivyaBME
 
2 digital image fundamentals
2 digital image fundamentals2 digital image fundamentals
2 digital image fundamentalsBHAGYAPRASADBUGGE
 
Chapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptxChapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptxKokebe2
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image ProcessingIsrael Gbati
 
Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxRohanBorgalli
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).pptNoorUlHaq47
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptAVUDAI1
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.pptDEEPUKUMARR
 
Digital Image Procesing
Digital Image ProcesingDigital Image Procesing
Digital Image Procesingvepiga5005
 

Similar to Digital image processing fundamental explanation (20)

chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdfchapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.chap2.ppt is the presentation of image of eye.
chap2.ppt is the presentation of image of eye.
 
quantization and sampling presentation ppt
quantization and sampling presentation pptquantization and sampling presentation ppt
quantization and sampling presentation ppt
 
Dip mcq1
Dip mcq1Dip mcq1
Dip mcq1
 
Lecture4.ppt
Lecture4.pptLecture4.ppt
Lecture4.ppt
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lectures
 
digital image processing chapter two, fundamentals
digital image processing chapter two, fundamentalsdigital image processing chapter two, fundamentals
digital image processing chapter two, fundamentals
 
chap2.ppt
chap2.pptchap2.ppt
chap2.ppt
 
Digital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptDigital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.ppt
 
2 digital image fundamentals
2 digital image fundamentals2 digital image fundamentals
2 digital image fundamentals
 
Chapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptxChapter 3 - Part 1 [Autosaved].pptx
Chapter 3 - Part 1 [Autosaved].pptx
 
Introduction to Image Processing
Introduction to Image ProcessingIntroduction to Image Processing
Introduction to Image Processing
 
Dimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptxDimension Reduction Introduction & PCA.pptx
Dimension Reduction Introduction & PCA.pptx
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
ImageSegmentation (1).ppt
ImageSegmentation (1).pptImageSegmentation (1).ppt
ImageSegmentation (1).ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
ImageSegmentation.ppt
ImageSegmentation.pptImageSegmentation.ppt
ImageSegmentation.ppt
 
Digital Image Procesing
Digital Image ProcesingDigital Image Procesing
Digital Image Procesing
 
Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
 

More from Tirusew1

DNA PCR2 minituarizatinon altemechanismration
DNA PCR2 minituarizatinon altemechanismrationDNA PCR2 minituarizatinon altemechanismration
DNA PCR2 minituarizatinon altemechanismrationTirusew1
 
biofluid mechanics full chapter presentation
biofluid mechanics full chapter presentationbiofluid mechanics full chapter presentation
biofluid mechanics full chapter presentationTirusew1
 
chapter-two ppt for digital image enhancement
chapter-two ppt for digital image enhancementchapter-two ppt for digital image enhancement
chapter-two ppt for digital image enhancementTirusew1
 
biomedical image processing analysis ppt
biomedical image processing analysis pptbiomedical image processing analysis ppt
biomedical image processing analysis pptTirusew1
 
intermiate equipments(1).ppt
intermiate equipments(1).pptintermiate equipments(1).ppt
intermiate equipments(1).pptTirusew1
 
basic ELECtronics(2).ppt
basic ELECtronics(2).pptbasic ELECtronics(2).ppt
basic ELECtronics(2).pptTirusew1
 
Chapter 6 Fluorescence Microscopy.ppt
Chapter 6 Fluorescence Microscopy.pptChapter 6 Fluorescence Microscopy.ppt
Chapter 6 Fluorescence Microscopy.pptTirusew1
 
Engineering and medical ethics.ppt
Engineering and medical ethics.pptEngineering and medical ethics.ppt
Engineering and medical ethics.pptTirusew1
 
Chapter 2S1.pptx
Chapter 2S1.pptxChapter 2S1.pptx
Chapter 2S1.pptxTirusew1
 
Chapter 2S2.pptx
Chapter 2S2.pptxChapter 2S2.pptx
Chapter 2S2.pptxTirusew1
 
UOG_BME_Curriculum_(Autosaved).pdf
UOG_BME_Curriculum_(Autosaved).pdfUOG_BME_Curriculum_(Autosaved).pdf
UOG_BME_Curriculum_(Autosaved).pdfTirusew1
 
2015.09 ATTF 1186C Incubator (Paulo).pdf
2015.09 ATTF 1186C Incubator (Paulo).pdf2015.09 ATTF 1186C Incubator (Paulo).pdf
2015.09 ATTF 1186C Incubator (Paulo).pdfTirusew1
 
BIS CHAPTER ONE.pptx
BIS CHAPTER ONE.pptxBIS CHAPTER ONE.pptx
BIS CHAPTER ONE.pptxTirusew1
 
All document for BIO-II course.pptx
All document for BIO-II course.pptxAll document for BIO-II course.pptx
All document for BIO-II course.pptxTirusew1
 
anesthesia machine.pptx
anesthesia machine.pptxanesthesia machine.pptx
anesthesia machine.pptxTirusew1
 
introduction to mechanical ventilator.pptx
introduction to mechanical ventilator.pptxintroduction to mechanical ventilator.pptx
introduction to mechanical ventilator.pptxTirusew1
 
dialysis tetorial ppt.pptx
dialysis tetorial ppt.pptxdialysis tetorial ppt.pptx
dialysis tetorial ppt.pptxTirusew1
 
tiru ppt.ppt
tiru ppt.ppttiru ppt.ppt
tiru ppt.pptTirusew1
 

More from Tirusew1 (18)

DNA PCR2 minituarizatinon altemechanismration
DNA PCR2 minituarizatinon altemechanismrationDNA PCR2 minituarizatinon altemechanismration
DNA PCR2 minituarizatinon altemechanismration
 
biofluid mechanics full chapter presentation
biofluid mechanics full chapter presentationbiofluid mechanics full chapter presentation
biofluid mechanics full chapter presentation
 
chapter-two ppt for digital image enhancement
chapter-two ppt for digital image enhancementchapter-two ppt for digital image enhancement
chapter-two ppt for digital image enhancement
 
biomedical image processing analysis ppt
biomedical image processing analysis pptbiomedical image processing analysis ppt
biomedical image processing analysis ppt
 
intermiate equipments(1).ppt
intermiate equipments(1).pptintermiate equipments(1).ppt
intermiate equipments(1).ppt
 
basic ELECtronics(2).ppt
basic ELECtronics(2).pptbasic ELECtronics(2).ppt
basic ELECtronics(2).ppt
 
Chapter 6 Fluorescence Microscopy.ppt
Chapter 6 Fluorescence Microscopy.pptChapter 6 Fluorescence Microscopy.ppt
Chapter 6 Fluorescence Microscopy.ppt
 
Engineering and medical ethics.ppt
Engineering and medical ethics.pptEngineering and medical ethics.ppt
Engineering and medical ethics.ppt
 
Chapter 2S1.pptx
Chapter 2S1.pptxChapter 2S1.pptx
Chapter 2S1.pptx
 
Chapter 2S2.pptx
Chapter 2S2.pptxChapter 2S2.pptx
Chapter 2S2.pptx
 
UOG_BME_Curriculum_(Autosaved).pdf
UOG_BME_Curriculum_(Autosaved).pdfUOG_BME_Curriculum_(Autosaved).pdf
UOG_BME_Curriculum_(Autosaved).pdf
 
2015.09 ATTF 1186C Incubator (Paulo).pdf
2015.09 ATTF 1186C Incubator (Paulo).pdf2015.09 ATTF 1186C Incubator (Paulo).pdf
2015.09 ATTF 1186C Incubator (Paulo).pdf
 
BIS CHAPTER ONE.pptx
BIS CHAPTER ONE.pptxBIS CHAPTER ONE.pptx
BIS CHAPTER ONE.pptx
 
All document for BIO-II course.pptx
All document for BIO-II course.pptxAll document for BIO-II course.pptx
All document for BIO-II course.pptx
 
anesthesia machine.pptx
anesthesia machine.pptxanesthesia machine.pptx
anesthesia machine.pptx
 
introduction to mechanical ventilator.pptx
introduction to mechanical ventilator.pptxintroduction to mechanical ventilator.pptx
introduction to mechanical ventilator.pptx
 
dialysis tetorial ppt.pptx
dialysis tetorial ppt.pptxdialysis tetorial ppt.pptx
dialysis tetorial ppt.pptx
 
tiru ppt.ppt
tiru ppt.ppttiru ppt.ppt
tiru ppt.ppt
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

Digital image processing fundamental explanation

  • 1. Digital Image Processing and Analysis - I Digital image fundamentals Gizeaddis L. (Ph.D.) Jimma institute of Technology School of Biomedical Engineering
  • 2. Outline • Digital image fundamentals • Concept of image • image formation model, • image sampling and quantization • Basic relationship between pixels • singular value representation of discrete images
  • 3. Concept of image • Image capturing
  • 4. • Image intensity, f(x, y), is proportional to EM energy radiated/received • Required f(x, y) is nonzero and finite • and • Typical values: 0 ≤ 𝑓(𝑥, 𝑦) ≤ ∞ 𝑓(𝑥, 𝑦) = 𝑖(𝑥, 𝑦)𝑟(𝑥, 𝑦) 𝑤ℎ𝑒𝑟𝑒 0 ≤ 𝑖(𝑥, 𝑦) ≤ ∞, incident illumination 0 < r(x,y) < 1, reflected illumination      =        = snow , . , . , , i(x,y) , 93 . 0 paint wall flat white , 8 . 0 material black 01 0 y) r(x, office commercial , lm/m 000 1 night clear moon, full , lm/m 01 0 day cloudy , lm/m 000 10 day sunny clear , lm/m 000 90 2 2 2 2 Concept of image
  • 5. Digital image Representation • A digital image is the representation of a continuous image f(x,y) by a 2-d array of discrete samples. • But the real world is continuous
  • 7. Image sampling and quantization • An image may be continuous with respect to the x- and y- coordinates, and also in amplitude. • When x, y, and the amplitude values are all finite, discrete quantities, we call the image a digital image. • To convert it to digital form, we have to sample the function in both coordinates and in amplitude. • Digitizing the coordinate values is called sampling. • Digitizing the amplitude values is called quantization.
  • 8. Image sampling Continuous image A scan line from A to B in the continuous image To sample this take equally spaced samples along line AB.
  • 9. Image sampling • The set of these discrete locations gives the sampled function • In order to form a digital function, the gray-level values also must be converted (quantized) into discrete quantities.
  • 10. Concepts of sampling and quantization
  • 11. Monochromatic images • Continuous image function f(x,y) • arguments - two co-ordinates (x,y) can have any value • Digital image functions - represented by matrices • co-ordinates = integer numbers • Cartesian (horizontal x axis, vertical y axis) • Monochromatic image function range • lowest value - black • highest value - white • Limited brightness values = grey levels
  • 12. Chromatic images • Represented by vector not scalar • Red, Green, Blue (RGB) • Hue, Saturation, Value (HSV) • Cyan, Magenta, Yellow (CMY) Solid color cube ((28)3 = 16,777,216 colors)
  • 16. • Alternatively, a digital image may be represented as a column or row vector: Gray level images
  • 17. • a digital 8-bit, 8x8 images is shown as an array of numbers on the left and brightness levels on the right. Representation of gray level images
  • 18. Properties that define image format • Pixel (or spatial) resolution (e.g. 640x480 pixels) • Pixel bit-depth (8-bit) • Number of planes (1 for gray scale images, 3 for color) • Color-space (RGB, CMYK etc.)
  • 20. • The number of distinct gray levels is usually a power of 2 that is, 𝑳 = 𝟐𝑩 where B is the number of bits in the binary representation of the brightness levels. • When B>1 we speak of a gray-level image; when B=1 we speak of a binary image. • In a binary image there are just two gray levels which can be referred as “black” and “white” or “0” and “1”. Gray level images
  • 21. Binary and Gray scale images
  • 22. • Smallest discernible change in intensity level 4-bit 6-bit 5-bit 2-bit 3-bit 1-bit 7-bit 8-bit Intensity Resolution
  • 24. Image of size fewer Pixels Mean Lower Spatial Resolution
  • 25. • Image re-sampling or re-sizing operations:- • zooming, shrinking, rotating, and geometric corrections • Uses known image data to estimate at the new locations. • Different methods: ▪ Nearest neighbor interpolation:- assigns the intensity of the nearest neighbor to the new location. Not often used. Image interpolation
  • 26. ▪ Bilinear interpolation: - uses the four nearest neighbors to estimate the intensity at a the new location according to where a, b, c, and d are determined using the four neighbors. 𝑣(𝑥, 𝑦) = 𝑎𝑥 + 𝑏𝑦 + 𝑐𝑥𝑦 + 𝑑 • o • • • 1 • • o o o o o o o o o o o o o o • • • o o o o o o o o o o o o 2 3 4 ? 𝑣(𝑥1, 𝑦1) = 𝑎𝑥1 + 𝑏𝑦1 + 𝑐𝑥1𝑦1 + 𝑑 𝑣(𝑥2, 𝑦2) = 𝑎𝑥2 + 𝑏𝑦2 + 𝑐𝑥2𝑦2 + 𝑑 𝑣(𝑥3, 𝑦3) = 𝑎𝑥3 + 𝑏𝑦3 + 𝑐𝑥3𝑦3 + 𝑑 𝑣(𝑥4, 𝑦4) = 𝑎𝑥4 + 𝑏𝑦4 + 𝑐𝑥4𝑦4 + 𝑑 ⇓ 𝑎, 𝑏, 𝑐, 𝑑 o - new pixel location • - old pixel location Image interpolation
  • 27. ▪ Cubic interpolation: uses the sixteen nearest neighbors to estimate the intensity at a the new location according to where the sixteen coefficients aij are determined using the sixteen equations and in sixteen unknowns using sixteen nearest neighbors. • Note:- The expression for the cubic interpolation (N=3) reduces to the Bilinear interpolation (N =1), i.e., N = 1 for Bilinear N = 3 for Cubic (Adobe Photoshop) 𝑣(𝑥, 𝑦) = ෍ 𝑖=0 3 ෍ 𝑗=0 3 𝑎𝑖𝑗𝑥𝑖 𝑦𝑗 𝑣(𝑥, 𝑦) = ෍ 𝑖=0 𝑁 ෍ 𝑗=0 𝑁 𝑎𝑖𝑗𝑥𝑖𝑦𝑗
  • 28. Basic Relationships Between Pixels • Neighborhood • Adjacency • Connectivity • Paths • Regions and boundaries
  • 29. Basic Relationships Between Pixels • Neighbors of a pixel p at coordinates (x,y) • 4-neighbors of p, denoted by N4(p): (x-1, y), (x+1, y), (x,y-1), and (x, y+1). • 4 diagonal neighbors of p, denoted by ND(p): (x-1, y-1), (x+1, y+1), (x+1,y-1), and (x-1, y+1). • 8 neighbors of p, denoted N8(p) N8(p) = N4(p) U ND(p)
  • 31. 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 N4(p). • 8-adjacency: Two pixels p and q with values from V are 8-adjacent if q is in the set N8(p).
  • 32. 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 N4(p), or (ii) q is in the set ND(p) and the set N4(p) ∩ N4(q) has no pixels whose values are from V.
  • 33. Basic Relationships Between Pixels • Path • A (digital) path (or curve) from pixel p with coordinates (x0, y0) to pixel q with coordinates (xn, yn) is a sequence of distinct pixels with coordinates (x0, y0), (x1, y1), …, (xn, yn) Where (xi, yi) and (xi-1, yi-1) are adjacent for 1 ≤ i ≤ n. • Here n is the length of the path. • If (x0, y0) = (xn, yn), the path is closed path.
  • 34. Basic Relationships Between Pixels • Connected in S • Let S represent a subset of pixels in an image. • Two pixels p with coordinates (x0, y0) and q with coordinates (xn, yn) are said to be connected in S if there exists a path (x0, y0), (x1, y1), …, (xn, yn) Where ∀𝑖, 0 ≤ 𝑖 ≤ 𝑛, (𝑥𝑖, 𝑦𝑖) ∈ 𝑆
  • 35. Basic Relationships Between Pixels Let S represent a subset of pixels in an image • For every pixel p in S, the set of pixels in S that are connected to p is called a connected component of S. • If S has only one connected component, then S is called Connected Set. • We call R a region of the image if R is a connected set • Two regions, Ri and Rj are said to be adjacent if their union forms a connected set. • Regions that are not to be adjacent are said to be disjoint.
  • 36. • Boundary (or border) • The boundary of the 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, then its boundary is defined as the set of pixels in the first and last rows and columns of the image. • Foreground and background • An image contains K disjoint regions, Rk, k = 1, 2, …, K. Let Ru denote the union of all the K regions, and let (Ru)c denote its complement. • All the points in Ru is called foreground; • All the points in (Ru)c is called background. Basic Relationships Between Pixels
  • 37. Distance Measures • Given pixels p, q and z with coordinates (x, y), (s, t), (u, v) respectively, the distance function D has following properties: a. D(p, q) ≥ 0 [D(p, q) = 0, iff p = q] b. D(p, q) = D(q, p) c. D(p, z) ≤ D(p, q) + D(q, z)
  • 38. Distance Measures The following are the different Distance measures: a. Euclidean Distance : De(p, q) = [(x-s)2 + (y-t)2]1/2 b. City Block Distance: D4(p, q) = |x-s| + |y-t| c. Chess Board Distance: D8(p, q) = max(|x-s|, |y-t|)
  • 39. Example • In the following arrangement of pixels, what’s the value of the Euclidian and chessboard distance between the circled two points? 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 40. Singular Value Decomposition (SVD) of representation of images • Any real m x n matrix A can be decomposed uniquely: • U is m x m and column orthonormal (UTU=I) • D is n x n and diagonal • σi are called singular values of A • It is assumed that σ1 ≥ σ2 ≥ … ≥ σn ≥ 0 • V is n x n and orthonormal (VVT=VTV=I)
  • 41. SVD (cont’d) • If m = n, then: • U is n x n and orthonormal (UTU=UUT=I) • D is n x n and diagonal • V is n x n and orthonormal (VVT=VTV=I)
  • 42. SVD (cont’d) • The columns of U are eigenvectors of AAT • The columns of V are eigenvectors of ATA • If λi is an eigenvalue of ATA (or AAT), then λi = σi 2 for square matrices: A=PΛP-1
  • 43. SVD - Example D U = (u1 u2 . . . un) V = (v1 v2 . . . vn)
  • 44. SVD properties • A square (n × n) matrix A is singular iff at least one of its singular values σ1, …, σn is zero. • The rank of matrix A is equal to the number of nonzero singular values σi
  • 45. Matrix “condition” • SVD gives a way of determining how singular A is. • The condition of A measures the degree of singularity of A: (ratio of largest singular value to its smallest singular value) • A singular matrix is a matrix whose determinant is 0 and hence it has no inverse cond(A)=
  • 46. Example • For the following matrix, determine a. The Singular value decomposition of Matrix A b. From the decomposed values confirm the relation A = USV’ c. The economy singular value decomposition of A
  • 47. Noise reduction • The SVD has also applications in digital signal processing, e.g., as a method for noise reduction. • The central idea is to let a matrix A represent the noisy signal, compute the SVD, and then discard small singular values of A. • It can be shown that the small singular values mainly represent the noise, and thus the rank-k matrix Ak represents a filtered signal with less noise.