# Outputzeros2561 for i1sizea1 for j1sizea2 valueaij

• Lab Report
• 4

This preview shows pages 3–4. Sign up to view the full content.

output=zeros(256,1); for i=1:size(a,1) for j=1:size(a,2) value=a(i,j); freq(value+1)=freq(value+1)+1; probf(value+1)=freq(value+1)/numofpixels; end end sum=0;b=255; for i=1:size(probf) sum=sum+freq(i); cum(i)=sum; probc(i)=cum(i)/numofpixels; output(i)=round(probc(i)*b); end for i=1:size(a,1) for j=1:size(a,2) z(i,j)=output(a(i,j)+1); end end figure,imshow(z); title('Histogram equalization'); 0 50 100 150 200 250 300 0 500 1000 1500 2000 2500 3000 3500 4000 without using built in command histogram equalzation without built in func. Histogram equalization without using built in command

This preview has intentionally blurred sections. Sign up to view the full version.

P OST -L AB T ASKS : T ASK -1: Using imhist(), histeq perform on the image (tire.tif ) Difference b/w histogram and histogram equalization : Histogram equalization is a method in image processing of contrast adjustment using the image 's histogram . (Equal density distribution of pixel intensity level). Histgram: A graphical representation, similar to a bar chart in structure that organizes a group of pixels into different intensity levels. original Histogram Image 0 100 200 300 400 500 600 700 800 900 histogram  graph 0 50 100 150 200 250
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern