Visual Servoing Platform
version 3.6.1 under development (2024-11-21)
|
Functions | |
VISP_EXPORT void | VISP_NAMESPACE_NAME::gammaCorrection (VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I, const float &gamma, const vpGammaMethod &method=GAMMA_MANUAL, const VISP_NAMESPACE_ADDRESSING vpImage< bool > *p_mask=nullptr) |
VISP_EXPORT void | VISP_NAMESPACE_NAME::gammaCorrection (const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I1, VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > &I2, const float &gamma, const vpGammaMethod &method=GAMMA_MANUAL, const VISP_NAMESPACE_ADDRESSING vpImage< bool > *p_mask=nullptr) |
VISP_EXPORT void | VISP_NAMESPACE_NAME::gammaCorrection (VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > &I, const float &gamma, const vpGammaColorHandling &colorHandling=GAMMA_RGB, const vpGammaMethod &method=GAMMA_MANUAL, const VISP_NAMESPACE_ADDRESSING vpImage< bool > *p_mask=nullptr) |
VISP_EXPORT void | VISP_NAMESPACE_NAME::gammaCorrection (const VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > &I1, VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > &I2, const float &gamma, const vpGammaColorHandling &colorHandling=GAMMA_RGB, const vpGammaMethod &method=GAMMA_MANUAL, const VISP_NAMESPACE_ADDRESSING vpImage< bool > *p_mask=nullptr) |
Gamma correction.
VISP_EXPORT void VISP_NAMESPACE_NAME::gammaCorrection | ( | const VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I1, |
VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I2, | ||
const float & | gamma, | ||
const vpGammaMethod & | method = GAMMA_MANUAL , |
||
const VISP_NAMESPACE_ADDRESSING vpImage< bool > * | p_mask = nullptr |
||
) |
Perform a gamma correction on a grayscale image.
[in] | I1 | : The first grayscale image. |
[out] | I2 | : The second grayscale image after gamma correction. |
[in] | gamma | : Gamma value. If equals to -1, use automatic Gamma correction based on a non-linear technique. If equals to -2, use automatic Gamma correction based on a logarithmic technique. If equals to -3, uses automatic Gamma correction based on classification. If equals to -4, uses automatic Gamma correction based on probabilistic. |
[in] | method | : The method to use: either GAMMA_MANUAL if the user wants to use a positive constant gamma factor, or one of the automatic method if gamma is negative. |
[in] | p_mask | : If different from nullptr, permits to indicate which points must be taken into account by setting them to true. |
VISP_EXPORT void VISP_NAMESPACE_NAME::gammaCorrection | ( | const VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > & | I1, |
VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > & | I2, | ||
const float & | gamma, | ||
const vpGammaColorHandling & | colorHandling = GAMMA_RGB , |
||
const vpGammaMethod & | method = GAMMA_MANUAL , |
||
const VISP_NAMESPACE_ADDRESSING vpImage< bool > * | p_mask = nullptr |
||
) |
Perform a gamma correction on a color image.
[in] | I1 | : The first color image. |
[out] | I2 | : The second color image after gamma correction. |
[in] | gamma | : Gamma value. |
[in] | colorHandling | : How to handle the colors of the image. |
[in] | method | : The method to use: either GAMMA_MANUAL if the user wants to use a positive constant gamma factor, or one of the automatic method if gamma is negative. |
[in] | p_mask | : If different from nullptr, permits to indicate which points must be taken into account by setting them to true. |
VISP_EXPORT void VISP_NAMESPACE_NAME::gammaCorrection | ( | VISP_NAMESPACE_ADDRESSING vpImage< unsigned char > & | I, |
const float & | gamma, | ||
const vpGammaMethod & | method = GAMMA_MANUAL , |
||
const VISP_NAMESPACE_ADDRESSING vpImage< bool > * | p_mask = nullptr |
||
) |
Perform a gamma correction on a grayscale image.
[in,out] | I | : The grayscale image to apply gamma correction. |
[in] | gamma | : Gamma value. If equals to -1, use automatic Gamma correction based on a non-linear technique. If equals to -2, use automatic Gamma correction based on a logarithmic technique. If equals to -3, uses automatic Gamma correction based on classification. If equals to -4, uses automatic Gamma correction based on probabilistic. |
[in] | method | : The method to use: either GAMMA_MANUAL if the user wants to use a positive constant gamma factor, or one of the automatic method if gamma is negative. |
[in] | p_mask | : If different from nullptr, permits to indicate which points must be taken into account by setting them to true. |
Referenced by VISP_NAMESPACE_NAME::gammaCorrection().
VISP_EXPORT void VISP_NAMESPACE_NAME::gammaCorrection | ( | VISP_NAMESPACE_ADDRESSING vpImage< VISP_NAMESPACE_ADDRESSING vpRGBa > & | I, |
const float & | gamma, | ||
const vpGammaColorHandling & | colorHandling = GAMMA_RGB , |
||
const vpGammaMethod & | method = GAMMA_MANUAL , |
||
const VISP_NAMESPACE_ADDRESSING vpImage< bool > * | p_mask = nullptr |
||
) |
Perform a gamma correction on a color image.
[in,out] | I | : The color image to apply gamma correction. |
[in] | gamma | : Gamma value. |
[in] | colorHandling | : How to handle the colors of the image. |
[in] | method | : The method to use: either GAMMA_MANUAL if the user wants to use a positive constant gamma factor, or one of the automatic method if gamma is negative. |
[in] | p_mask | : If different from nullptr, permits to indicate which points must be taken into account by setting them to true. |