8-connected path of pixels means that all the 8 neighbors o
around a pixel x
:
ooo
oxo
ooo (1)
count in determining if the pixel is connected. so the x
in
xoo
oxo
oox (2)
are 8-connected. in contrast, 4-connected looks only at these 4 neighbors o
:
o
oxo
o (3)
under this scheme, the x
in fig. 2 would not considered to be connected.
(there is no 3-connected in computer graphics (that i know of))
this being said, the definition of a vertical seam:
a vertical seam is an 8-connected path
of pixels in the image from top to
bottom, containing one, and only one,
pixel in each row of the image
seems quite easy to grasp to me. this:
x
x
x
is a vertical seam (because there is only one pixel per row), also:
x
x
x
this is; this:
x
xx
x
is not (because there are two pixel in row two).
hope that helps.