Lecture 05 Image Enhancement III
Lecture 05 Image Enhancement III
02/03/23 2
Local Histogram Processing
The histogram processing methods mentioned up to
now are global transformation where:
Step1:
Define a square or rectangular neighborhood (block),
compute the histogram in the local block by designing the
transformation functions based on the local gray-level
distribution
Step 2:
Utilize the histogram equalization or specification method to
generate the transformation function, perform the gray level
mapping for each pixel in the Block
Step 3:
Move the center of the block to an adjacent pixel location
and repeat the procedure
02/03/23 4
Local Histogram Processing
Optimization:
02/03/23 5
Local Histogram Equalization Example
02/03/23 6
Local Histogram Equalization Example
02/03/23 7
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)
02/03/23 8
Local Enhancement using Statistical Parameters
02/03/23 9
Local Enhancement using Statistical Parameters
02/03/23 10
Local Enhancement using Statistical Parameters
02/03/23 11
Local Enhancement using Statistical Parameters
02/03/23 12
Local Enhancement using Statistical Parameters
02/03/23 13
Mathematical/Logical Operations on Images
Addition
–Averaging images for noise removal
Subtraction
–Removal of background from images
–Image enhancement
–Image matching
–Moving/displaced object tracking
Multiplication
–Superimposing of texture on an image
–Convolution and correlation of images
And and or operations
–To remove the unnecessary area of an image through
mask operations
02/03/23 14
Image Averaging for Noise Reduction
02/03/23 15
Image Averaging for Noise Reduction
02/03/23 16
Image Averaging for Noise Reduction
02/03/23 17
Image Subtraction
• Takes two images as input and produces a third
image whose pixel values are those of the first
image minus the corresponding pixel values from
the second image
• Variants
– It is also often possible to just use a single image as
input and subtract a constant value from all the pixels
– Just output the absolute difference between pixel
values, rather than the straightforward signed output.
02/03/23 18
Image Subtraction
• The subtraction of two images is performed in a
single pass
02/03/23 19
Image Subtraction
• If the operator calculates absolute differences, then it is
impossible for the output pixel values to be outside the
range
• In rest of the two cases the pixel value may become
negative
• This is one good reason for using absolute differences.
02/03/23 20
Image Subtraction
• How to solve problem of negative pixels?
• Let we have an 8 bit Grayscale image (Value Range= 0 t0 255)
• The result of image subtraction may come in the range of -255 to
+255
• One scheme can be to add 255 to every pixel and then divide by
2
• Method is easy and fast
• Limitations
– Truncation errors can cause loss of accuracy
– Full range of display may not be utilized
02/03/23 21
Image Subtraction
02/03/23 22
Examples of Image Subtraction
02/03/23 23
Examples of Image Subtraction
02/03/23 24
Example: Background Removal Using Image Subtraction
02/03/23 25
Example: Background Removal Using Image Subtraction
02/03/23 26
Examples of Image Multiplication
02/03/23 27
Example of Logical Operations using Masks
02/03/23 28