SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Lecture 4: Pixel Relationships Examples
©2017Eng.Marwa_M_Ahmeid Page 1
1-Consider the image segment shown below.
(a) Let V = {0, 1} and compute D4-, D8- ja Dm-distances between p and q.
(b) Repeat for V = {1, 2}.
a) D4(p, q) = |xp - xq| + |yp - yq| = 3 + 3 = 6
D8(p, q) = max(|xp - xq|, |yp - yq|) = max(3, 3) = 3
Dm(p, q) = 5
b) D4 and D8 are independent of V, so they are the same as in a).
Dm(p, q) = 6
Of course, this is not the only possible path with length 6.
Lecture 4: Pixel Relationships Examples
©2017Eng.Marwa_M_Ahmeid Page 2
2-Consider the two image subsets S1 and S2 shown below. For V = {1}, determine how
many
(a) 4-connected
(b) 8-connected
(c) m-connected
components there are in S1 and S2. Are S1 and S2 adjacent?
Connectivity: “Are there certain pixels in the neigbourhood?”
Adjacency: “Are certain pixels adjacent?”
a) 4-connected components:
S1: 1, S2: 3
b) 8-connected components:
S1: 1, S2: 1
c) M-connected components:
S1: 1, S2: 1
Lecture 4: Pixel Relationships Examples
©2017Eng.Marwa_M_Ahmeid Page 3
The answer is the same as in b), but now there exist only one possible path connecting the pixels.
Adjacency:
a): S1 and S2 are not adjacent, since no pixel of S2 that belong to V is a 4-neighour of any
pixel in S1 that belong to V .
b) and c): In both the cases S1 and S2 are adjacent, thanks to the pixels that have been circled
in the figures.
3.1-Consider the image segment shown.
(a)Let v={0,1} and compute the lengths of the shortest 4-, 8-, and m-path
between p and q. If a particular path does not exist between these two
points, explain why.
(b) Repeat for V = {1,2}
(a) When V = {0,1}, 4-path does not exist between p and q because it is impossible
to get from p to q by traveling along points that are both 4-adjacent and
also have values from V . Figure P2.15(a) shows this condition; it is not possible
to get to q. The shortest 8-path is shown in Fig. P2.15(b); its length is 4. The
length of the shortest m- path (shown dashed) is 5. Both of these shortest paths
are unique in this case.
3.2-Consider the two image subsets S1 and S2 and shown in the following figure. For V={1}
determine whether these two subsets are (a) 4-adjacent, (b) 8-adjacent,
or (c) m-adjacent.
Let p and q be as shown in Fig. P2.11. Then, (a) S1 and S2 are not 4-connected
because q is not in the set N4(p); (b) S1 and S2 are 8-connected because q is in
the set N8(p); (c) S1 and S2 are m-connected because (i) q is in ND(p), and (ii)
the set N4(p) ∩ N4(q) is empty.
Lecture 4: Pixel Relationships Examples
©2017Eng.Marwa_M_Ahmeid Page 4
4- (a)Give the condition(s) under which the D4 distance between two points p
and q is equal to the shortest 4-path between these points.
(b) Is this path unique?
Lecture 4: Pixel Relationships Examples
©2017Eng.Marwa_M_Ahmeid Page 5
5-

More Related Content

What's hot (20)

PPTX
Histogram Processing
Amnaakhaan
 
PDF
Digital Image Fundamentals
Dr. A. B. Shinde
 
DOCX
Digtial Image Processing Q@A
Chung Hua Universit
 
PPTX
Fundamental steps in image processing
PremaPRC211300301103
 
PPTX
Digital Image Processing
lalithambiga kamaraj
 
PPTX
Log Transformation in Image Processing with Example
Mustak Ahmmed
 
PPTX
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
PPTX
Walsh transform
SachinMaithani1
 
PPTX
Homomorphic filtering
Gautam Saxena
 
PPT
Discrete cosine transform
Rashmi Karkra
 
PPTX
Point processing
panupriyaa7
 
PPTX
Chapter 9 morphological image processing
Ahmed Daoud
 
PDF
Digital Image Processing - Image Compression
Mathankumar S
 
PPTX
Image Representation & Descriptors
PundrikPatel
 
PPT
Video display devices
Mohd Arif
 
PDF
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
vijayanand Kandaswamy
 
PDF
Region Splitting and Merging Technique For Image segmentation.
SomitSamanto1
 
PPTX
Flat panel display
SANDEEPKUMARSINGH97
 
PPT
Interpixel redundancy
Naveen Kumar
 
Histogram Processing
Amnaakhaan
 
Digital Image Fundamentals
Dr. A. B. Shinde
 
Digtial Image Processing Q@A
Chung Hua Universit
 
Fundamental steps in image processing
PremaPRC211300301103
 
Digital Image Processing
lalithambiga kamaraj
 
Log Transformation in Image Processing with Example
Mustak Ahmmed
 
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Walsh transform
SachinMaithani1
 
Homomorphic filtering
Gautam Saxena
 
Discrete cosine transform
Rashmi Karkra
 
Point processing
panupriyaa7
 
Chapter 9 morphological image processing
Ahmed Daoud
 
Digital Image Processing - Image Compression
Mathankumar S
 
Image Representation & Descriptors
PundrikPatel
 
Video display devices
Mohd Arif
 
DIGITAL IMAGE PROCESSING - Visual perception - DAY 2
vijayanand Kandaswamy
 
Region Splitting and Merging Technique For Image segmentation.
SomitSamanto1
 
Flat panel display
SANDEEPKUMARSINGH97
 
Interpixel redundancy
Naveen Kumar
 

Similar to Pixel Relationships Examples (20)

PPTX
Pixelrelationships
Harshavardhan Reddy
 
PPTX
pixelrelationships in image processing enhancement
ssuser1ecccc
 
PPTX
pixels arranged in a 2D grid, where each pixel carries intensity or color inf...
DeviPriyaMohan1
 
PPTX
digital image processing pixel relationships.pptx
KantilalRane
 
PPT
pixelrelationships-m-1.pptx.ppt
JayanthHN1
 
PPT
DIP7_Relationships_between_pixels.ppt
akshaya870130
 
PPT
3.ppt
anshharjai
 
PDF
Basic Relationship between pixels and adjacency
Hema474405
 
PPT
Lecture4.ppt
SivaSankar306103
 
PDF
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
Someone413715
 
PPT
Digital image processing for relationship of pixels
Anupama Raina
 
PPT
digTop.ppt
mohammadhaqqi3
 
PDF
Ip unit 1
Dr. Radhey Shyam
 
PPT
Image_Processing-ch2surface r_part_2.ppt
Praveen Kumar
 
PPTX
Image Acquisition and Representation
Amnaakhaan
 
PPT
Relationship between adjacent pixels in an image
mythilybme
 
PDF
Biomedical engineering 20230918-Fundamentals.pdf
LeiLavina
 
PDF
bstract Point processing uses only the information in individual pixels to pr...
NALESVPMEngg
 
PPTX
computer Vision and Machine learning Chapter 1
asnamadathodika
 
PPTX
Topic 1- computer vision and machine learning
asnamadathodika
 
Pixelrelationships
Harshavardhan Reddy
 
pixelrelationships in image processing enhancement
ssuser1ecccc
 
pixels arranged in a 2D grid, where each pixel carries intensity or color inf...
DeviPriyaMohan1
 
digital image processing pixel relationships.pptx
KantilalRane
 
pixelrelationships-m-1.pptx.ppt
JayanthHN1
 
DIP7_Relationships_between_pixels.ppt
akshaya870130
 
3.ppt
anshharjai
 
Basic Relationship between pixels and adjacency
Hema474405
 
Lecture4.ppt
SivaSankar306103
 
chapter_4_1ST_PART_BASIC_RELATION_OF_PIXELSchapter_2_dip_5th_sem.pdf
Someone413715
 
Digital image processing for relationship of pixels
Anupama Raina
 
digTop.ppt
mohammadhaqqi3
 
Ip unit 1
Dr. Radhey Shyam
 
Image_Processing-ch2surface r_part_2.ppt
Praveen Kumar
 
Image Acquisition and Representation
Amnaakhaan
 
Relationship between adjacent pixels in an image
mythilybme
 
Biomedical engineering 20230918-Fundamentals.pdf
LeiLavina
 
bstract Point processing uses only the information in individual pixels to pr...
NALESVPMEngg
 
computer Vision and Machine learning Chapter 1
asnamadathodika
 
Topic 1- computer vision and machine learning
asnamadathodika
 
Ad

Recently uploaded (20)

PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
PPTX
Ground improvement techniques-DEWATERING
DivakarSai4
 
PDF
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
Precedence and Associativity in C prog. language
Mahendra Dheer
 
PPTX
Water resources Engineering GIS KRT.pptx
Krunal Thanki
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PDF
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Basics of Auto Computer Aided Drafting .pptx
Krunal Thanki
 
Ground improvement techniques-DEWATERING
DivakarSai4
 
STUDY OF NOVEL CHANNEL MATERIALS USING III-V COMPOUNDS WITH VARIOUS GATE DIEL...
ijoejnl
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Zero Carbon Building Performance standard
BassemOsman1
 
Precedence and Associativity in C prog. language
Mahendra Dheer
 
Water resources Engineering GIS KRT.pptx
Krunal Thanki
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
Air -Powered Car PPT by ER. SHRESTH SUDHIR KOKNE.pdf
SHRESTHKOKNE
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
Ad

Pixel Relationships Examples

  • 1. Lecture 4: Pixel Relationships Examples ©2017Eng.Marwa_M_Ahmeid Page 1 1-Consider the image segment shown below. (a) Let V = {0, 1} and compute D4-, D8- ja Dm-distances between p and q. (b) Repeat for V = {1, 2}. a) D4(p, q) = |xp - xq| + |yp - yq| = 3 + 3 = 6 D8(p, q) = max(|xp - xq|, |yp - yq|) = max(3, 3) = 3 Dm(p, q) = 5 b) D4 and D8 are independent of V, so they are the same as in a). Dm(p, q) = 6 Of course, this is not the only possible path with length 6.
  • 2. Lecture 4: Pixel Relationships Examples ©2017Eng.Marwa_M_Ahmeid Page 2 2-Consider the two image subsets S1 and S2 shown below. For V = {1}, determine how many (a) 4-connected (b) 8-connected (c) m-connected components there are in S1 and S2. Are S1 and S2 adjacent? Connectivity: “Are there certain pixels in the neigbourhood?” Adjacency: “Are certain pixels adjacent?” a) 4-connected components: S1: 1, S2: 3 b) 8-connected components: S1: 1, S2: 1 c) M-connected components: S1: 1, S2: 1
  • 3. Lecture 4: Pixel Relationships Examples ©2017Eng.Marwa_M_Ahmeid Page 3 The answer is the same as in b), but now there exist only one possible path connecting the pixels. Adjacency: a): S1 and S2 are not adjacent, since no pixel of S2 that belong to V is a 4-neighour of any pixel in S1 that belong to V . b) and c): In both the cases S1 and S2 are adjacent, thanks to the pixels that have been circled in the figures. 3.1-Consider the image segment shown. (a)Let v={0,1} and compute the lengths of the shortest 4-, 8-, and m-path between p and q. If a particular path does not exist between these two points, explain why. (b) Repeat for V = {1,2} (a) When V = {0,1}, 4-path does not exist between p and q because it is impossible to get from p to q by traveling along points that are both 4-adjacent and also have values from V . Figure P2.15(a) shows this condition; it is not possible to get to q. The shortest 8-path is shown in Fig. P2.15(b); its length is 4. The length of the shortest m- path (shown dashed) is 5. Both of these shortest paths are unique in this case. 3.2-Consider the two image subsets S1 and S2 and shown in the following figure. For V={1} determine whether these two subsets are (a) 4-adjacent, (b) 8-adjacent, or (c) m-adjacent. Let p and q be as shown in Fig. P2.11. Then, (a) S1 and S2 are not 4-connected because q is not in the set N4(p); (b) S1 and S2 are 8-connected because q is in the set N8(p); (c) S1 and S2 are m-connected because (i) q is in ND(p), and (ii) the set N4(p) ∩ N4(q) is empty.
  • 4. Lecture 4: Pixel Relationships Examples ©2017Eng.Marwa_M_Ahmeid Page 4 4- (a)Give the condition(s) under which the D4 distance between two points p and q is equal to the shortest 4-path between these points. (b) Is this path unique?
  • 5. Lecture 4: Pixel Relationships Examples ©2017Eng.Marwa_M_Ahmeid Page 5 5-