what is the matlab code for adaptive gamma correction in an image?

 Accepted Answer

What does that mean? adaptive usually means it varies by location in the image but I've never heard of gamma varying locally in an image. The gamma applies to the whole image, so what is adapting?

12 Comments

actually I dont know about adaptive gamma correction in an image but in an IEEE paper it gives adaptive gamma correction with weighting distribution function to enhance contrast in an image, so please give me code for gamma correction ,then code for adaptive gamma correction,then adaptive gamma correction with weighting distribution.I attached the paper here.
Sir please give me the matlab code for gamma correction and then matlab code for weighting distribution function, please help me?
Did you see the link in the previous comment? Sorry but that's basically all I can offer right now, especially since I'm going away for the weekend. I just don't have time to code up that paper for you . Can't you do it?
Dear Sir,I think you will return to your home station.Sir its my kind request to you that please give me The correct matlab code ward for this above ADAPTIVE GAMMA CORRECTION WITH WEIGHTING DISTRIBUTION FUNCTION for contrast enhancement .As a new to this matlab its very difficult for me to write this code in a limited period.SIR please solve my problem.
No. We have no responsibility for the fact that you do not know MATLAB or the fact that your seminar project is due soon.
If you have specific questions related to MATLAB, we can answer them (or try), but determining the algorithm and decomposing into steps is your responsibility. Apply the skills you learned in previous programming courses.
Yes, we do understand that if you do not get this project in then you will possibly fail your course, and that in turn you might not be granted your degree this year, but NO, we will not do the work for you.
Thank you sir, for your constant answering of my question .but I think you will help me during my journey towards implementing this paper in matlab.Sir please answer me how to change the gamma correction algorithm to adaptive gamma correction.
Algorithms are up to you. This forum deals with MATLAB issues, and algorithms are independent of MATLAB.
Is it possible to calculate the value of gamma from the image?
I don't believe so. You could with two images if you put a neutral density filter in front of the camera for one of them. And again, I've never heard of varying the gamma pixel-by-pixel. I don't even think it's possible for a normal 2-D camera sensor.
Historically with CRT monitors it was common for gamma to vary across the image, due to differences in thickness of coatings, and the difficulty in getting the coatings shaped properly taking into account the curve of the tube. Historically it was common for the gamma to be lower around the edges (that is, for brightness for a given amount of energy to be lower.) If I recall correctly, Sony's Trinitron was a substantial improvement in quality compared to previous generations of monitors.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!