lecture7
lecture7
Lecture 7:
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 1
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 2
1
Local histogram processing
The histogram processing methods mentioned up to now
are global transformation where:
▪ Function is designed according to the gray-level
distribution over an entire image
▪ Global transformation methods may not be suitable for
enhancing details over small areas (where number of
pixels may have negligible influence on designing the
global transformation function)
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 3
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 4
2
Local histogram equalization example
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 5
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 6
3
Local enhancement using statistical parameters
from histogram
Examples:
▪ Mean gives the average brightness of the image
▪ Variance (σ2) and its square root the standard deviation
gives the deviation of intensities on average from the
mean value (average contrast)
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 7
4
Local enhancement using statistical parameters
The statistical parameters can be used in various ways:
▪ For the direct calculation of transformation function
(adaptive transformation function) for example
g ( x, y ) = AS xy [ f ( x, y ) − mS xy ] + mS xy ,
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 10
10
5
Local enhancement using statistical parameters
Defining ranges for different transformation functions
E . f ( x, y ) if mS xy k0 M G AND k1 DG S xy k 2 DG
g ( x, y ) =
f ( x, y ) otherwise
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 11
11
Image formed from the Image formed from the Image formed from the
local means local standard deviations multiplication constants
selected for different
mean/std ranges
E = 4.0, k0 = 0.4, k1 = 0.02, and k2 = 0.4,
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 12
12
6
Local enhancement using statistical parameters
3/27/2025 Capital University of Science and Technology Digital Image Processing CPE3643 13
13