Podcast
Questions and Answers
If a pixel p is located at coordinates (x, y), which of the following coordinates represents one of its 4-neighbors?
If a pixel p is located at coordinates (x, y), which of the following coordinates represents one of its 4-neighbors?
- (x + 1, y + 1)
- (x - 1, y - 1)
- (x - 2, y)
- (x + 1, y) (correct)
Given a pixel p at coordinates (x, y), which set of coordinates correctly identifies its diagonal neighbors?
Given a pixel p at coordinates (x, y), which set of coordinates correctly identifies its diagonal neighbors?
- (x+2, y+2), (x-2, y-2), (x+2, y-2), (x-2, y+2)
- (x+2, y), (x-2, y), (x, y+2), (x, y-2)
- (x+1, y+1), (x-1, y-1), (x+1, y-1), (x-1, y+1) (correct)
- (x+1, y), (x-1, y), (x, y+1), (x, y-1)
If ND(p) represents the diagonal neighbors of pixel p, and N4(p) represents its 4-neighbors, what constitutes the 8-neighbors, N8(p), of pixel p?
If ND(p) represents the diagonal neighbors of pixel p, and N4(p) represents its 4-neighbors, what constitutes the 8-neighbors, N8(p), of pixel p?
- The set of all pixels within a Euclidean distance of 1 from _p_
- The set difference between _ND(p)_ and _N4(p)_
- The intersection of _ND(p)_ and _N4(p)_
- The union of _ND(p)_ and _N4(p)_ (correct)
In a binary image where V = {1}, when are two pixels p and q considered 4-adjacent?
In a binary image where V = {1}, when are two pixels p and q considered 4-adjacent?
Under what condition are two pixels, p and q, with intensity values from a set V, considered 8-adjacent?
Under what condition are two pixels, p and q, with intensity values from a set V, considered 8-adjacent?
When are two pixels p and q, with values from a set V, considered m-adjacent (mixed adjacent)?
When are two pixels p and q, with values from a set V, considered m-adjacent (mixed adjacent)?
What key advantage does m-connectivity offer over 8-connectivity in image processing?
What key advantage does m-connectivity offer over 8-connectivity in image processing?
In image analysis, under what condition are two pixels p and q considered 'connected'?
In image analysis, under what condition are two pixels p and q considered 'connected'?
What is a 'path' from pixel p to pixel q defined as in the context of digital image processing?
What is a 'path' from pixel p to pixel q defined as in the context of digital image processing?
What determines whether a path between two pixels is considered a 4-path, 8-path, or m-path?
What determines whether a path between two pixels is considered a 4-path, 8-path, or m-path?
In digital image processing, what defines a 'region'?
In digital image processing, what defines a 'region'?
What condition must be met for two regions, Ri and Rj, to be considered 'adjacent'?
What condition must be met for two regions, Ri and Rj, to be considered 'adjacent'?
What term describes regions that are not adjacent to each other in an image?
What term describes regions that are not adjacent to each other in an image?
In the context of image processing, what does the 'foreground' of an image refer to?
In the context of image processing, what does the 'foreground' of an image refer to?
How is the 'boundary' of a region R defined in digital image processing?
How is the 'boundary' of a region R defined in digital image processing?
Which statement accurately describes the boundary (border or contour) of a region?
Which statement accurately describes the boundary (border or contour) of a region?
What does the Euclidean distance between two pixels p and q represent?
What does the Euclidean distance between two pixels p and q represent?
What geometric shape is formed by pixels having a D4 distance (city-block distance) less than or equal to r
from a center point?
What geometric shape is formed by pixels having a D4 distance (city-block distance) less than or equal to r
from a center point?
For pixels with a D4 distance of 1 from a central pixel at (x, y), what relationship do they have to the central pixel?
For pixels with a D4 distance of 1 from a central pixel at (x, y), what relationship do they have to the central pixel?
What geometric shape do pixels having a D8 distance (chessboard distance) less than or equal to r
from a center point form?
What geometric shape do pixels having a D8 distance (chessboard distance) less than or equal to r
from a center point form?
Pixels surrounding a central pixel (x, y) have a chessboard distance of 1. What are these pixels in relation to the central pixel?
Pixels surrounding a central pixel (x, y) have a chessboard distance of 1. What are these pixels in relation to the central pixel?
Consider two points p and q. What distinguishes the use of Dm (m-adjacency distance) from D4 or D8 distances?
Consider two points p and q. What distinguishes the use of Dm (m-adjacency distance) from D4 or D8 distances?
The D4 and D8 distances are independent of paths between points. What does this imply about their calculation?
The D4 and D8 distances are independent of paths between points. What does this imply about their calculation?
If p1 is 1, how does this affect the m-adjacency between p and p2?
If p1 is 1, how does this affect the m-adjacency between p and p2?
If p₁ and p₃ are both 0 and pixels valued as 1, what is the length of the shortest m-path (Dm distance) between p and p4?
If p₁ and p₃ are both 0 and pixels valued as 1, what is the length of the shortest m-path (Dm distance) between p and p4?
If p1 is 1, what is the length of the shortest m-path between p and p4?
If p1 is 1, what is the length of the shortest m-path between p and p4?
If both p1 and p3 are 1, what is the length of the shortest m-path between p and p4?
If both p1 and p3 are 1, what is the length of the shortest m-path between p and p4?
How does the 'city-block distance' differ from the Euclidean distance when measuring distances between pixels?
How does the 'city-block distance' differ from the Euclidean distance when measuring distances between pixels?
How does the 'chessboard-distance' differ from the Euclidean distance when measuring distances between pixels?
How does the 'chessboard-distance' differ from the Euclidean distance when measuring distances between pixels?
Flashcards
4-Adjacency
4-Adjacency
Pixels p and q with values from V are 4-adjacent if q is in the set N₄(p).
8-Adjacency
8-Adjacency
Pixels p and q with values from V are 8-adjacent if q is in the set N₈(p).
m-Adjacency
m-Adjacency
Pixels p and q with values from V are m-adjacent if q is in N₄(p), OR q is in N_D(p) and the set N₄(p) ∩ N₄(q) has no pixels with values from V.
Connectivity
Connectivity
Signup and view all the flashcards
Connected Pixels
Connected Pixels
Signup and view all the flashcards
Set V
Set V
Signup and view all the flashcards
4-Connectivity
4-Connectivity
Signup and view all the flashcards
8-Connectivity
8-Connectivity
Signup and view all the flashcards
Path
Path
Signup and view all the flashcards
Region
Region
Signup and view all the flashcards
Boundary
Boundary
Signup and view all the flashcards
Connected Set
Connected Set
Signup and view all the flashcards
Connected set.
Connected set.
Signup and view all the flashcards
Adjacent regions
Adjacent regions
Signup and view all the flashcards
Disjoint regions
Disjoint regions
Signup and view all the flashcards
Foreground
Foreground
Signup and view all the flashcards
Background
Background
Signup and view all the flashcards
Boundary
Boundary
Signup and view all the flashcards
Distance measures
Distance measures
Signup and view all the flashcards
Euclidean Distance
Euclidean Distance
Signup and view all the flashcards
City-block Distance
City-block Distance
Signup and view all the flashcards
Chessboard Distance
Chessboard Distance
Signup and view all the flashcards
D4 and D8 distances
D4 and D8 distances
Signup and view all the flashcards
Dm Distance
Dm Distance
Signup and view all the flashcards
4-neighbors of p
4-neighbors of p
Signup and view all the flashcards
Diagonal neighbors of p
Diagonal neighbors of p
Signup and view all the flashcards
Study Notes
Digital Image Processing Fundamentals
- Digital image processing is covered in lecture 4 by Dr. Imran Usman.
Representing Images
- An image can be plotted as a surface.
- An image can be displayed as a visual intensity array.
- An image is shown as a 2-D numerical array.
- In the array, 0 represents black, 0.5 represents gray, and 1 represents white.
Neighbors of a Pixel
- A pixel p at coordinates (x, y) has four horizontal and vertical neighbors.
- The coordinates of these neighbors are given by (x + 1, y), (x - 1, y), (x, y + 1), and (x, y - 1).
- The set of these four pixels is called the 4-neighbors of p, denoted by N₄(p).
- Each pixel in N₄(p) is a unit distance from (x, y).
- Some neighbors of p may lie outside the digital image if (x, y) is on the border of the image.
- The four diagonal neighbors of p have coordinates (x + 1, y + 1), (x + 1, y - 1), (x - 1, y + 1), and (x - 1, y - 1).
- The four diagonal neighbors are denoted by ND(p).
- These points, together with the 4-neighbors, are called the 8-neighbors of p, denoted by N₈(p).
- Some points in ND(p) and N₈(p) may fall outside the image if (x, y) is on the border.
Adjacency
- V is the set of intensity values to define adjacency.
- In a binary image, V = {1} if referring to adjacency of pixels with value = 1.
- In grayscale images, V could be any subset of 256 values.
- Adjacencies can be one of three types: 4-adjacency, 8-adjacency, or m-adjacency (mixed adjacency).
- Two pixels p and q with values from V are 4-adjacent if q is in the set N₄(p).
- Two pixels p and q with values from V are 8-adjacent if q is in the set N₈(p).
- Two pixels p and q with values from V are m-adjacent if q is in N₄(p), or q is in ND(p) and set N₄(p) ∩ N₄(q) has no pixels whose values are from V.
Connectivity Between Pixels
- An important concept used in establishing boundaries of objects and components of regions.
- Two pixels p and q are connected if they are adjacent in some sense or if their gray levels satisfy a specified criterion of similarity.
- V is the set of gray level values used to define the criterion of similarity.
- 4-connectivity exists if gray-level p, q ∈ V, and q ∈ N4(p).
- 8-connectivity exists if gray-level p, q ∈ V, and q ∈ N8(p).
- m-connectivity (mixed connectivity) exists if gray-level p, q ∈ V, and q satisfies one of the following: q ∈ N4(p), or q ∈ ND(p) and N4(p) ∩ N4(q) has no values from V.
- Mixed connectivity can eliminate the multiple path connections that often occur in 8-connectivity.
Neighbors of a Pixel: Binary Image Example
- A binary image example with two connected components is based on 4-connectivity.
- If the connectivity were based on 8-neighbors, the two connected components would merge into one.
Path
- Coordinates of pixel p are (x, y) and of pixel q are (s, t).
- A path from p to q is a sequence of distinct pixels with coordinates (x₀, y₀), (x₁, y₁), ..., (xₙ, yₙ).
- (x₀, y₀) = (x, y) & (xₙ, yₙ) = (s, t)
- (xᵢ, yᵢ) is adjacent to (xᵢ-₁, yᵢ-₁) where 1 ≤ i ≤ n.
- A set of pixels in an image where all component pixels are connected.
- A boundary of a region is a set of pixels of a region R that have one or more neighbors that are not in R.
- The type of adjacency specifies 4-, 8-, or m-paths.
Connected Set
- S represents a subset of pixels in an image.
- Two pixels p and q are said to be connected in S if a path exists between them consisting entirely of pixels in S.
- For any pixel p in S, the set of pixels connected to it in S is called a connected component of S.
- If S has only one connected component, then S is called a connected set.
Region
- R is a subset of pixels in an image, defined as a region if it is a connected set.
- Two regions Ri and Rj are adjacent if their union forms a connected set.
- Regions that are not adjacent are said to be disjoint.
- When referring to regions, 4- and 8-adjacency are considered.
Foreground and Background
- An image contains K disjoint regions, Rk, where k = 1, 2, 3, ..., K, none of which touch the image border.
- Ru denotes the union of all the K regions, and Ruᶜ denotes its complement.
- All the points in Ru are called the foreground, while all points in Ruᶜ are called the background of the image.
Boundary
- The boundary (border or contour) of a region R is the set of points adjacent to points in the complement of R.
- The border of a region is the set of pixels in the region that have at least one background neighbor.
- The connectivity being used to define adjacency must be specified.
Distance Measures
- For pixels p, q, and z, with coordinates (x, y), (s, t), and (v, w) the following are true regarding D as a distance function or metric: D(p, q) ≥ 0, D(p, q) = 0 if and only if p = q, D(p, q) = D(q, p), and D(p, z) ≤ D(p, q) + D(q, z).
Euclidean Distance
- The Euclidean distance between p and q is defined as De(p, q) = √((x - s)² + (y - t)²).
- Pixels having a distance less than or equal to some value r from (x, y) are in a disk of radius r centered at (x, y)
City-Block Distance
- (D4 distance) between p and q is defined as D4(p, q) = |x - s| + |y - t|.
- Pixels having a D4 distance from (x, y) less than or equal to some value r form a diamond centered at (x, y).
- Pixels with D4 distance ≤ 2 from (x, y) form contours of constant distance.
- Pixels with D4 = 1 are the 4-neighbors of (x, y)
Chessboard Distance
- (D8 distance) between p and q is defined as D8(p, q) = max(|x - s|, |y - t|).
- Pixels with D8 distance from (x, y) less than or equal to some value r form a square centered at (x, y).
- Pixels with D8 distance ≤ 2 from (x, y) form contours of constant distance.
- Pixels with D8 = 1 are the 8-neighbors of (x, y).
- The D4 and D8 distances between p and q are independent of any paths because these distances involve only the coordinates of the points.
- The Dm distance between two points is defined as the shortest m-path between the points when considering m-adjacency.
- The distance between two pixels depends on the values of the pixels along the path and their neighbors.
Quiz Questions
- Differentiate between image enhancement and image restoration, providing suitable everyday applications.
- Outline the basic procedure for ultrasound image formation.
- Explain and highlight key application areas for reflection imaging, absorption imaging, and emission imaging encompassing the EM Spectrum.
- Describe brightness discrimination about Weber ratio and why a large value of ΔI/I means poor brightness discrimination.
- Refer to the whiteboard for question 5.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.