An 8-linked pixel path means that all 8 neighbors o around pixel x :
ooo oxo ooo (1)
Count when determining if a pixel is connected. therefore x in
xoo oxo oox (2)
are 8-connected. on the contrary, only 4 of these 4 neighbors look o :
o oxo o (3)
according to this scheme, x in fig. 2 is not considered connected.
(there are no 3-related in computer graphics (what I know))
as said, the definition of a vertical seam:
the vertical seam is an 8-connected pixel path in the image from top to bottom, containing one and only one pixel in each line of the image
it seems to me pretty easy to understand. this is:
x x x
- vertical seam (because there is only one pixel in the line):
x x x
this is; this is:
x xx x
no (because the line has two pixels).
hope this helps.
source share