Professional Documents
Culture Documents
Mathematical Preliminaries I
Mathematical Preliminaries I
Mathematical Preliminaries I
PRELIMINARIES PART I
Unit III
Pixel
In pixel resolution, the term resolution refers to the total number of count of
pixels in an digital image.
For example. If an image has M rows and N columns, so,
resolution =M X N.
Resolution is define the total number of pixels,
Pixel resolution can be defined with set of two numbers,
The first number the width of the picture, or the pixels across columns,
The second number is height of the picture, or the pixels across its rows.
Higher is the pixel resolution, the higher is the quality of the image.
We can define pixel resolution of an image as 4500 X 5500.
Megapixels
Note: Bpp or bits per pixel denotes the number of bits per pixel. The number of
different colors in an image is depends on the depth of color or bits per
pixel.
Calculating the mega pixels of the camera
For example:
The image of Einstein is an gray scale image. Means it is an image
with 8 bits per pixel or 8bpp.
Calculate the gray level resolution,
It means it gray level resolution is 256. Or in other way we can say that
this image has 256 different shades of gray.
Spatial resolution
For example
Dots per inch: Dots per inch or DPI is usually used in monitors.
Lines per inch: Lines per inch or LPI is usually used in laser
printers.
Pixels per inch: Pixel per inch or PPI is measure for different
devices such as tablets , Mobile phones etc.
Some Basic Relationships Between Pixels
Neighborhood
Adjacency
Connectivity
Paths
A pixel p at (x , y) has
2 horizontal and 2 vertical neighbors:
That’s are
Horizontal neighbors: (x+1,y), (x-1,y),
Vertical neighbors: (x,y+1), (x,y-1)
1. 4- adjacency
2. 8-adjacency
3. M-adjacency
4- Adjacency
Example,
25 15 30
Q
80 150 72
P
51 70 17
8- Adjacency
Example,
25 15 30
Q
80 150 72
P
51 70 17
M- Adjacency
0 1 1 1 1 0
0 Q0 0 0 0 0
0 1 P0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
Connectivity
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 others.
b) 8-connectivity: Two or more pixels are said to be 8-connected if they
are 8-adjacent with each others.
c) m-connectivity: Two or more pixels are said to be m-connected if they
are m-adjacent with each others.
Region
A digital path (or curve) from pixel p with coordinate (x,y) to pixel q with
coordinate (s,t) is a sequence of distinct pixels with coordinates (x0,y0),
(x1,y1), …, (xn, yn)
where (x0,y0) = (x,y) and
(xn, yn) = (s,t) and pixels (xi,yi) and (xi-1, yi-1) are adjacent for 1 ≤ i ≤ n.
For pixel p,q and z with coordinate (x.y) ,(s,t) and (v,w) respectively D is a
distance function or metric if
D [p . q] ≥ O {D[p.q] = O iff p=q}
D [p.q] = D [p.q] and
D [p.q] ≥ O {D[p.q]+D(q,z) }
Distance Measures
Pixels having a distance less than or equal to some value r from (x,y) are the
points contained in a disk of radius ‘ r ‘centered at (x,y)
Distance Measures
Pixels having a D4 distance from (x,y), less than or equal to some value r form
a Diamond centered at (x,y).
Example: The pixels with distance D4 ≤ 2 from (x,y) form the following
contours of constant distance.
The pixels with D4 = 1 are the 4-neighbors of (x,y)
Distance Measures
Pixels having a D8 distance from (x,y), less than or equal to some value r form
a square Centered at (x,y).
Example: D8 distance ≤ 2 from (x,y) form the following contours of constant
distance.
THANK YOU