You are on page 1of 1

Department of Computer Science & Engineering

Institute of Technology, Nirma University


Semester IV (B.Tech CSE)
Programming for Scientific Computing (2CS404)

Assignment for Sessional Examination

Max Marks: 40

Instructions:
1. All questions are compulsory.
2. Question wise marks have been specified.
3. Assume suitable data /information if required.

A histogram of a digital image represents intensity


distribution by plotting bar graph with X-axis as
pixel intensity value and Y-axis as the frequency of
its occurrence.

Histogram Equalisation is a technique to adjust


contrast levels and expand the intensity range in
a digital image. Thus, it enhances the image which
makes information extraction and further image
processing easier.
Q-1 Convert the input RGB image into a grayscale image [10]

Q-2 Find frequency of occurrence for each pixel value i.e. [10]
histogram of an image (values lie in the range [0,
255] for any grayscale image)

Q-3 1. Calculate Cumulative frequency of all pixel [10]


values.
2. Divide the cumulative frequencies by total
number of pixels and multiply them by
maximum graycount (pixel value) in the image

Q-4 Display an original image and Histogram Equalisation [10]


image using image subplot

Note: Do not use direct Equalisation function.

You might also like