NVIDIA Performance Primitives (NPP)
Version 10.0
|
BGR to Lab color conversion. More...
Functions | |
NppStatus | nppiBGRToLab_8u_C3R (const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI) |
3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned packed Lab color conversion. More... |
|
BGR to Lab color conversion.
This is how NPP converts gamma corrected BGR or RGB to Lab using the CIE Lab D65 white point with a Y luminance of 1.0. The computed values of the L component are in the range [0..100], a and b component values are in the range [-128..127]. The code uses cbrtf() the 32 bit floating point cube root math function.
NppStatus nppiBGRToLab_8u_C3R | ( | const Npp8u * | pSrc, |
int | nSrcStep, | ||
Npp8u * | pDst, | ||
int | nDstStep, | ||
NppiSize | oSizeROI | ||
) |
3 channel 8-bit unsigned packed BGR to 3 channel 8-bit unsigned packed Lab color conversion.
pSrc | Source-Image Pointer. |
nSrcStep | Source-Image Line Step. |
pDst | Destination-Image Pointer. |
nDstStep | Destination-Image Line Step. |
oSizeROI | Region-of-Interest (ROI). |