SlideShare a Scribd company logo
1 of 29
Download to read offline
Chapter-4
PART-2
Basic Pixel Relationships
Connectivity
• Two pixels are connected if:
• They are neighbors (i.e. adjacent in some sense -- e.g. N4(p), N8(p), …)
• Their gray levels satisfy a specified criterion of similarity (e.g. equality, …)
• V is the set of gray-level values used to define adjacency (e.g. V={1}
for adjacency of pixels of value 1)
Adjacency
• We consider three types of adjacency:
• V is the set of gray-level values used to define adjacency (e.g. V={1}
for adjacency of pixels of value 1)( the matrix considered for binary
image so it has 0 and 1)
• 4-adjacency: two pixels p and q with values from V are 4-adjacent if q is in the
set N4(p)
• 8-adjacency : p & q are 8- adjacent if q is in the set N8(p)
1
0
0
0
1
0
1
1
0
1
0
0
0
1
0
1
1
0
4-Adjacency 8-Adjacency
p
q
Adjacency
• The third type of adjacency:
• m-adjacency: p & q with values from V are m-adjacent if
• q should be in N4(p) or
• q should be in ND(p) and the set N4(p)N4(q) has no pixels with values from V
1
0
0
0
1
0
1
1
0
m-Adjacency
Adjacency
• Mixed adjacency is a modification of 8-adjacency and is used to
eliminate the multiple path connections that often arise when 8-
adjacency is used.
1
0
0
0
1
0
1
1
0
1
0
0
0
1
0
1
1
0
4-Adjacency 8-Adjacency m-Adjacency
1
0
0
0
1
0
1
1
0
Digital path
• Line connecting the pixel is called digital path
1
0
0
0
1
0
1
1
0
Digital path
Connectivity
• For any pixel p and q in in a set of pixels ,S(subset of pixels) , the set of
pixels in S that are connected to p and q through digital path is called
connectivity.
• If S has only one connected component then S is called a connected
set.
Digital path
• Connectivity in a subset S of an image
• – Two pixels are connected if there is a path between them that lies
completely within S
• Connected Component
• – The set of all pixels in S that are connected to a given pixel
• Connected Set
• – If S has only one connected component
Region
• The connectivity gives rise to another concept of
region (R ).
• Region is nothing but a subset of pixels which are
connected. Or connected set of pixels is called
region.
• Ri and Rj are two joint sets and they are adjacent
to each other. They are connected by 8-
adjacency marked(both diagonals are 1) in red
(fig-1). The joint set gives rise to back ground of
image.
• Ri and Rj are not connected marked in red arrow
(as there is 0 and 1 in diagonal )are called the
disjoint sets, This disjoint sets gives rise to fore
ground of image.
1
0
0
0
1
0
1
1
0
1
0
0
0
1
0
1
1
0
Ri
Rj
Boundary
• It is defined as that the boundary will be having at least one set of
pixels from back ground of the image or edge.
• Edge can be the region boundary (in binary images)
• Its boundary (border, contour) is the set of pixels in R that have at
least one neighbor not in R.
Back ground
Foreground
Edge boundary
• If a region corresponds to the whole image, 1st and last rows &
columns are treated as boundary
• Difference
• – Edges Intensity Discontinuities
• – Boundaries Closed Path
Distance Measures
• For pixels p,q,z with coordinates (x,y), (s,t), (u,v), D is a distance
function or metric if the three conditions satisfies:
• D(p,q) ≥ 0 [D(p,q)=0 iff p=q( if p and q are located at same position)]
• D(p,q) = D(q,p) (if distance between p and q are equal) and
• D(p,z) ≤ D(p,q) + D(q,z)
Distance Measures
• Euclidean distance:
• De(p,q) = [(x-s)2 + (y-t)2]1/2
• Points (pixels) having a distance less than or equal to r from (x,y) are
contained in a disk of radius r centered at (x,y).
Distance Measures
• D4 distance (city-block distance):
• D4(p,q) = |x-s| + |y-t|
• forms a diamond centered at (x,y)
• e.g. pixels with D4≤2 from p
2
2
1
2
2
1
0
1
2
2
1
2
2
D4 = 1 are the 4-neighbors of p
Distance Measures
• D8 distance (chessboard distance): ( Like a king moves 8-ways in chess
board)
• D8(p,q) = max(|x-s|,|y-t|)
• Forms a square centered at p
• e.g. pixels with D8≤2 from p
2
2
2
2
2
2
1
1
1
2
2
1
0
1
2
2
1
1
1
2
2
2
2
2
2
D8 = 1 are the 8-neighbors of p
Distance Measures
• D4 and D8 distances between p and q are independent of any paths
that exist between the points because these distances involve only
the coordinates of the points (regardless of whether a connected path
exists between them).
Distance Measures
• However, for m-connectivity the value of the distance (length of path)
between two pixels depends on the values of the pixels along the
path and those of their neighbors.
Interpolation
• Required in image resizing such as shrinking
and zooming
• Using known data to estimate data at
unknown points
Morphing
Images
Image formation
Electromagnetic (EM) energy spectrum
Weeks 1 & 2
Major uses
Gamma-ray imaging: nuclear medicine and astronomical observations
X-rays: medical diagnostics, industry, and astronomy, etc.
Ultraviolet: lithography, 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
First photograph
• First photograph due to Niepce,
• First on record shown - 1822
• Basic abstraction is the pinhole camera
• First successful commercial
photograph due to Eastman in late
19th
First digital picture
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf

More Related Content

Similar to chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf

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
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithms
Aakash deep Singhal
 

Similar to chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf (20)

Image_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.pptImage_Processing-ch2surface r_part_2.ppt
Image_Processing-ch2surface r_part_2.ppt
 
Digital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.pptDigital Image Fundamentals 1.ppt
Digital Image Fundamentals 1.ppt
 
chap2.ppt
chap2.pptchap2.ppt
chap2.ppt
 
Ip unit 1
Ip unit 1Ip unit 1
Ip unit 1
 
Pixel relationships
Pixel relationshipsPixel relationships
Pixel relationships
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
pixelrelationships-m-1.pptx.ppt
pixelrelationships-m-1.pptx.pptpixelrelationships-m-1.pptx.ppt
pixelrelationships-m-1.pptx.ppt
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
 
Basics of pixel neighbor.
Basics of pixel neighbor.Basics of pixel neighbor.
Basics of pixel neighbor.
 
digTop.ppt
digTop.pptdigTop.ppt
digTop.ppt
 
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.
 
8150.graphs
8150.graphs8150.graphs
8150.graphs
 
10.graph
10.graph10.graph
10.graph
 
2 digital image fundamentals
2 digital image fundamentals2 digital image fundamentals
2 digital image fundamentals
 
Mathematical tools in dip
Mathematical tools in dipMathematical tools in dip
Mathematical tools in dip
 
Chapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel RelationChapter 2 Image Processing: Pixel Relation
Chapter 2 Image Processing: Pixel Relation
 
Lecture 14 data structures and algorithms
Lecture 14 data structures and algorithmsLecture 14 data structures and algorithms
Lecture 14 data structures and algorithms
 
The Digital Image Processing Q@A
The Digital Image Processing Q@AThe Digital Image Processing Q@A
The Digital Image Processing Q@A
 
ALG5.1.ppt
ALG5.1.pptALG5.1.ppt
ALG5.1.ppt
 
lecture11.ppt
lecture11.pptlecture11.ppt
lecture11.ppt
 

Recently uploaded

electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
benjamincojr
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 

Recently uploaded (20)

Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Adsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) pptAdsorption (mass transfer operations 2) ppt
Adsorption (mass transfer operations 2) ppt
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 

chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf

  • 3. Connectivity • Two pixels are connected if: • They are neighbors (i.e. adjacent in some sense -- e.g. N4(p), N8(p), …) • Their gray levels satisfy a specified criterion of similarity (e.g. equality, …) • V is the set of gray-level values used to define adjacency (e.g. V={1} for adjacency of pixels of value 1)
  • 4. Adjacency • We consider three types of adjacency: • V is the set of gray-level values used to define adjacency (e.g. V={1} for adjacency of pixels of value 1)( the matrix considered for binary image so it has 0 and 1) • 4-adjacency: two pixels p and q with values from V are 4-adjacent if q is in the set N4(p) • 8-adjacency : p & q are 8- adjacent if q is in the set N8(p) 1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 0 4-Adjacency 8-Adjacency p q
  • 5. Adjacency • The third type of adjacency: • m-adjacency: p & q with values from V are m-adjacent if • q should be in N4(p) or • q should be in ND(p) and the set N4(p)N4(q) has no pixels with values from V 1 0 0 0 1 0 1 1 0 m-Adjacency
  • 6. Adjacency • Mixed adjacency is a modification of 8-adjacency and is used to eliminate the multiple path connections that often arise when 8- adjacency is used. 1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 0 4-Adjacency 8-Adjacency m-Adjacency 1 0 0 0 1 0 1 1 0
  • 7. Digital path • Line connecting the pixel is called digital path 1 0 0 0 1 0 1 1 0 Digital path
  • 8. Connectivity • For any pixel p and q in in a set of pixels ,S(subset of pixels) , the set of pixels in S that are connected to p and q through digital path is called connectivity. • If S has only one connected component then S is called a connected set. Digital path
  • 9. • Connectivity in a subset S of an image • – Two pixels are connected if there is a path between them that lies completely within S • Connected Component • – The set of all pixels in S that are connected to a given pixel • Connected Set • – If S has only one connected component
  • 10. Region • The connectivity gives rise to another concept of region (R ). • Region is nothing but a subset of pixels which are connected. Or connected set of pixels is called region. • Ri and Rj are two joint sets and they are adjacent to each other. They are connected by 8- adjacency marked(both diagonals are 1) in red (fig-1). The joint set gives rise to back ground of image. • Ri and Rj are not connected marked in red arrow (as there is 0 and 1 in diagonal )are called the disjoint sets, This disjoint sets gives rise to fore ground of image. 1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 0 Ri Rj
  • 11. Boundary • It is defined as that the boundary will be having at least one set of pixels from back ground of the image or edge. • Edge can be the region boundary (in binary images) • Its boundary (border, contour) is the set of pixels in R that have at least one neighbor not in R. Back ground Foreground Edge boundary
  • 12.
  • 13. • If a region corresponds to the whole image, 1st and last rows & columns are treated as boundary • Difference • – Edges Intensity Discontinuities • – Boundaries Closed Path
  • 14. Distance Measures • For pixels p,q,z with coordinates (x,y), (s,t), (u,v), D is a distance function or metric if the three conditions satisfies: • D(p,q) ≥ 0 [D(p,q)=0 iff p=q( if p and q are located at same position)] • D(p,q) = D(q,p) (if distance between p and q are equal) and • D(p,z) ≤ D(p,q) + D(q,z)
  • 15. Distance Measures • Euclidean distance: • De(p,q) = [(x-s)2 + (y-t)2]1/2 • Points (pixels) having a distance less than or equal to r from (x,y) are contained in a disk of radius r centered at (x,y).
  • 16. Distance Measures • D4 distance (city-block distance): • D4(p,q) = |x-s| + |y-t| • forms a diamond centered at (x,y) • e.g. pixels with D4≤2 from p 2 2 1 2 2 1 0 1 2 2 1 2 2 D4 = 1 are the 4-neighbors of p
  • 17. Distance Measures • D8 distance (chessboard distance): ( Like a king moves 8-ways in chess board) • D8(p,q) = max(|x-s|,|y-t|) • Forms a square centered at p • e.g. pixels with D8≤2 from p 2 2 2 2 2 2 1 1 1 2 2 1 0 1 2 2 1 1 1 2 2 2 2 2 2 D8 = 1 are the 8-neighbors of p
  • 18. Distance Measures • D4 and D8 distances between p and q are independent of any paths that exist between the points because these distances involve only the coordinates of the points (regardless of whether a connected path exists between them).
  • 19. Distance Measures • However, for m-connectivity the value of the distance (length of path) between two pixels depends on the values of the pixels along the path and those of their neighbors.
  • 20. Interpolation • Required in image resizing such as shrinking and zooming • Using known data to estimate data at unknown points
  • 21.
  • 25.
  • 26. Electromagnetic (EM) energy spectrum Weeks 1 & 2 Major uses Gamma-ray imaging: nuclear medicine and astronomical observations X-rays: medical diagnostics, industry, and astronomy, etc. Ultraviolet: lithography, 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
  • 27. First photograph • First photograph due to Niepce, • First on record shown - 1822 • Basic abstraction is the pinhole camera • First successful commercial photograph due to Eastman in late 19th