I am reading the paper about seam carving for resizing an image.
Down on page 3 where they define a seam mathematically, I need help clarifying it.
The paper says that a seam is an 8-connected path of pixels. How can it be 8-connected if the pixel cannot be on the same row? Shouldn't it be 3-connected?
8-connected path of pixels means that all the 8 neighbors
oaround a pixelx:count in determining if the pixel is connected. so the
xinare 8-connected. in contrast, 4-connected looks only at these 4 neighbors
o:under this scheme, the
xin 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:
seems quite easy to grasp to me. this:
is a vertical seam (because there is only one pixel per row), also:
this is; this:
is not (because there are two pixel in row two).
hope that helps.