Segmentation and Clustering p3 - Lecture 10 - Week 4 Flashcards

1
Q

How is an image represented as a graph?

A

Fully-connected graph
- Node (vertex) for every pixel
- Link between every pair of pixels (p,q)
- Affinity weight (cost) wpq for each link (edge)
- wpq measures similarity
- similarity is inversely proportional to difference (in colour and position…)

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

How does graph theoretic segmentation work?

A

graph cuts are made, easiest to break links that have low similarity (low weight)

After making cuts, similar pixels are in the same segments, dissimilar pixels are in different segments

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

How can affinity (similarity) be assigned in graph based segmentation?

A

Distance (spatially)
Intensity
Colour

These functions take a sigma value to change scale

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

What is a graph cut?

A

Set of edges whose removal makes a graph disconnected

A cut has a cost equal to the sum of the weights of the cut edges

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

What techniques can be used to get a good cut for graph theoretic segmentation?

A

Minimum cut
- Efficient algorithms exist for finding them
Not the best because:
- Weight of cut proportional to number of edges in the cut
- Minimum cut tends to cut off very small, isolated components

Normalised Cut (NCut)
- Fix the fact that minimum cut penalises large segments by normalising for size of segments

Finding the globally optimal cut is NP-complete, but a relaxed version can be solved using a generalised eigenvalue problem.

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

Pros and Cons of Normalised Cuts

A

Pros:
- Generic framework, flexible to choice of function that computes weight (“affinities”) between nodes
- Does not require any model of the data distribution

Cons:
- Time and memory complexity can be high
- Dense, highly connected graphs => many affinity computations
- Solving eigenvalue problem

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

How does GrabCut work?

A

User draws a box and gets the subject they select (Basically like snapchat stickers)

  1. Segmentation using graph cuts
    - Requires have foreground model
  2. Foreground-background modelling using unsupervised clustering
    - Requires having segmentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can segmentation efficiency be improved?

A

Problem: Images contain many pixels
- Even with efficient graph cuts

Use superpixels
- Group together similar-looking pixels for efficiency of further processing
- Cheap, local over-segmentation

Several approaches to super pixels but it’s important to ensure that they:
- Do not cross boundaries
- Have similar size
- Have regular shape
- Algorithm has low complexity

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

How can we evaluate segmentation?

A

vs the ground truth, using precision and recall to get the metric F

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

What is Precision P?

A

The percentage of the marked boundary points that are real ones

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

What is Recall R?

A

The percentage of real boundary points that were marked

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

What is F?

A

F = 2PR/(P+R)

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