Digital Image Processing: Course Code: CSE 423
Digital Image Processing: Course Code: CSE 423
Digital Image Processing: Course Code: CSE 423
Lecture 4
Bit Plane Slicing
Often by isolating particular bits of the pixel
values in an image we can highlight interesting
aspects of that image
◦ Higher-order bits usually contain most of the
significant visual information
◦ Lower-order bits contain
subtle details
Bit Plane Slicing (cont…)
[10000000] [01000000]
[00100000] [00001000]
[00000100] [00000001]
Bit Plane Slicing (cont…)
[10000000] [01000000]
[00100000] [00001000]
[00000100] [00000001]
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit Plane Slicing (cont…)
Bit‐Plane Slicing
b1=bitand(b,1);
b2=bitand(b,2);
b3=bitand(b,4);
b4=bitand(b,8);
b5=bitand(b,16);
b6=bitand(b,32);
b7=bitand(b,64);
b8=bitand(b,128);
Introduction of Histogram
Introduction of Histogram
Image Histograms
The histogram of an image shows us the
distribution of grey levels in the image
Massively useful in image processing, especially in
segmentation
Frequencies
Grey Levels
Histogram Examples
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
Histogram Examples (cont…)
A selection of images and
their histograms
Notice the relationships
between the images and
their histograms
Note that the high contrast
image has the most
evenly spaced histogram
Histogram Equalisation
Spreading out the frequencies in an image (or
equalising the image) is a simple way to improve
dark or washed out images
The formula for histogram
equalisation is given where sk T (
rk )
◦ rk: input intensity k
4
Equalisation Examples (cont…)
3
4
Equalisation Examples (cont…)