Visual Servoing Platform  version 3.5.0 under development (2022-02-15)

Functions

VISP_EXPORT void vp::gammaCorrection (vpImage< unsigned char > &I, double gamma)
 
VISP_EXPORT void vp::gammaCorrection (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2, double gamma)
 
VISP_EXPORT void vp::gammaCorrection (vpImage< vpRGBa > &I, double gamma)
 
VISP_EXPORT void vp::gammaCorrection (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, double gamma)
 

Detailed Description

Gamma correction.

Function Documentation

◆ gammaCorrection() [1/4]

void vp::gammaCorrection ( vpImage< unsigned char > &  I,
double  gamma 
)

Perform a gamma correction on a grayscale image.

Parameters
I: The grayscale image to apply gamma correction.
gamma: Gamma value.
Examples:
testImgproc.cpp, and tutorial-brightness-adjustment.cpp.

Definition at line 335 of file vpImgproc.cpp.

References vpException::badValue, and vpImage< Type >::performLut().

Referenced by vp::gammaCorrection().

◆ gammaCorrection() [2/4]

void vp::gammaCorrection ( const vpImage< unsigned char > &  I1,
vpImage< unsigned char > &  I2,
double  gamma 
)

Perform a gamma correction on a grayscale image.

Parameters
I1: The first grayscale image.
I2: The second grayscale image after gamma correction.
gamma: Gamma value.

Definition at line 362 of file vpImgproc.cpp.

References vp::gammaCorrection().

◆ gammaCorrection() [3/4]

void vp::gammaCorrection ( vpImage< vpRGBa > &  I,
double  gamma 
)

Perform a gamma correction on a color image.

Parameters
I: The color image to apply gamma correction.
gamma: Gamma value.

Definition at line 376 of file vpImgproc.cpp.

References vpRGBa::A, vpRGBa::B, vpException::badValue, vpRGBa::G, vpImage< Type >::performLut(), and vpRGBa::R.

◆ gammaCorrection() [4/4]

void vp::gammaCorrection ( const vpImage< vpRGBa > &  I1,
vpImage< vpRGBa > &  I2,
double  gamma 
)

Perform a gamma correction on a color image.

Parameters
I1: The first color image.
I2: The second color image after gamma correction.
gamma: Gamma value.

Definition at line 406 of file vpImgproc.cpp.

References vp::gammaCorrection().