Relationship between pixels
•Path
•A digital path (or curve) from pixel p with
coordinate (x,y) to pixel q with coordinate (s,t) is
a sequence of distinct pixels with coordinates
(x
0
, y
0
), (x
1
, y
1
), ..., (x
n
, y
n
)
•where (xwhere (x
00 , y , y
0 0 ) = (x,y), (x) = (x,y), (x
nn , y , y
n n )= (s,t))= (s,t)
•(x
i
, y
i
) is adjacent pixel (x
i-1
, y
i -1
) for 1≤j≤n ,
•n- The length of the path.
•If (x
0
, y
0
) = (x
n
, y
n
):the path is closed path.
•We can define 4- ,8- , or m-paths depending on
the type of adjacency specified.