Automatically adjusts the contrast of images(color/gray) to the "optimum" level, using contrast stretching.
why sort instead of imhist? sorting several million pixels is much more time consuming.
hi..can you explains more about the heuristic values. Can i used other values other than what you put. thank you in adcanced for your response.
I was looking it is this!
This is algorithm which used in the Preview MAC OS X app!
Wan, those are purely heuristic values.
can u explain how did u set the limit in this coding.
and how did you calculate that limit?
tq for response
this code works really good. can u help to wirte code for 'Perceptually Motivated Automatic Color Contrast Enhancement' paper.
If input_img and output_img are the input and output filenames, this is how you run it:
how to run this coding?
but i need to calculate a contraste locale
This works really well for adjusting images with poor contrast! Thanks
Run-time reduced by 90% !!
Simplified code and faster operation
Inspired: CONTRAST CONTROLLER