Factors for white balance correction. More...
#include <cvb/white_balance.hpp>
Public Member Functions | |
WhiteBalanceFactors (double red, double green, double blue) | |
Initialize a white balance factors structure. | |
double | Red () const noexcept |
Gets the white balance factor for the red channel. | |
void | SetRed (double red) |
Sets the white balance factor for the red channel. | |
double | Green () const noexcept |
Gets the white balance factor for the geen channel. | |
void | SetGreen (double green) |
Sets the white balance factor for the green channel. | |
double | Blue () const noexcept |
Gets the white balance factor for the blue channel. | |
void | SetBlue (double blue) |
Sets the white balance factor for the blue channel. | |
Static Public Member Functions | |
static WhiteBalanceFactors | Identity () noexcept |
Identity transformation leaving all values as they are. | |
Related Symbols | |
(Note that these are not member symbols.) | |
WhiteBalanceFactors | CalculateWhiteBalanceFactors (const Image &image, Area2D aoi) |
Calculate the red, green and blue gain factor for white balancing. | |
void | ApplyWhiteBalanceFactors (const Image &image, WhiteBalanceFactors factors) |
Applies the white balance factors to the given image. | |
Factors for white balance correction.
|
inline |
Initialize a white balance factors structure.
[in] | red | Correction factor for the red channel. |
[in] | green | Correction factor for the green channel. |
[in] | blue | Correction factor for the blue channel. |
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Gets the white balance factor for the blue channel.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the white balance factor for the geen channel.
Does | not throw any exception. |
|
inlinestaticnoexcept |
Identity transformation leaving all values as they are.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the white balance factor for the red channel.
Does | not throw any exception. |
|
inline |
Sets the white balance factor for the blue channel.
[in] | blue | The factor. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the white balance factor for the green channel.
[in] | green | The factor. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the white balance factor for the red channel.
[in] | red | The factor. |
Any | exception derived from std::exception including CvbException. |
|
related |
Applies the white balance factors to the given image.
[in] | image | Image to apply white-balance factors to. |
[in] | factors | Gain factors to apply. |
Any | exception derived from std::exception including CvbException. |
|
related |
Calculate the red, green and blue gain factor for white balancing.
[in] | image | Image on which the gain factors are to be calculated. |
[in] | aoi | Area of interest that is assumed to be the neutral color. |
Any | exception derived from std::exception including CvbException. |
Floating-point valued images must not have negative pixel values for this operation to yield useful output.
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.