Connectivity
Connectivity between pixels is an important concept used in
establishing
boundaries of objects. We consider two types of
connectivity:
1) 4-connectivity: two
pixels p and q
are 4-connected if q
is in the set of four neighbors of p
as shown in Fig. 5.3(a).
2) 8-connectivity: two
pixels p and q
are 8-connected if q
is in the set of eight neighbors of p
as shown in Fig. 5.3(b).