Visual Servoing Platform
version 3.3.0 under development (2020-02-17)
|
Functions | |
VISP_EXPORT void | vp::equalizeHistogram (vpImage< unsigned char > &I) |
VISP_EXPORT void | vp::equalizeHistogram (const vpImage< unsigned char > &I1, vpImage< unsigned char > &I2) |
VISP_EXPORT void | vp::equalizeHistogram (vpImage< vpRGBa > &I, bool useHSV=false) |
VISP_EXPORT void | vp::equalizeHistogram (const vpImage< vpRGBa > &I1, vpImage< vpRGBa > &I2, bool useHSV=false) |
Histogram equalization.
void vp::equalizeHistogram | ( | vpImage< unsigned char > & | I | ) |
Adjust the contrast of a grayscale image by performing an histogram equalization. The intensity distribution is redistributed over the full [0 - 255] range such as the cumulative histogram distribution becomes linear.
I | : The grayscale image to apply histogram equalization. |
Definition at line 164 of file vpImgproc.cpp.
References vpHistogram::calculate(), vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpImage< Type >::performLut(), and vpMath::round().
Referenced by vp::equalizeHistogram().
Adjust the contrast of a grayscale image by performing an histogram equalization. The intensity distribution is redistributed over the full [0 - 255] range such as the cumulative histogram distribution becomes linear.
I1 | : The first grayscale image. |
I2 | : The second grayscale image after histogram equalization. |
Definition at line 226 of file vpImgproc.cpp.
References vp::equalizeHistogram().
Adjust the contrast of a color image by performing an histogram equalization. The intensity distribution is redistributed over the full [0 - 255] range such as the cumulative histogram distribution becomes linear. The alpha channel is ignored / copied from the source alpha channel.
I | : The color image to apply histogram equalization. |
useHSV | : If true, the histogram equalization is performed on the value channel (in HSV space), otherwise the histogram equalization is performed independently on the RGB channels. |
Definition at line 245 of file vpImgproc.cpp.
References vpImage< Type >::bitmap, vp::equalizeHistogram(), vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), vpImageConvert::HSVToRGBa(), vpImageConvert::RGBaToHSV(), and vpImageConvert::split().
void vp::equalizeHistogram | ( | const vpImage< vpRGBa > & | I1, |
vpImage< vpRGBa > & | I2, | ||
bool | useHSV = false |
||
) |
Adjust the contrast of a color image by performing an histogram equalization. The intensity distribution is redistributed over the full [0 - 255] range such as the cumulative histogram distribution becomes linear. The alpha channel is ignored / copied from the source alpha channel.
I1 | : The first color image. |
I2 | : The second color image after histogram equalization. |
useHSV | : If true, the histogram equalization is performed on the value channel (in HSV space), otherwise the histogram equalization is performed independently on the RGB channels. |
Definition at line 320 of file vpImgproc.cpp.
References vp::equalizeHistogram().