Ask Your Question
0

White balancing in opencv

asked 2015-02-22 14:53:33 -0600

aries gravatar image

I am working on a project and I need to perform white balancing on the images. I am using opencv 2.4.10. Is there any built-in functionality in opencv to do white balancing? I searched on the internet but could not find any. If not, can anyone please guide me how this can be achieved?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2015-02-22 15:38:39 -0600

theodore gravatar image

updated 2015-02-22 18:32:59 -0600

Apparently you did not search that hard :-p, but that's ok. There is a new function that you can find at the contribution repository. Check here for documentation and here for a sample. Moreover, you can also have a look here if you want to get an idea how to implement it by yourself.

edit flag offensive delete link more

Comments

3

just saying, - xphoto (like anything from opencv_contrib) will require opencv3.0

berak gravatar imageberak ( 2015-02-23 01:47:52 -0600 )edit

@theodore: The function is in Opencv 3.0. Is there something similar in opencv 2.4.10?

aries gravatar imagearies ( 2015-02-23 10:50:21 -0600 )edit

@aries currently there is not. So, you have three options either you download the git version of opencv 3.0 and you compile it with the opencv_contrib modules enabled and then use it, if you do not want to do that another option is to just adapt the function from the source file which you can find here and integrate it in your code, or your last option is to just follow the the code in the tutorial that I submitted in the last link of my answer.

theodore gravatar imagetheodore ( 2015-02-23 11:21:04 -0600 )edit

Old as heck, but courtesy notice that the main useful links here are broken.

Hendy gravatar imageHendy ( 2020-01-08 21:34:09 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-02-22 14:53:33 -0600

Seen: 8,250 times

Last updated: Feb 22 '15