0% found this document useful (0 votes)
36 views1 page

B.Tech CSE: Scientific Computing Task

This document provides instructions for a programming assignment on scientific computing. It involves taking an RGB image, converting it to grayscale, calculating the histogram, performing histogram equalization without using direct functions, and displaying the original and equalized images with histograms. Students must complete 4 questions worth 40 total marks by taking an input image through the described image processing steps.

Uploaded by

parth dhanawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views1 page

B.Tech CSE: Scientific Computing Task

This document provides instructions for a programming assignment on scientific computing. It involves taking an RGB image, converting it to grayscale, calculating the histogram, performing histogram equalization without using direct functions, and displaying the original and equalized images with histograms. Students must complete 4 questions worth 40 total marks by taking an input image through the described image processing steps.

Uploaded by

parth dhanawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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