Sorry, this content is no longer available

Ask Your Question
0

Color correction

asked Jul 5 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jul 6 '13

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.

Preview: (hide)

Question Tools

Stats

Asked: Jul 5 '13

Seen: 12,328 times

Last updated: Jul 06 '13