4. Image Processing Flashcards

1
Q

What is point processing?

A

Point processing is an operation that calculates the new value of each pixel g(x,y) based on the value of the pixel in the same position f(x,y) and some arithmetic operation

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

What is the definition of an image histogram? How does it look like? Why is it useful?

A

An image histogram is a plot of the relative frequency of occurrence of each of the permitted pixel values in the image (y) against the values themselves (x)

Bimodal histogram = histogram has two prominent peaks where one peak corresponds to the background pixels and the other peak to the foreground pixel

Two distinctive peaks:

  1. Peak in lower range of brightness = dark background
  2. Peak in higher range of brightness = foreground objects (coins)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does histogram stretching mean? (no formula)

A

Histogram stretching is a point operation when an image has a poor contrast (relevant intensity interval is much smaller than interval [0, 255]) Aka normalization or equalization

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

What does neighbourhood processing mean?

A

In neighborhood processing, the intensity value of each pixel in the output image g(x,y) is determine by the value of the pixel at the same position in the input image f(x,y) together with its neighbors and a neighborhood processing operation

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

What does filtering mean and how does the mean and median filter work?

A

Filtering is a type of neighborhood image processing used to reduce or even remove noise

  • Applies to all pixels in the image, so good pixels might be worsened but noise reduced

A filter is a N x N array (image) with all elements (pixels) equal to 1

  • Mean: averaging the values of the target pixel (0 or 255) and all its neighboring pixels
  • Median: ordering the values of the target pixel and its neighbors in ascending order and assigning the middle value to the target pixel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do kernels work?

A

Used in correlation/convolution as a filter: Kernel is like a magnifying glass that scans over the image f and alters the values of the pixel. When the scan is ready, a new image g of the same size is generated.

  • Filled with kernel coefficients, numbers not necessarily equal to 1; Kernel coefficients are weighting the value of original pixels they are covering
  • types: 3x3 mean filter, Gaussian blur kernel, Sobel horizontal edge kernel
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is convolution (correlation) and how does it work?

A

Correlation or convolution is a neighborhood processing technique that works by applying a filter to each pixel of an image, where the filter is called the kernel.
- Correlation between an input image f and a kernel h results in a new output image g

The kernal scans over the image and alters the values of the pixel so that a new image of the same size is generated.

Template matching (locate a certain object) and Edge detection (image pattern recognition) make use of correlation

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

What is a morphological operation? Give one example

A

Morphology is a branch of image processing which allows for the analysis of shapes in images. It works by applying a kernel, called structuring element(STREL) to each pixel in an input image.

Morphological operators take a binary image and a structuring element as input and combine them using a set operator (intersection, union, inclusion, or complement)

All other morphological operators rely on dilation and erosion, the two most important and primitive operators

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

Where do we need erosion, dilation, closing and opening? (no need to memorise algorithm)

A

Erosion: decreases the binary image’s object in size

  • Center the STREL on each 1 pixel in the image
  • If any neighborhood pixels is 0 then the pixel in question is switched to 0

Dilation: increases the binary image’s object in size

  • Center the STREL on each 0 pixel in the image
  • If any neighborhood pixels is 1 then the pixel in question is switched to 1

Closing: dilation then erosion (using the same structuring element) - To remove small holes and join narrow strips between objects

Opening: erosion then dilation (using the same structuring element) - To remove small, isolated noisy objects while main object preserves original size -Segmentation of objects of the same shape in an image

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

What is a BLOB?

A

A BLOB refers to a group of connected pixels in a binary image called connected components = Binary Large (only objects of a certain size are considered) OBject

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

What is connectivity and what kinds of connectivity do we usually have?

A

Connectivity determines whether or not two pixels are connected by recognizing which pixels are neighbors and which are no

  • Most common types: 4-connectivity and 8-connectivity
    • 8-connectivity is more accurate but 4-connectivity requires less computations (processes image faster)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does connected component labelling mean? What do we get as a result of this labelling?

A

Connected Component Labelling is an algorithm to find BLOBs in an image by searching for connected pixels and assigning a label to each found BLOB. Usually, background is labelled 0, first BLOB is 1, second BLOB is 2, etc. The label can be translated into colour.

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