Lecture 2 - Binary Images Flashcards

1
Q

In a pixel how many grey levels are there?

A

Each pixel represented by one byte
* 256 discrete intensity values can be encoded
* 0 indicates perfect black
* 255 indicates perfect white
* Each value represents a shade of gray, called a grey-level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Binarization?

A

Reduce number of grey levels to two (foreground and background)
 Objects segmented from background
 Textual images or document images
 Much `information’ can be lost by binarization
 Binary images are often simpler to process than grayscale images
 These arguments need to be traded of before choosing between binary and gray scale image processing approaches

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Binary Images usually the result of?

A

Binary images are usually the result of a thresholding process.
 Possible principles for thresholding
* Manual (interactive / trial and error)
* x fraction for black and white and use histogram
* distribution-based (typically: two peaks in histogram; find valleybetween two hills)

REFER TO SLIDES FOR EQUATION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is Thresholding difficult?

A

As you have to consider the value when there are other factors such as illumnation and reflection that can affect it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Otsu Thresholding?

A

The aim is to find a threshold that minimizes the intra-class variance (i.e. minimum variation in the foreground + minimum variation in the background)
 How: Using an Exhaustive search
 Within-class variance = foreground variance + background variance
 Minimizing the within-class variance is the same as maximizing the between-class variance
REFER TO SLIDES FOR EQUATION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Local Thresholding?

A

 Niblack’s method: At each pixel position determine:
* mean 𝜇 in a region of e.g. 15 x 15 pixels
* standard deviation 𝜎 in the same region
* set local threshold to 𝑡 = 𝜇 − 0.2std (standard deviation symbol)
REFER TO SLIDES FOR EQUATIONS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the difference between Local and Global Thresholding methods?

A

 Global Thresholding methods are:
* Fast
* Give good results when illumination over a page is uniform
* Fail when there are local changes in illumination
 Local Thresholding methods are:
* Slow
* Adapt to local changes in illumination
* Perform well for both uniform and non-uniform illumination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Connected Component Analysis?

A

 Scan the image row by row
 When a foreground pixel is encountered, assign it a label:
* If the left neighbour pixel belongs to the background, a new label is assigned to the current foreground pixel
* If the left neighbour pixel belongs to the foreground, its label is copied to the current pixel
 If the upper neighbour pixel belongs to the foreground, merge the label of the current pixel and that of the upper neighbour
REFER TO SLIDES FOR EXAMPLES

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the features of Connected Components?

A

 Shape features
* Area
* Bounding box
* Boundary length
* Compactness
 Features may or may not have invariance properties
* Translation invariance
* Rotation invariance
* Scale invariance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Features of Connected Components – Area

A

 Count number of pixels
 For an arbitrarily fine resolution, the area is translation and rotation invariant.
 Discretization effects may cause considerable variations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Features of Connected Components – Bounding Box

A

The area around a box, the width and length of the image. Typically easy to compute.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Features of Connected Components – Boundary Length

A

 The boundary length (perimeter) is defined as the number of pixels which
constitute the boundary of a shape.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Features of Connected Components – Compactness

A

compactness = area / boundary length^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Morphological Image Processing?

A

 View binary images as 2-dimensional sets
 Basic set-theory concepts you are familiar with: element, subset, union, intersection, disjoint sets, complement, difference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Morphological Image Processing – Additional Basic Concepts

A

Reflection and Translation - REFER TO SLIDES FOR EQUATIONS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Morphological Image Processing – Dilation

A

REFER TO SLIDES FOR EQUATIONS

17
Q

Morphological Image Processing – Erosion

A

REFER TO SLIDES FOR EQUATIONS

18
Q

Morphological Image Processing – Opening

A

REFER TO SLIDES FOR EQUATIONS
 Smoothens outlines
 Breaks narrow bridges, removes protrusions

19
Q

Morphological Image Processing – Closing

A

REFER TO SLIDES FOR EQUATIONS
 Smoothens outlines
 Fuses narrow breaks, eliminates holes, fills gaps in contour

20
Q

Morphological Image Processing – Boundary Extraction

A

REFER TO SLIDES FOR EQUATIONS
 Boundary extraction using morphological operators

21
Q

What is the Distance Transform?

A

Finding the thickness of objects

22
Q

What is the Two-Pass Algorithm - In realtion to Distance Transform

A

Two-Pass Algorithm: The distance transform can be computed by performing a series of local operations while scanning the image twice.
- For any p let B(p) (before) be the set of pixels (4- or 8-) adjacent to p that precede p when scanning in standard order:
- If p has coordinates (x, y), B contains (x, y – 1) and (x – 1, y), and if we use 8- adjacency it also contains (x – 1, y – 1) and (x + 1, y – 1).
- Let A(p) (`after’) be the remaining (4- or 8-) neighbours of p.
REFER TO SLIDES FOR EQUATIONS

23
Q

What is Greyscale Image Analysis?

A

 Generally, we can get more information from a grayscale image
 The bulk of computer vision techniques process grayscale images
 Recall that a grayscale image is a matrix of integers in the range (0-255)

24
Q

What is Images as Surfaces?

A

REFER TO SLIDES FOR EXAMPLES

25
Q

What is the concept of terrain

A

 Uphill / downhill
 Contour lines
 Steepness of slope
 Peaks / valleys (local extrema)
===
In Mathematical Notions
 Tangent plane
 Normal vector
 Curvature
 Gradient vectors (vectors of partial derivatives) will help compute all these
REFER TO SLIDES - 1D and 2D gradients

26
Q

What are 1D and 2D Gradients?

A

REFER TO SLIDES