Wanting to adjust brightness/contrast of an image, similar to paint.net/photoshop

asked 2013-01-15 05:50:47 -0500

Jdban gravatar image

I have an image of a crosswalk, and its very hard to do processing on it to detect the crosswalk. I was playing in paint.net and stumbled upon changing the contrast/brightness, I was able to EASILY distinguish the crosswalk so that I could threshold with HSV values. Btw I am running this on my android phone.

Here is my before image: image description

And here is my after image from paint.net after adjusting brightness: image description

In other images where its even more poorly colored, this does a great job too.

I was wondering how I could replicate this effect in OpenCV, what options are there?

edit retag flag offensive close merge delete