Lab - 6 High Pass and High Boost Filtering
Lab - 6 High Pass and High Boost Filtering
Theory:
The principal objective of high pass (sharpening) filter is to highlight fine detail
in an image or to enhance detail that has been blurred, either in error or as a natural
effect of a particular method of image acquisition. Uses of image sharpening vary
and include applications ranging from electronic printing and medical imaging to
industrial inspection and autonomous target detection in military systems.
The shape of the impulse response needed to have a high pass (sharpening) spatial
filter indicates that the filter should have positive coefficients in the outer
periphery. For a 3 x 3 mask, choosing a positive value in the centre location with
negative coefficients in the rest of the mask meets this condition. Thus when the
mask is over an area of constant or slowly varying gray level, the output of the
mask is zero or very small. This result is consistent with what is expected from
the corresponding frequency domain filter.
We know that:
(High-pass filtered image)=(Original image)-(Low-pass filtered image)
We define:
Department of Computer Science and Engineering (Data Science)
Image Processing and Computer Vision I (DJ19DSL603)
Lab 5: Image Enhancement in Spatial Domain using Neighbourhood Processing
Techniques
Note:
i. when 𝐴>1, part of the original is added back to the high-pass filtered
version of the image in order to partly restore the lowfrequency
components that would have been eliminated with standardhigh-
pass filtering.
ii. Typical values for 𝐴 are values slightly higher than 1, as for example
1.15, 1.2, etc.
The resulting image looks similar to the original image with some edge
enhancement.
The spatial mask that implements the high boost filtering algorithm is shown
below.
Problem Statement: Develop a Python program utilizing the OpenCV library to enhace
the images in spatial domain using neighbourhood processing with sharpening operators
(High pass filtering and High boost filtering). The program should address the following
tasks:
The solution to the operations performed must be produced by scratch coding without
the use of built in OpenCV methods.