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. More... | |
double | Red () const noexcept |
Gets the white balance factor for the red channel. More... | |
void | SetRed (double red) |
Sets the white balance factor for the red channel. More... | |
double | Green () const noexcept |
Gets the white balance factor for the geen channel. More... | |
void | SetGreen (double green) |
Sets the white balance factor for the green channel. More... | |
double | Blue () const noexcept |
Gets the white balance factor for the blue channel. More... | |
void | SetBlue (double blue) |
Sets the white balance factor for the blue channel. More... | |
Static Public Member Functions | |
static WhiteBalanceFactors | Identity () noexcept |
Identity transformation leaving all values as they are. More... | |
Related Functions | |
(Note that these are not member functions.) | |
WhiteBalanceFactors | CalculateWhiteBalanceFactors (const Image &image, Area2D aoi) |
Calculate the red, green and blue gain factor for white balancing. More... | |
void | ApplyWhiteBalanceFactors (const Image &image, WhiteBalanceFactors factors) |
Applies the white balance factors to the given image. More... | |
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.