Digital Image Processing Fundamentals

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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?

  • (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?

  • 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?

<p>When pixel <em>q</em> is among the 4-neighbors of pixel <em>p</em>. (B)</p> Signup and view all the answers

Under what condition are two pixels, p and q, with intensity values from a set V, considered 8-adjacent?

<p>If <em>q</em> is in the set of 8-neighbors of <em>p</em>. (D)</p> Signup and view all the answers

When are two pixels p and q, with values from a set V, considered m-adjacent (mixed adjacent)?

<p><em>q</em> is in <em>N4(p)</em> or (<em>q</em> is in <em>ND(p)</em> and the intersection of <em>N4(p)</em> and <em>N4(q)</em> is empty). (C)</p> Signup and view all the answers

What key advantage does m-connectivity offer over 8-connectivity in image processing?

<p>It eliminates multiple path connections that can occur with 8-connectivity. (D)</p> Signup and view all the answers

In image analysis, under what condition are two pixels p and q considered 'connected'?

<p>If they are adjacent in some sense and their gray levels satisfy a specified criterion of similarity. (D)</p> Signup and view all the answers

What is a 'path' from pixel p to pixel q defined as in the context of digital image processing?

<p>A sequence of distinct, adjacent pixels from <em>p</em> to <em>q</em>. (C)</p> Signup and view all the answers

What determines whether a path between two pixels is considered a 4-path, 8-path, or m-path?

<p>The type of adjacency (4-, 8-, or m-) specified. (C)</p> Signup and view all the answers

In digital image processing, what defines a 'region'?

<p>A set of connected pixels in an image. (A)</p> Signup and view all the answers

What condition must be met for two regions, Ri and Rj, to be considered 'adjacent'?

<p>Their union must form a connected set. (C)</p> Signup and view all the answers

What term describes regions that are not adjacent to each other in an image?

<p>Disjoint (A)</p> Signup and view all the answers

In the context of image processing, what does the 'foreground' of an image refer to?

<p>The union of all disjoint regions, excluding the image border. (D)</p> Signup and view all the answers

How is the 'boundary' of a region R defined in digital image processing?

<p>The set of points that are adjacent to points in the complement of R. (A)</p> Signup and view all the answers

Which statement accurately describes the boundary (border or contour) of a region?

<p>It consists of points adjacent to the region's background. (B)</p> Signup and view all the answers

What does the Euclidean distance between two pixels p and q represent?

<p>The straight-line distance between <em>p</em> and <em>q</em>. (D)</p> Signup and view all the answers

What geometric shape is formed by pixels having a D4 distance (city-block distance) less than or equal to r from a center point?

<p>A diamond. (A)</p> Signup and view all the answers

For pixels with a D4 distance of 1 from a central pixel at (x, y), what relationship do they have to the central pixel?

<p>They are the 4-neighbors of (x, y). (B)</p> Signup and view all the answers

What geometric shape do pixels having a D8 distance (chessboard distance) less than or equal to r from a center point form?

<p>A square. (C)</p> Signup and view all the answers

Pixels surrounding a central pixel (x, y) have a chessboard distance of 1. What are these pixels in relation to the central pixel?

<p>They are the 8-neighbors of (x, y). (B)</p> Signup and view all the answers

Consider two points p and q. What distinguishes the use of Dm (m-adjacency distance) from D4 or D8 distances?

<p>Only Dm considers the intensity values of the pixels along the path. (D)</p> Signup and view all the answers

The D4 and D8 distances are independent of paths between points. What does this imply about their calculation?

<p>They consider only the coordinates of the points. (C)</p> Signup and view all the answers

If p1 is 1, how does this affect the m-adjacency between p and p2?

<p>p and p2 will no longer be m-adjacent. (D)</p> Signup and view all the answers

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?

<p>2 (A)</p> Signup and view all the answers

If p1 is 1, what is the length of the shortest m-path between p and p4?

<p>3 (C)</p> Signup and view all the answers

If both p1 and p3 are 1, what is the length of the shortest m-path between p and p4?

<p>4 (D)</p> Signup and view all the answers

How does the 'city-block distance' differ from the Euclidean distance when measuring distances between pixels?

<p>It only measures horizontal and vertical steps. (D)</p> Signup and view all the answers

How does the 'chessboard-distance' differ from the Euclidean distance when measuring distances between pixels?

<p>It counts the minimum number of moves a king would take on a chessboard to travel between coordinates. (C)</p> Signup and view all the answers

Flashcards

4-Adjacency

Pixels p and q with values from V are 4-adjacent if q is in the set N₄(p).

8-Adjacency

Pixels p and q with values from V are 8-adjacent if q is in the set N₈(p).

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

An important concept used in establishing boundaries of objects & components of regions.

Signup and view all the flashcards

Connected Pixels

Two pixels p and q are connected if they are adjacent or their gray levels satisfy a similarity criterion.

Signup and view all the flashcards

Set V

A set of gray level values used to define the criterion of similarity.

Signup and view all the flashcards

4-Connectivity

Gray-level p, q ∈ V, and q ∈ N4(p).

Signup and view all the flashcards

8-Connectivity

Gray-level p, q ∈ V, and q ∈ N8(p).

Signup and view all the flashcards

Path

A sequence of distinct pixels from p to q, where adjacent pixels in the sequence are adjacent.

Signup and view all the flashcards

Region

A set of pixels in an image where all the pixels are connected.

Signup and view all the flashcards

Boundary

A set of pixels of a region R that have one or more neighbors that are not in R.

Signup and view all the flashcards

Connected Set

A subset of pixels in an image where there exists a path between any two pixels, consisting entirely of pixels in S.

Signup and view all the flashcards

Connected set.

A connected component with only one connected component.

Signup and view all the flashcards

Adjacent regions

They form a connected set when combined.

Signup and view all the flashcards

Disjoint regions

Regions with no common adjacent pixels.

Signup and view all the flashcards

Foreground

Union of disjoint regions in an image.

Signup and view all the flashcards

Background

Complement of the foreground.

Signup and view all the flashcards

Boundary

The border or contour of a region R is the set of points adjacent to points in the complement of R.

Signup and view all the flashcards

Distance measures

General formula used to determine difference between pixels.

Signup and view all the flashcards

Euclidean Distance

√((x-s)² + (y-t)²)

Signup and view all the flashcards

City-block Distance

|x - s| + |y - t|

Signup and view all the flashcards

Chessboard Distance

max(|x - s|, |y - t|)

Signup and view all the flashcards

D4 and D8 distances

Independent of any paths that might exist between the points.

Signup and view all the flashcards

Dm Distance

Defined as the shortest m-path between the points.

Signup and view all the flashcards

4-neighbors of p

A pixel p at coordinates (x, y) has four horizontal and vertical neighbors whose coordinates are given by (x + 1, y), (x1, y), (x, y + 1), (x, y1)

Signup and view all the flashcards

Diagonal neighbors of p

The four diagonal neighbors of p have coordinates (x + 1, y + 1), (x + 1, y1), (x1, y + 1), (x1, y1)

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.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser