Pixel connectivity

In image processing and image recognition, pixel connectivity is the way in which pixels in 2-dimensional (or voxels in 3-dimensional) images relate to their neighbors.

Types of connectivity

2-dimensional

Example of neighborhood of pixels - association of eight and four pixels

4-connected

4-connected pixels are neighbors to every pixel that touches one of their edges. These pixels are connected horizontally and vertically. In terms of pixel coordinates, every pixel that has the coordinates

or

is connected to the pixel at .

6-connected

6-connected pixels are neighbors to every pixel that touches one of their corners (which includes pixels that touch one of their edges) in a hexagonal grid or stretcher bond rectangular grid.

There are several ways to map hexagonal tiles to integer pixel coordinates. With one method, in addition to the 4-connected pixels, the two pixels at coordinates and are connected to the pixel at .

8-connected

8-connected pixels are neighbors to every pixel that touches one of their edges or corners. These pixels are connected horizontally, vertically, and diagonally. In addition to 4-connected pixels, each pixel with coordinates is connected to the pixel at .

3-dimensional

6-connected

6-connected pixels are neighbors to every pixel that touches one of their faces. These pixels are connected along one of the primary axes. Each pixel with coordinates , , or is connected to the pixel at .

18-connected

18-connected pixels are neighbors to every pixel that touches one of their faces or edges. These pixels are connected along either one or two of the primary axes. In addition to 6-connected pixels, each pixel with coordinates , , , , , or is connected to the pixel at .

26-connected

26-connected pixels are neighbors to every pixel that touches one of their faces, edges, or corners. These pixels are connected along either one, two, or all three of the primary axes. In addition to 18-connected pixels, each pixel with coordinates , , , or is connected to the pixel at .

gollark: That would make sense.
gollark: Who's lib32harfbuzz?
gollark: Is this just an extremely convoluted way to find computers' NBT data?
gollark: Like... computer labels?
gollark: There are places where you can supply user-controlled-ish data to NBT tags, right?

See also

References

    • A. Rosenfeld , A. C. Kak (1982), Digital Picture Processing, Academic Press, Inc., ISBN 0-12-597302-0
    • Cheng, CC; Peng, GJ; Hwang, WL (2009), "Mathworks: Pixel Connectivity", IEEE Transactions on Image Processing, 18 (1): 52–62, doi:10.1109/TIP.2008.2007067, PMID 19095518, retrieved 2009-02-16
    • Cheng, CC; Peng, GJ; Hwang, WL (2009), "Pixel Connectivity", IEEE Transactions on Image Processing, 18 (1): 52–62, doi:10.1109/TIP.2008.2007067, PMID 19095518, retrieved 2009-02-16
    This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.