Visual Servoing Platform  version 3.6.1 under development (2024-04-20)

Functions

VISP_EXPORT void vp::stretchContrast (vpImage< unsigned char > &I)
 
VISP_EXPORT void vp::stretchContrast (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2)
 
VISP_EXPORT void vp::stretchContrast (vpImage< vpRGBa > &I)
 
VISP_EXPORT void vp::stretchContrast (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2)
 
VISP_EXPORT void vp::stretchContrastHSV (vpImage< vpRGBa > &I)
 
VISP_EXPORT void vp::stretchContrastHSV (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2)
 

Detailed Description

Contrast stretching.

Function Documentation

◆ stretchContrast() [1/4]

void vp::stretchContrast ( const vpImage< unsigned char > &  I1,
vpImage< unsigned char > &  I2 
)

Stretch the contrast of a grayscale image.

Parameters
I1: The first input grayscale image.
I2: The second output grayscale image.

Definition at line 727 of file vpImgproc.cpp.

References vp::stretchContrast().

◆ stretchContrast() [2/4]

void vp::stretchContrast ( const vpImage< vpRGBa > &  I1,
vpImage< vpRGBa > &  I2 
)

Stretch the contrast of a color image.

Parameters
I1: The first input color image.
I2: The second output color image.

Definition at line 809 of file vpImgproc.cpp.

References vp::stretchContrast().

◆ stretchContrast() [3/4]

void vp::stretchContrast ( vpImage< unsigned char > &  I)

Stretch the contrast of a grayscale image.

Parameters
I: The grayscale image to stretch the contrast.
Examples
testImgproc.cpp, and tutorial-contrast-sharpening.cpp.

Definition at line 705 of file vpImgproc.cpp.

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

Referenced by vp::stretchContrast().

◆ stretchContrast() [4/4]

void vp::stretchContrast ( vpImage< vpRGBa > &  I)

Stretch the contrast of a color image.

Parameters
I: The color image to stretch the contrast.

Definition at line 734 of file vpImgproc.cpp.

References vpRGBa::A, vpRGBa::B, vpRGBa::G, vpImage< Type >::getHeight(), vpImage< Type >::getMinMaxValue(), vpImage< Type >::getWidth(), vpImage< Type >::performLut(), vpRGBa::R, and vpImageConvert::split().

◆ stretchContrastHSV() [1/2]

void vp::stretchContrastHSV ( const vpImage< vpRGBa > &  I1,
vpImage< vpRGBa > &  I2 
)

Stretch the contrast of a color image in the HSV color space. The saturation and value components are stretch so the hue is preserved.

Parameters
I1: The first input color image.
I2: The second output color image.

Definition at line 860 of file vpImgproc.cpp.

References vp::stretchContrastHSV().

◆ stretchContrastHSV() [2/2]

void vp::stretchContrastHSV ( vpImage< vpRGBa > &  I)

Stretch the contrast of a color image in the HSV color space. The saturation and value components are stretch so the hue is preserved.

Parameters
I: The color image to stretch the contrast in the HSV color space.
Examples
testImgproc.cpp, and tutorial-contrast-sharpening.cpp.

Definition at line 816 of file vpImgproc.cpp.

References vpImage< Type >::bitmap, vpImage< Type >::getHeight(), vpImage< Type >::getMinMaxValue(), vpImage< Type >::getWidth(), vpImageConvert::HSVToRGBa(), and vpImageConvert::RGBaToHSV().

Referenced by vp::stretchContrastHSV().