DIP Part2
DIP Part2
DIP Part2
Part 2
Usually, m=n and the number of graylevels are g=2k for some k. The
spatial resolution is mn and g is the greylevel resolution.
RGB based colour images are represented similarly except that f(i,j) is a
3D vector representing intensity of the three primary colors at the (i,j) pixel
posiotion,
Spatial and Intensity Resolution
Spatial resolution
— A measure of the smallest discernible detail in an image
— stated with line pairs per unit distance, dots (pixels) per
unit distance, dots per inch (dpi)
Intensity resolution
— The smallest discernible change in intensity level
— stated with 8 bits, 12 bits, 16 bits, etc.
Spatial Resolution
30 40 50 36 23 15 20 25 18 11 7 10 12 9 5
34 39 41 58 47 17 19 20 29 23 8 9 10 14 11
37 38 38 35 32 18 19 19 17 16 9 9 9 8 8
51 25 25 48 28 25 12 12 24 14 12 6 6 12 7
62 12 18 21 25 31 6 9 10 12 15 3 4 5 6
6 bits 5 bits 4 bits
3 5 6 4 2 1 2 3 2 1 0 1 1 1 0
4 4 5 7 5 2 2 2 3 2 1 1 1 1 1
4 4 4 4 4 2 2 2 2 2 1 1 1 1 1
6 3 3 6 3 3 1 1 3 1 1 0 0 1 0
7 1 2 2 3 3 0 1 1 1 1 0 0 0 0
3 bits 2 bits 1 bits
4 bits 3 bits
5 bits
A
S(A)
Example: Scaling A by a factor s=1.5
Zooming and Shrinking Digital Images
The above image has two rows and two columns, we will first
zoom it row wise.
example
Row wise zooming:
When we zoom it row wise, we will just simple copy the rows pixels
to its adjacent new cell. Here how it would be done
1 2
1 2
3 4
3 4
Column size zooming: The next step is to replicate each of the pixel
column wise, that we will simply copy the column pixel to its adjacent
new column or simply below it. Here how it would be done
1 1 2 2
1 1 2 2
3 3 4 4
3 3 4 4
Advantage and disadvantage:
One of the advantage of this zooming technique is, it is very
simple. You just have to copy the pixels and nothing else.
we pick two adjacent elements from the rows respectively and then
we add them and divide the result by two and place their result in
between those two elements. We first do this row wise and then we
do this column wise.
New image size:
As you can see that the dimensions of the new image are 3 x 3
where the original image dimensions are 2 x 2. So it means that
the dimensions of the new image are based on the following
formula
New image size = (2(no. rows)-1)X(2(no. columns) -1)
Basic Relationships Between Pixels
(x, y-1)
(x-1, y) (x+1, y)
(x, y+1)
4-diagonal neighbors of p
Each pixel is a unit distance from (x, y), and some of the
neighbors of p lie outside the digital image if (x, y) is on the
border of the image.
(x-1, y-1) (x+1, y-1)