Relationships Between Pixels (Neighbours Adjacency and Connectivity)
Relationships Between Pixels (Neighbours Adjacency and Connectivity)
Adjacency andConnectivity)
An image is denoted by f(x,y) and p,q are used to represent individual pixels of the image.
Neighbours of a pixel
In a binary image, V = {1} if we are referring to adjacency of pixels with value 1. In a gray-
scale image, the idea is the same, but set V typically contains more elements.
For example, in the adjacency of pixels with a range of possible intensity values 0 to 255,
set V could be any subset of these 256 values.
1. q is in N4(p), or
2. 2) q is in ND(p) and the set N4(p)∩N4(q) has no pixels whose values are from V.
if their gray levels satisfy a specified criterion of similarity (equal intensity level)
There are three types of connectivity on the basis of adjacency. They are:
a) 4-connectivity: Two or more pixels are said to be 4-connected if they are 4-adjacent
with each other’s.
b) 8-connectivity: Two or more pixels are said to be 8-connected if they are 8-adjacent
with each other’s.
c) m-connectivity: Two or more pixels are said to be m-connected if they are m-adjacent
with each other’s.
Regions and Boundaries
• The boundary of the region R is the set of pixels in the region that have one or
more neighbors that are not in R.