Visual Servoing Platform  version 3.2.0 under development (2019-01-22)

Functions

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

Detailed Description

Gamma correction.

Function Documentation

void vp::gammaCorrection ( vpImage< unsigned char > &  I,
const 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 334 of file vpImgproc.cpp.

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

Referenced by vp::gammaCorrection().

void vp::gammaCorrection ( const vpImage< unsigned char > &  I1,
vpImage< unsigned char > &  I2,
const 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 361 of file vpImgproc.cpp.

References vp::gammaCorrection().

void vp::gammaCorrection ( vpImage< vpRGBa > &  I,
const 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 375 of file vpImgproc.cpp.

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

void vp::gammaCorrection ( const vpImage< vpRGBa > &  I1,
vpImage< vpRGBa > &  I2,
const 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 405 of file vpImgproc.cpp.

References vp::gammaCorrection().