Ask Your Question
0

Color correction

asked 2013-07-05 12:25:10 -0600

eric gravatar image

Hello,

I am looking for a way to automatically correct colors in photos with Opencv. I know that doing this automatically can result in errors / distortions but I'd like to give it a shot.

Any existing Opencv implementations / functions?

Thank you PS: to be more specific, i'd like something like photoshop's "auto color" or "auto tone" tools, that "correct" the color balance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-06 03:17:51 -0600

Notas gravatar image

That's what histogram equalization is for. Here is a link for global histogram equalization and at here is an example with a local histogram equalization method. If you want to do it on separate image channels (e.g. RGB) use split to get the channels and apply the equalization on each channel. Then use merge() to make an image out of the changed channels.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-05 12:25:10 -0600

Seen: 12,042 times

Last updated: Jul 06 '13