What is a good way of Enhancing contrast of color images?

Posted by erjik on Stack Overflow See other posts from Stack Overflow or by erjik
Published on 2010-05-28T05:01:37Z Indexed on 2010/05/28 5:11 UTC
Read the original article Hit count: 223

I split color image for 3 channels and made a contrast enhancement of each channel. Then merged them together, I like the image at the result, but it has different colors. Black objects became yellow and so on...

EDIT: The algorithm I used is to calculate the 5th percentile and the 95th percentile as min and max values, and then expand the values of image so that it will have min and max values as 0 and 255. If there is a better approach please tell me.

© Stack Overflow or respective owner

Related posts about image-processing

Related posts about image-enhancement