Ijaeast 0013052024
Ijaeast 0013052024
Ijaeast 0013052024
used for sharpening and smoothing such as- Spatial filtering, when implementing the Spatial
Filtering technique on an image, a mask is typically applied with a specific centre pixel [2], and
it is often resized for optimal usage. The mask is then shifted across all pixels in the image so that
the centre of the mask covers each pixel in turn.
There are two types of spatial filtering:
➢ Smoothing Spatial Filter: The Smoothing Spatial Filter is a useful tool in image editing
that helps to blur and reduce noise [1]. Blurring [3] is applied to eliminate small details,
while noise reduction is achieved through blurring. It is further divided into various filters
which are linear filter [1], averaging filter, weighted averaging filter, median filter,
maximum filter etc.
➢ Sharpening Spatial Filter: This type of filter is used to enhance the details and edges in
an image, making it appear sharper and more defined. It is further divided into two filters
which are Laplacian filter and unsharp mask filter.
2. Proposed Work
Here in this research work we are evaluating different kernels effects on same digital image that
also known as image enhancement, for this jupyter notebook is used where the image can be
imported and with the help of open cv, image can be read and displayed, python is also used here.
For this evaluation different kernels with different mask are used and their evaluation is done. For
convolving the filter with image filter2D() function is used in OpenCV with python the syntax is
as:
3. Applications
Kernels can serve various purposes, such as:
➢ Blurring: Kernels with equal values are used to reduce noise and create a smooth effect.
➢ Sharpening: Kernels designed to enhance edges and fine details make images appear
sharper.
4. Methodology
To understand the methodology of this research paper a flow chart is shown below with displaying
the simplest steps to go through step wise procedures. First of all, the image is imported in jupyter
notebook and then with the help of open cv “imread” command it is read, now the python tool is
all set to apply different methods on that digital image. For this research work different kernels is
applied on the imported image and results are saved for evaluation to see how different mask of
kernels effect the original image and how it is used for further work.
5. Result
Results and their evaluation are mentioned below with the help of snap shots of work, a table is
mentioned below which consist images of results then their kernel is mentioned and then
evaluation description is mentioned.
[-1,-1,-1],
1. [-1,9,-1], Sharpened Image
[-1,-1,-1]
[0,-1,0],
2. [-1,5,-1], Brightened Image
[0,-1,0]
[1,1,1],
3. [1,1,1], Blurred Image
[1,1,1]
[-1,-1,-1],
4. [-1,8,-1], Edge Detection
[-1,-1,-1]
In this we take original image as a input on that we apply kernel with size [-1,-1,-1], [-1,9,-1], [-
1,-1,-1] then it gives a sharpened image. Then we apply kernel with size [0,-1,0], [-1,5,-1], [0,-
1,0] which is increasing the center pixel value after 3X3 mask convolution with image therefore
we get more bright image. After that, kernel with size [-1,-1,-1], [-1,8,-1], [-1,-1,-1] is applied in
which the centre value of each 3X3 mask is decreased by one due to which we get the edge
detected. After this, apply kernel on original image with size [1,1,1], [1,1,1], [1,1,1] to get the
blurred image.
6. Conclusion
Analysing a digital image using various spatial filtering techniques in image processing allows us
to enhance or extract specific features from the image. These techniques are essential for various
applications, including image enhancement, noise reduction, edge detection, and object
recognition.
References
1. Bhishman Desai, Manish Paliwal and Kapil Kumar Nagwanshi, “Study on Image Filtering –
Techniques, Algorithm and Applications”, “arXiv:2207.06481v1 [cs.CV]”,4 Jun 2022.
2. Dongping Wang, Tiegang Gao, and Yuan Zhang, “Image Sharpening Detection Based on
Difference Sets”, “IEEE Access”, 2020, Digital Object Identifier,
10.1109/ACCESS.2020.2980774.
3. Mirpouya Mirmozaffari, “Filtering in Image Processing”, “ENG Transactions”, 2020, hal-
03213844.
4. P. Janani, J. Premaladha and K. S. Ravichandran, Image Enhancement Techniques: A Study,
Indian Journal of Science and Technology, vol 8(22), September 2015
5. Sargu, Shashi B., Rana, A Review of Medical Image Enhancement Techniques for Image,
International Journal of Current Engineering and Technology, Vol.5, No.2, pages 1282-1286,
April 2015.