Digital Image Fundamentals
Digital Image Fundamentals
DIGITAL IMAGING
FUNDAMENTALS
2
(a) (b)
Representing digital images
12
1024 256 64
16
intensity resolution:
• is the smallest discernible change in intensity level.
• the more intensity levels used, the finer the level of detail
discernable in an image
• Intensity level resolution is usually given in terms of the number of
bits used to store each intensity level
Number of Intensity
Number of Bits Examples
Levels
1 2 0, 1
2 4 00, 01, 10, 11
4 16 0000, 0101, 1111
8 256 00110011, 01010101
16 65,536 1010101010101010
Ex,
17
256 grey levels (8 bits per 128 grey levels (7 bpp) 64 grey levels (6 bpp) 32 grey levels (5 bpp)
pixel)
16 grey levels (4 bpp) 8 grey levels (3 bpp) 4 grey levels (2 bpp) 2 grey levels (1 bpp)
Some basic relationships between pixels
18
Neighbors of pixel
A pixel ‘p’ at coordinates(x,y) has
1. four horizontal and vertical neighbors called 4-
neighbors N4(p):
(x+1,y),(x-1,y),(x,y+1),(x,y-1)
as
Using multiplication in masking(ROI)
27
Note:
In arthmetic operations such as difference between
two 8-bit images can range from a min. Of -255 and
a max. Of 255 ,and the values of sum two images can
range from 0 to 510.
So we need to set all negative values to 0 and set to 255
all values exceed this limit.
Set and logical operations
29
Chapter 3
Image Enhancement
37
some neighbourhood
of (x, y)
y Image f (x, y)
Point Processing
Origina Negative
s = 1.0 - r
l Image Image
Logarithmic transformation
43
General form:
s = c * log(1 + r)
The log transformation maps a narrow range of low
input grey level values into a wider range of output
values .(brights images).
The inverse log transformation performs the opposite
transformation .
Logarithmic Transformations (cont…)
44
Log functions are particularly useful when the input
grey level values may have an extremely large range
of values
In the following example the Fourier transform of
an image is put through a log transform to reveal
more detail
s = log(1 + r)
Power-law (gamma) transformation
45
s = r 0.4
Different curves
highlight different
detail
Gamma Correction
47