Segments & Superpixels Flashcards

1
Q

What is segmentation, and how does the method work?

A

A method to identify meaningful regions of an image and pull certain parts of interest out of the surrounding details.
Partition or group pixels according to local image properties:
Intensity or colour from original images, or computed values based on image operators
Textures or patterns that are unique to each type of region
Spectral profiles that provide multidimensional image data

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

What are the three types of segmentation of images?

A

Clustering - seeks groups of similar pixels, with no regard for where they are, views images as uncorrelated data
Region-based - Focus on finding physically connected sets of pixels e.g. region-growing, split and merge
Edge-based - Emphasise the boundaries between regions e.g. watersheds

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

Why was region-based segmentation created, and how does it work?

A

We want smooth regions in the image
Region-growing - start with a small ‘seed’ and expand by adding similar pixels
Split and merge:
Splitting divides regions that are inconsistent
Merging combines adjacent regions that are consistent

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

How does Region-growing work?

A

Starts with a small patch of seed pixels
Compute statistics about the region
Check neighbours to see if they can be added
Recompute the statistics
This procedure repeats until the region stops growing
Example - compute the mean grey level of the pixels in the region, and neighbours are added if their grey level is near the average

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

How does splitting work in Split and Merge?

A

Take the whole image to be one region
Compute some measure of similarity, and if this indicates that there is too much variety, then divide the region
Repeat this until no more splits, or we reach a minimum region size
Some details are needed however, such as standard deviations to measure similarity, or using thresholding to determine whether to split or not

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

What are Quadtrees?

A

Quadtrees are sort of like parse trees, in the sense that the root node is the entire picture, and anything chaining off of it is a quarter of the original image. This can then be split further by adding more leaf nodes, which means that that quarter of the image is yet again split into 4 quarters, each leaf node representing a section of it.

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

What does splitting give us when using Split and Merge?

A

Splitting gives us:
Regions that are small, consistent, or both
Rather too many regions, as adjacent ones may be very similar

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

Why should we use merging of regions in Split and Merge?

A

Leads to less regularly shaped regions, but they are larger and more consistent

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

How does merging work in Split and Merge?

A

Merge two regions if they are adjacent and similar
Need a measure of similarity - can compare their mean grey level, or use statistical tests
Repeat the merging until you can merge no more

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

How does the watershed method work?

A

Start by finding the image gradient, using methods like the Sobel operators, to get a value for the gradient magnitude.
Slowly ‘flood the terrain’ (terrain being image here). Flat areas of the image become areas of low gradient, whereas edges in the image have high gradient, and thus ‘split the water’.

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

How does the watershed algorithm work? (formal speak)

A

Sort the pixels - low to high
For each pixel:
If it’s neighbours are all unlabelled, give it a new label
If it has neighbours with a single label, it therefore gets that label
If it has neighbours with two or more labels, it is a watershed

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

What is a problem with the watershed algorithm?

A

It is sensitive to noise and so can generate lots of small regions

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

What is the efficiency of the watershed algorithm?

A

It is possible to implement it in O(n) time, where n is the number of pixels
This is as good as it can get, however the complexity can get to O(n log n) depending on how sorting of pixels is implemented (not sorting in linear time causes this issue)

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

How can you sort in linear time?

A

If you have a situation, whereby a large number of values exist, and those values are drawn from a small set of possibilities, you can sort in linear time with a bin

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

What is bin sort?

A

Make a bin (a list, queue, or stack) for each possible item and then, for each item:
Put it in the appropriate bin

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

What can help the watershed algorithm to produce better results?

A

Modifying the basic algorithm to avoid the effects of noise
Quantise the gradient to remove small variations
And set a threshold limit for the ‘water level’, so that no more new segments are introduced as the water rises

17
Q

How does Simple Linear Iterative Clustering work?

A

Initialise cluster centres on pixel grid in steps S:
Image has N pixels, you want K superpixels
Each superpixel is roughly a square area of roughly N/K pixels
Each superpixel is roughly the square root of (N/K) by square root of (N/K)
S = square root (N/K)
Move centres to the position in a 3x3 window with the smallest intensity (or colour) gradient:
Move centres away from edges, onto flattest area possible
Only a small move, there are still initial positions
Compare each pixel to all cluster centres within 2S pixels and assign it to the best matching centre - best matching is nearby and similar in colour
Recompute cluster centres as mean colour and position of the pixels belonging to each cluster
Repeat 3 and 4 until total change made to position and colour of centres is below a threshold, or for a fixed number of iterations

18
Q

What are some benefits of using SLIC? (Simple Linear Iterative Clustering)

A

High-quality, compact, nearly uniform superpixels
Simple, efficient algorithm based on K-means
Only parameter is number of superpixels required

19
Q

What does SLIC evaluation contain?

A

Similarity of pixels in superpixels vs variation of values between adjacent superpixels
Proportion of object boundaries marked by a superpixel boundary