Problems (Part 2) - Some Basic Relationships Between Pixels
Problems (Part 2) - Some Basic Relationships Between Pixels
COMPUTER GRAPHICS
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
2
(a) V = {0,1}
3 1 2 1 (q)
0 2 0 2
stuck stuck
1 2 1 1
(p) 1 0 1 2
3
(a) V = {0,1}
A 4-path from pixel p with coordinates (3, 0) to pixel
q with coordinates (0,3) does not exist as it is not
possible to determine a sequence of distinct pixels
with coordinates
(x0, y0), (x1, y1), . . . , (xn, yn)
where (x0, y0) = (3,0), (xn, yn) = (0,3) such that the
pixels (xi, yi) and (xi-1, yi-1) are 4-adjacent for 1 ≤ i ≤
n and that all pixels (xi, yi) have values from V ={0,1}
for 0 ≤ i ≤ n.
4
(a) V = {0,1}
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
5
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
6
(b) V = {1,2}
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
7
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
8
3 1 2 1 (q)
0 2 0 2
1 2 1 1
(p) 1 0 1 2
9