Only part a and c) [4] (a) Write a computer program for computing the histogram
ID: 3875149 • Letter: O
Question
Only part a and c)
[4] (a) Write a computer program for computing the histogram of an image class and in Section 3.3.1 of the textbook. (the MRI of a fractured human spine) (b) Implement the histogram equalization technique discussed in the (c) Download Fig. 3.8(a) and perform histogram equalization on it As a minimum, your project solution should include the original image, a plot of its histogram, a plot of the histogram-equalization transformation function, the enhanced image, and a plot of its histogram. Use this informa tion to explain why the reuting image was enhanced as it wasExplanation / Answer
//matlab can be used to generate histograms for images
a)
I = imread(image.png); %reading image,, change image name
imshow(I) %displaying image
figure;
imhist(I); %generating histogram of image
c)
%histogram-equalization
I = imread(image.png); %reading image,, change image name
imshow(I) %displaying image
figure;
imhist(I,64); %generating histogram of image
j = histeq(I); %histogram equalization function
figure;
imshow(j); %displaying
figure;
imhist(j,64);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.