Lecture 1 Flashcards

1
Q

How are images represented in numpy?

A

3D array: y, x, c

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

What is the advantage and disadvantage of using floats in image representations?

A

Many calculations (colour conversion etc) yield decimal numbers so you don’t lose as much accuracy

However, integer operations are faster

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

What colour space is used in newspaper printing?

A

CMYK

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

What colour space is used in NTSC analogue TV?

A

YIQ

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

What is YIQ?

A

Y channel is greyscale

I and Q channels are two colour differences used to reconstruct RGB from signal

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

What is the difference between a calibrated and uncalibrated representation?

A

Uncalibrated (e.g. RGB, HSV) just use data directly from the camera

Calibrated requires the entire capture system to be properly calibrated (difficult)

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

How do you tell if an image is under-, over- or well-exposed from its histogram?

A

Under: massive peak of pixels towards left

Well: nice distribution of pixels

Over: peak towards right

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

How does opencv represent monochrome images?

A

Just 2d array, no colour channels

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

How does contrast stretching work?

A

Takes the min and max values of the histogram and scales the entire range to have a min of 0 and max of 255

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

What is the formula for contrast stretching?

A

P(x,y) - Pmin

(Vmax - Vmin) ——————- + Vmin

Pmax - Pmin

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

What is the problem with contrast stretching?

How can this be addressed?

A

If there is an outlier pixel, e.g. glint of metal or something, it can throw off the whole thing and actually make things worse

Work in 5% from either end of the histogram and use those as the limits

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

What is histogram equalisation?

A

Non-linear mapping of grey levels to improve low-contrast regions of an image

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

How does histogram equalisation work? (basic)

A

Stretches out regions of similar grey value and compresses regions where few pixels have distinct values

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

What are the steps in histogram equalisation?

A

From the histogram of the image, make a cumulative histogram (each element of h will hold the number of pixels with a value of g or lower)

Scan over the image and use the cumulative histogram as a look-up table.

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

Why is histogram equalisation avoided in serious vision work?

A

The non-linear mapping changes the pixel distribution (shape of histogram) so makes further processing near impossible

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