title: What is a good way of Enhancing contrast of color images?
body: <p>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... </p>
  
  <p>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.</p>