Image Segmentation
Image Segmentation
1
Image Segmentation
2
Edges and Regions
3
Regions and Objects
4
• Image with many objects
• Each object consists of several regions
5
Region Segmentation
6
Edge Segmentation
7
Edge Following
8
Edge Following as a Graph Traversal
Problem
9
Graph Traversal
10
Criterion Φ(C)
11
edges first path second path
directions
5 5 5
5 5 5
7 4 7 4
φ=14/3-π/(4*3)
3 5 3 φ=17/3-0 6
1 6 1 promising 7 promising
at 7 at 6
1 6 1 6
φ=22/6-0 φ=33/6-
6 6 2*π/(4*6)
12
Using the maximum cost Φ criterion to find the cell boundaries
in microscope images
a. a stage in the search process
b. the completed boundary
13
Region Segmentation
14
Many Regions
15
(1) Peakiness Detection Algorithm
1. Find the two highest local maxima gi, gj in the
histogram that are at least at distance d apart
d is user defined
2. Find the lowest point gk in the histogram between gi
and gj
3. Peakiness = min{H(gi),H(gj)}/H(gk)
4. Take the combination (gi,gj,gk) with the highest
peakiness
5. Threshold the image at T=gk
6. N thresholds: take the N greater peakinesses (Ti=gki)
16
(2) Iterative Algorithm
1. Compute a threshold T
T: mean gray value of image
2. Partition the image into R1, R2 using T
3. Compute the mean values μ1,μ2 of R1,R2
4. Select a new threshold T=1/2(μ1+μ2)
5. Repeat steps 2-4 until μ1, μ2 do not change
17
(3) Adaptive Thresholding
18
a. original image with
uniform illumination
b. histogram of a
c. simulated uneven
illumination
d. image a with uneven
illumination added
e. histogram of image d
f. thresholding at T=72
failed!!
19
(4) Double Thresholding
20