ASSIGNMENT/ASSESSMENT COVERSHEET
Student Name: Zahra Farooq
First Name FAMILY/ Last Name
Registration Number: BSCS-023R17-19
Course Code Course Title
DIP
Department (Computer Science / Information Technology)
Computer science
Cs 8th
Class & Semester
Assessment item Title: Due date/time:
Tutorial Group (IF applicable):
Word Count (if applicable:
Lecture/Tutor Name:
Sir qasim
Extension Granted: Yes no Granted By:
I declare that this assessment item is my ow n work unless otherwise acknowledged and is in accordance with the
University’s academic integrity policy.
I certify that this assessment item has not been submitted previously for academic credit in this or any other course. I
certify that I have not given a copy or have show n a copy of this assessment item to another student enrolled in
thecourse.
I acknow ledge that the assessor of this assignment may, for the purpose of assessing this assignment:
Reproduce this assessment item and provide a copy to another member of the Faculty;and/or
Communicate a copy of this assessment item to a plagiarism checking service (which may then retain a copy of the
item on its database for the purpose of future plagiarismchecking).
Submit the assessment item to other forms of plagiarismchecking.
I certify that any electronic version of this assessment item that I have submitted or w ill submit is identical to this paper
version.
Operations work with the values of the image pixels in the neighborhood and the
corresponding values of a sub image that has the same dimensions as the
neighborhood. The sub image is called a filter, mask, kernel, template, or window,
with the first three terms being the most prevalent terminology. The values in a filter
sub image are referred to as coefficients, rather than pixels. The process consists
simply of moving the filter mask from point to point in an image. At each point (x, y),
the response of the filter at that point is calculated using a predefined relationship.
Smoothing Spatial Filters divided into two types:
1. Smoothing Linear Filters
a) Average Filter
b) Weighted Filter
2. Smoothing Non-Linear Filters
a) Median Filter
I. Average Filtering:
The output of a smoothing, linear spatial filter is simply the average of the pixels
contained in the neighborhood of the filter mask. These filters sometimes are called
averaging filters. For reasons explained in they also are referred to a low pass filters.
The idea behind smoothing filters is straightforward. By replacing the value of every
pixel in an image by the average of the gray levels in the neighborhood defined by
the filter mask, this process results in an image with reduced “sharp” transitions in
gray levels. Because random noise typically consists of sharp transitions in gray
levels, the most obvious application of smoothing is noise reduction.
2. Median Filtering:
The best-known example in this category is the median filter, which, as its name
implies, replaces the value of a pixel by the median of the gray levels in the
neighborhood of that pixel (the original value of the pixel is included in the
computation of the median). Median filters are quite popular because, for certain
types of random noise, they provide excellent noise-reduction capabilities, with
considerably less blurring than linear smoothing filters of similar size. Median filters
are particularly effective in the presence of impulse noise, also called salt-and-
pepper noise because of its appearance as white and black dots superimposed on
an image.