Image Color Conversion Functions
Routines manipulating an image’s color model and sampling format.
These functions can be found in the nppicc library. Linking to only the sub-libraries that you use can significantly save link time, application load time, and CUDA runtime startup time when using dynamic libraries.
Color Processing Functions
Routines for performing image color manipulation.
Color To Gray Conversion
Routines for converting color images to grayscale.
RGBToGray
RGB to CCIR601 Gray conversion.
Here is how NPP converts gamma corrected RGB to CCIR601 Gray.
nGray = 0.299F * R + 0.587F * G + 0.114F * B;
-
NppStatus nppiRGBToGray_Ctx(NppDataType eSrcDstType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppStreamContext nppStreamCtx)
Packed RGB to 1 channel packed Gray conversion.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_3, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nppStreamCtx – Application Managed Stream Context.
- Returns
ColorToGray
RGB Color to Gray conversion using user supplied conversion coefficients.
Here is how NPP converts gamma corrected RGB Color to Gray using user supplied conversion coefficients.
nGray = aCoeffs[0] * R + aCoeffs[1] * G + aCoeffs[2] * B;
For the C4C1R versions of the functions the calculations are as follows.
For BGRA or other formats with alpha just rearrange the coefficients accordingly.
nGray = aCoeffs[0] * R + aCoeffs[1] * G + aCoeffs[2] * B + aCoeffs[3] * A;
-
NppStatus nppiColorToGray_Ctx(NppDataType eSrcDstType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aCoeffs[4], NppStreamContext nppStreamCtx)
Packed RGB to 1 channel packed Gray conversion.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aCoeffs – fixed size array of constant floating point conversion coefficient values, one per color channel. Note that size of aCoeffs array is ALWAYS 4
nppStreamCtx – Application Managed Stream Context.
- Returns
GradientColorToGray
RGB Color to Gray Gradient conversion using user selected gradient distance method.
-
NppStatus nppiGradientColorToGray_Ctx(NppDataType eSrcDstType, NppiChannels eSrcChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, NppiNorm eNorm, NppStreamContext nppStreamCtx)
Packed RGB to 1 channel packed Gray Gradient conversion.
Supported data types include NPP_8U, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
eNorm – Gradient distance method to use.
nppStreamCtx – Application Managed Stream Context.
- Returns
Color Debayer
Grayscale Color Filter Array to RGB Color Debayer conversion.
Generates one RGB color pixel for every grayscale source pixel. Source and destination images must have even width and height. Missing pixel colors are generated using bilinear interpolation with chroma correlation of generated green values (eInterpolation MUST be set to 0). eGrid allows the user to specify the Bayer grid registration position at source image location oSrcROI.x, oSrcROI.y relative to pSrc. Possible registration positions are:
NPPI_BAYER_BGGR NPPI_BAYER_RGGB NPPI_BAYER_GBRG NPPI_BAYER_GRBG
B G R G G B G R
G R G B R G B G
If it becomes necessary to access source pixels outside source image then the source image borders are mirrored.
Here is how the algorithm works. R, G, and B base pixels from the source image are used unmodified. To generate R values for those G pixels, the average of R(x - 1, y) and R(x + 1, y) or R(x, y - 1) and R(x, y + 1) is used depending on whether the left and right or top and bottom pixels are R base pixels. To generate B values for those G pixels, the same algorithm is used using nearest B values. For an R base pixel, if there are no B values in the upper, lower, left, or right adjacent pixels then B is the average of B values in the 4 diagonal (G base) pixels. The same algorithm is used using R values to generate the R value of a B base pixel. Chroma correlation is applied to generated G values only, for a B base pixel G(x - 1, y) and G(x + 1, y) are averaged or G(x, y - 1) and G(x, y + 1) are averaged depending on whether the absolute difference between B(x, y) and the average of B(x - 2, y) and B(x + 2, y) is smaller than the absolute difference between B(x, y) and the average of B(x, y - 2) and B(x, y + 2). For an R base pixel the same algorithm is used testing against the surrounding R values at those offsets. If the horizontal and vertical differences are the same at one of those pixels then the average of the four left, right, upper and lower G values is used instead.
Functions
-
NppStatus nppiCFAToRGB_Ctx(NppDataType eSrcDstType, NppiChannels eDstChannels, const void *pSrc, int nSrcStep, NppiSize oSrcSize, NppiRect oSrcROI, void *pDst, int nDstStep, NppiBayerGridPosition eGrid, NppiInterpolationMode eInterpolation, Npp32u nAlpha, NppStreamContext nppStreamCtx)
1 channel packed CFA grayscale Bayer pattern to packed RGB conversion.
Supported data types include NPP_8U, NPP_16U, NPP_32U. Supported channel counts include NPP_CH_3, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
oSrcSize – full source image width and height relative to pSrc.
oSrcROI – rectangle specifying starting source image pixel x and y location relative to pSrc and ROI width and height.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
eGrid – enumeration value specifying bayer grid registration position at location oSrcROI.x, oSrcROI.y relative to pSrc.
eInterpolation – MUST be NPPI_INTER_UNDEFINED
nAlpha – constant alpha value to be written to each destination pixel (when in AC4R mode)
nppStreamCtx – Application Managed Stream Context.
- Returns
Color Gamma Correction
Routines for correcting image color gamma.
Complement Color Key
Routines for performing complement color key replacement.
CompColorKey
Complement color key replacement.
-
NppStatus nppiCompColorKey_Ctx(NppDataType eSrcType, NppiChannels eSrcDstChannels, const void *pSrc1, int nSrc1Step, const void *pSrc2, int nSrc2Step, void *pDst, int nDstStep, NppiSize oSizeROI, Npp8u aColorKeyConst[4], NppStreamContext nppStreamCtx)
8-bit unsigned packed color complement color key replacement of source image 1 by source image 2.
Supported data types include NPP_8U. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4.
- Parameters
eSrcType – source Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc1 – source1 packed pixel format image pointer.
nSrc1Step – source1 packed pixel format image line step.
pSrc2 – source2 packed pixel format image pointer.
nSrc2Step – source2 packed pixel format image line step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aColorKeyConst – color key constant array
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiAlphaCompColorKey_8u_AC4R_Ctx(const Npp8u *pSrc1, int nSrc1Step, Npp8u nAlpha1, const Npp8u *pSrc2, int nSrc2Step, Npp8u nAlpha2, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp8u nColorKeyConst[4], NppiAlphaOp nppAlphaOp, NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned packed color complement color key replacement of source image 1 by source image 2 with alpha blending.
- Parameters
pSrc1 – source1 packed pixel format image pointer.
nSrc1Step – source1 packed pixel format image line step.
nAlpha1 – source1 image alpha opacity (0 - max channel pixel value).
pSrc2 – source2 packed pixel format image pointer.
nSrc2Step – source2 packed pixel format image line step.
nAlpha2 – source2 image alpha opacity (0 - max channel pixel value).
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
nColorKeyConst – color key constant array
nppAlphaOp – NppiAlphaOp alpha compositing operation selector (excluding premul ops).
nppStreamCtx – Application Managed Stream Context.
- Returns
ColorTwist
Routines for converting between various image color models using user supplied matrix coefficients.
ColorTwist
Perform color twist pixel processing.
Color twist consists of applying the following formula to each image pixel using coefficients from the user supplied color twist host matrix array as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x. The full sized coefficient matrix should be sent for all pixel channel sizes, the function will process the appropriate coefficients and channels for the corresponding pixel size.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3]
dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3]
dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3]
-
NppStatus nppiColorTwist32f_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc, int nSrcStep, void *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Packed image color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_2, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32f_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
In place packed image color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_2, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – in place packed pixel format image pointer.
nSrcDstStep – in place packed pixel format image line step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32f_Planar_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, const void *pSrc[3], int nSrcStep, void *pDst[3], int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Planar image color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_P3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32f_Planar_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, void *pSrcDst[3], int nSrcDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
In place planar image color twist.
An input color twist matrix with floating-point coefficient values is applied within ROI.
Supported data types include NPP_8U, NPP_8S, NPP_16U, NPP_16S, NPP_32F. Supported channel counts include NPP_CH_P3.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
pSrcDst – in place packed pixel format image pointer.
nSrcDstStep – in place packed pixel format image line step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32fC_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned color twist with 4x4 matrix and constant vector addition.
An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32fC_8u_C4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned in place color twist with 4x4 matrix and an additional constant vector addition.
An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrcDst – in place packed pixel format image pointer.
nSrcDstStep – in place packed pixel format image line step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32fC_16f_C4R_Ctx(const Npp16f *pSrc, int nSrcStep, Npp16f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 16-bit floating point color twist with 4x4 matrix and constant vector addition.
An input 4x4 color twist matrix with 32-bit floating-point coefficient values with an additional 32-bit floating point constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist32fC_16f_C4IR_Ctx(Npp16f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 16-bit floating point in place color twist with 4x4 matrix and an additional constant vector addition.
An input 4x4 color twist matrix with 32-bit floating-point coefficient values with an additional 32-bit floating point constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrcDst – in place packed pixel format image pointer.
nSrcDstStep – in place packed pixel format image line step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist_32fC_C4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point color twist with 4x4 matrix and constant vector addition.
An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwist_32fC_C4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f aTwist[4][4], const Npp32f aConstants[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point in place color twist with 4x4 matrix and an additional constant vector addition.
An input 4x4 color twist matrix with floating-point coefficient values with an additional constant vector addition is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aConstants[0] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aConstants[1] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aConstants[2] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aConstants[3]
- Parameters
pSrcDst – in place packed pixel format image pointer.
nSrcDstStep – in place packed pixel format image line step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
aConstants – fixed size array of constant values, one per channel..
nppStreamCtx – Application Managed Stream Context.
- Returns
ColorTwistBatch
Routines for converting between various image color models using user supplied matrix coefficients on batches of images.
ColorTwistBatch
Perform color twist pixel batch processing.
Color twist consists of applying the following formula to each image pixel using coefficients from one or more user supplied color twist device memory matrix arrays as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x. The full sized coefficient matrix should be sent for all pixel channel sizes, the function will process the appropriate coefficients and channels for the corresponding pixel size. ColorTwistBatch generally takes the same parameter list as ColorTwist except that there is a list of N instances of those parameters (N > 1) and that list is passed in device memory; The matrix pointers referenced for each image in the batch also need to point to device memory matrix values. A convenient data structure is provided that allows for easy initialization of the parameter lists. The only restriction on these functions is that there is one single ROI which is applied respectively to each image in the batch. The primary purpose of this function is to provide improved performance for batches of smaller images as long as GPU resources are available. Therefore it is recommended that the function not be used for very large images as there may not be resources available for processing several large images simultaneously.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3]
dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3]
dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3]
-
NppStatus nppiColorTwistBatch32f_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
Image color twist batch.
An input color twist matrix with floating-point coefficient values is applied within the ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
Supported data types include NPP_8U, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch32f_I_Ctx(NppDataType eSrcDstType, NppiChannels eSrcDstChannels, Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
In place image color twist batch.
An input color twist matrix with floating-point coefficient values is applied within the ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
Supported data types include NPP_8U, NPP_16F, NPP_32F. Supported channel counts include NPP_CH_1, NPP_CH_3, NPP_CH_4, NPP_CH_A4.
- Parameters
eSrcDstType – Image Data Type.
eSrcDstChannels – Image Data Channels.
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch32fC_8u_C4R_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned integer color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with floating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch32fC_8u_C4IR_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned integer in place color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with floating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch_32fC_C4R_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel 32-bit floating point color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with floating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch_32fC_C4IR_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel in place 32-bit floating point color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with floating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch32fC_16f_C4R_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel 16-bit floating point color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with 32-bit floating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with 32-bit floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiColorTwistBatch32fC_16f_C4IR_Ctx(Npp32f nMin, Npp32f nMax, NppiSize oSizeROI, NppiColorTwistBatchCXR *pBatchList, int nBatchSize, NppStreamContext nppStreamCtx)
4 channel in place 16-bit floating point color twist with 4x5 matrix including a constant vector (20 coefficients total).
An input 4x5 color twist matrix with 32-bitfloating-point coefficient values including a constant (in the fourth column) vector is applied within ROI. For this particular version of the function the result is generated as shown below.
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3] * src[3] + aTwist[0][4] dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3] * src[3] + aTwist[1][4] dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3] * src[3] + aTwist[2][4] dst[3] = aTwist[3][0] * src[0] + aTwist[3][1] * src[1] + aTwist[3][2] * src[2] + aTwist[3][3] * src[3] + aTwist[3][4]
An input color twist matrix with 32-bit floating-point coefficient values is applied within ROI for each image in batch. Color twist matrix can vary per image. The same ROI is applied to each image.
- Parameters
nMin – Minimum clamp value.
nMax – Maximum saturation and clamp value.
oSizeROI – Region-Of-Interest (ROI).
pBatchList – Device memory pointer to nBatchSize list of NppiColorTwistBatchCXR structures.
nBatchSize – Number of NppiColorTwistBatchCXR structures in this call (must be > 1).
nppStreamCtx – Application Managed Stream Context.
- Returns
ColorTwistWithModelAndFormatConversion
Routines for converting between various image color models using user supplied matrix coefficients.
RGBToYUVColorTwist
Normally, color twist is a 3-channel operation that takes place on RGB data.
The following functions also perform the color twist operation, but while converting between image formats: RGBToYUV420, RGBToYUV422, and RGBToNV12.
To recap color twist pixel processing: Color twist consists of applying the following formula to each image pixel using coefficients from the user supplied color twist host matrix array as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x. The full sized coefficient matrix should be sent for all pixel channel sizes, the function will process the appropriate coefficients and channels for the corresponding pixel size.
This is how the matrix works for a RGB->YUV420/YUV422/NV12 forward transform:
dst[0] = aTwist[0][0] * src[0] + aTwist[0][1] * src[1] + aTwist[0][2] * src[2] + aTwist[0][3]
dst[1] = aTwist[1][0] * src[0] + aTwist[1][1] * src[1] + aTwist[1][2] * src[2] + aTwist[1][3]
dst[2] = aTwist[2][0] * src[0] + aTwist[2][1] * src[1] + aTwist[2][2] * src[2] + aTwist[2][3]
-
NppStatus nppiRGBToYUV420_8u_ColorTwist32f_P3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar RGB convertion to three channel 8-bit unsigned planar YUV 4:2:0, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV420_16u_ColorTwist32f_P3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar RGB convertion to three channel 16-bit unsigned planar YUV 4:2:0, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV420_8u_ColorTwist32f_C3P3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned packed RGB convertion to three channel 8-bit unsigned planar YUV 4:2:0, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV420_16u_ColorTwist32f_C3P3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned packed RGB convertion to three channel 16-bit unsigned planar YUV 4:2:0, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_8u_ColorTwist32f_P3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar RGB convertion to three channel 8-bit unsigned planar YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_16u_ColorTwist32f_P3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar RGB convertion to three channel 16-bit unsigned planar YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_8u_ColorTwist32f_C3C2R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned packed RGB convertion to two channel 8-bit unsigned packed YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_16u_ColorTwist32f_C3C2R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned packed RGB convertion to two channel 16-bit unsigned packed YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_8u_ColorTwist32f_C3P3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned packed RGB convertion to three channel 8-bit unsigned planar YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToYUV422_16u_ColorTwist32f_C3P3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned packed RGB convertion to three channel 16-bit unsigned planar YUV 4:2:2, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToNV12_8u_ColorTwist32f_C3P2R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst[2], int aDstStep[2], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned packed RGB convertion to two channel 8-bit unsigned planar NV12, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToNV12_16u_ColorTwist32f_C3P2R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst[2], int aDstStep[2], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned packed RGB convertion to two channel 16-bit unsigned planar NV12, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToNV12_8u_ColorTwist32f_P3P2R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst[2], int aDstStep[2], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar RGB convertion to two channel 8-bit unsigned planar NV12, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiRGBToNV12_16u_ColorTwist32f_P3P2R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst[2], int aDstStep[2], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar RGB convertion to two channel 16-bit unsigned planar NV12, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
YUVToRGBColorTwist
This is the inverse color twist, a 3-channel operation that takes place on YUV/NV12 data to produce RGB data, supporting the following conversions: YUV420ToRGB, YUV422ToRGB, and NV12ToRGB.
The INVERSE Color twist consists of applying the following formula to each image pixel using coefficients from the user supplied color twist host matrix array as follows where dst[x] and src[x] represent destination pixel and source pixel channel or plane x. The full sized coefficient matrix should be sent for all pixel channel sizes, the function will process the appropriate coefficients and channels for the corresponding pixel size.
This is how the matrix works for the YUV420/YUV/422/NV12->RGB INVERSE transform:
(note- do the offsets first):
src[0]' = src[0] + aTwist[0][3]
src[1]' = src[1] + aTwist[1][3]
src[2]' = src[2] + aTwist[2][3]
And then the remaining 3x3 twist matrix is applied using those modified values:
dst[0] = aTwist[0][0] * src[0]' + aTwist[0][1] * src[1]' + aTwist[0][2] * src[2]'
dst[1] = aTwist[1][0] * src[0]' + aTwist[1][1] * src[1]' + aTwist[1][2] * src[2]'
dst[2] = aTwist[2][0] * src[0]' + aTwist[2][1] * src[1]' + aTwist[2][2] * src[2]'
Since the 4th column of the matrix is the offsets (either 0 or half-max to shift the values to be positive), as they’re applied last in the forward transform (to YUV), they need to be applied FIRST in the inverse transform (back to RGB). This does mean that +-16384 has to be used for 16u images where there was a +-128 for 8u images in both forward and inverse cases.
-
NppStatus nppiYUV420ToRGB_8u_ColorTwist32f_P3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:0 convertion to three channel 8-bit unsigned planar RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_16u_ColorTwist32f_P3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:0 convertion to three channel 16-bit unsigned planar RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_8u_ColorTwist32f_P3C3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:0 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_16u_ColorTwist32f_P3C3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:0 convertion to three channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_8u_ColorTwist32f_P3C4R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:0 convertion to four channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with constant alpha (0xFF).
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_16u_ColorTwist32f_P3C4R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:0 convertion to four channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with constant alpha (0xFFFF).
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_8u_ColorTwist32f_P3AC4R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], const Npp8u nAlpha, NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:0 convertion to four channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with user set alpha.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nAlpha – 8-bit unsigned alpha constant.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV420ToRGB_16u_ColorTwist32f_P3AC4R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], const Npp16u nAlpha, NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:0 convertion to four channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with user set alpha.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nAlpha – 16-bit unsigned alpha constant.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_8u_ColorTwist32f_C2C3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Two channel 8-bit unsigned packed YUV4:2:2 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_16u_ColorTwist32f_C2C3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Two channel 16-bit unsigned packed YUV4:2:2 convertion to three channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_8u_ColorTwist32f_P3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:2 convertion to three channel 8-bit unsigned planar RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_16u_ColorTwist32f_P3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst[3], int aDstStep[3], NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:2 convertion to three channel 16-bit unsigned planar RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
aDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_8u_ColorTwist32f_P3C3R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:2 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_16u_ColorTwist32f_P3C3R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:2 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_8u_ColorTwist32f_P3AC4R_Ctx(const Npp8u *const pSrc[3], int aSrcStep[3], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], const Npp8u nAlpha, NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned planar YUV4:2:2 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with user set alpha.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nAlpha – 8-bit unsigned alpha constant.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiYUV422ToRGB_16u_ColorTwist32f_P3AC4R_Ctx(const Npp16u *const pSrc[3], int aSrcStep[3], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], const Npp16u nAlpha, NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned planar YUV4:2:2 convertion to three channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic, with user set alpha.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nAlpha – 16-bit unsigned alpha constant.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiNV12ToRGB_8u_ColorTwist32f_P2C3R_Ctx(const Npp8u *const pSrc[2], int aSrcStep[2], Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Two channel 8-bit unsigned planar NV12 convertion to three channel 8-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
-
NppStatus nppiNV12ToRGB_16u_ColorTwist32f_P2C3R_Ctx(const Npp16u *const pSrc[2], int aSrcStep[2], Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f aTwist[3][4], NppStreamContext nppStreamCtx)
Two channel 16-bit unsigned planar NV12 convertion to three channel 16-bit unsigned packed RGB, using a Color Twist to compute the exact color space arithmetic.
- Parameters
pSrc – Source-Image Pointer.
aSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
aTwist – The color twist matrix with floating-point coefficient values.
nppStreamCtx – Application Managed Stream Context.
- Returns
ColorLUT
Perform image color processing using members of various types of color look up tables.
Functions
-
NppStatus nppiLUT_8u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_C1IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_C3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_C3IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_C4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_AC4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_8u_AC4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_16u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_C1IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_C3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_C3IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_C4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_C4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_AC4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16u_AC4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C1R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C1IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C3R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C3IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_C4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_AC4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_16s_AC4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C1R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C1IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C3R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C3IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points with no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_C4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_AC4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_32f_AC4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
ColorLUTLinear
Perform image color processing using linear interpolation between members of various types of color look up tables.
Functions
-
NppStatus nppiLUT_Linear_8u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned linear interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
ATTENTION ATTENTION <<<<<<<
<<<<<<<
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is now a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is now a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_C1IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned linear interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_C3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned linear interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
ATTENTION ATTENTION <<<<<<<
<<<<<<<
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_C3IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned linear interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned linear interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
ATTENTION ATTENTION <<<<<<<
<<<<<<<
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_C4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned linear interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_AC4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned linear interpolated look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points through linear interpolation. Alpha channel is the last channel and is not processed.
ATTENTION ATTENTION <<<<<<<
<<<<<<<
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_8u_AC4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned linear interpolated look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points through linear interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Linear_16u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_C1IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_C3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_C3IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_C4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_C4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_AC4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16u_AC4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C1R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C1IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C3R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C3IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_C4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_AC4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_16s_AC4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C1R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C1IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C3R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C3IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using linear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_C4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_AC4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Linear_32f_AC4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
ColorLUTCubic
Perform image color processing using linear interpolation between members of various types of color look up tables.
Functions
-
NppStatus nppiLUT_Cubic_8u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned cubic interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_C1IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
8-bit unsigned cubic interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_C3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned cubic interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_C3IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 8-bit unsigned cubic interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned cubic interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_C4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned cubic interpolated look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_AC4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned cubic interpolated look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points through cubic interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_8u_AC4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 8-bit unsigned cubic interpolated look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points through cubic interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Cubic_16u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_C1IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_C3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_C3IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_C4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_C4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_AC4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16u_AC4IR_Ctx(Npp16u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit unsigned look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C1R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C1IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues, const Npp32s *pLevels, int nLevels, NppStreamContext nppStreamCtx)
16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C3R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C3IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_C4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[4], const Npp32s *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_AC4R_Ctx(const Npp16s *pSrc, int nSrcStep, Npp16s *pDst, int nDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_16s_AC4IR_Ctx(Npp16s *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32s *pValues[3], const Npp32s *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 16-bit signed look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C1R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C1IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues, const Npp32f *pLevels, int nLevels, NppStreamContext nppStreamCtx)
32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Pointer to an array of user defined OUTPUT values (this is a device memory pointer)
pLevels – Pointer to an array of user defined INPUT values (this is a device memory pointer)
nLevels – Number of user defined number of input/output mapping points (levels)
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C3R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C3IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
3 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_C4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[4], const Npp32f *pLevels[4], int nLevels[4], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion.
The LUT is derived from a set of user defined mapping points using no interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 4 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_AC4R_Ctx(const Npp32f *pSrc, int nSrcStep, Npp32f *pDst, int nDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
-
NppStatus nppiLUT_Cubic_32f_AC4IR_Ctx(Npp32f *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, const Npp32f *pValues[3], const Npp32f *pLevels[3], int nLevels[3], NppStreamContext nppStreamCtx)
4 channel 32-bit floating point look-up-table in place color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points using no interpolation. Alpha channel is the last channel and is not processed.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values.
nLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per color CHANNEL.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 1024 (the current size limit).
ColorLUTTrilinear
Perform image color processing using 3D trilinear interpolation between members of various types of color look up tables.
Functions
-
NppStatus nppiLUT_Trilinear_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp32u *pValues, Npp8u *pLevels[3], int aLevels[3], NppStreamContext nppStreamCtx)
Four channel 8-bit unsigned 3D trilinear interpolated look-up-table color conversion, with alpha copy.
Alpha channel is the last channel and is copied to the destination unmodified.
The LUT is derived from a set of user defined mapping points through trilinear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Device pointer to aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.
pLevels – Host pointer to an array of 3 host pointers, one per cube edge, pointing to user defined INPUT level values.
aLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Trilinear_8u_AC4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, Npp32u *pValues, Npp8u *pLevels[3], int aLevels[3], NppStreamContext nppStreamCtx)
Four channel 8-bit unsigned 3D trilinear interpolated look-up-table color conversion, not affecting alpha.
Alpha channel is the last channel and is not processed.
The LUT is derived from a set of user defined mapping points through trilinear interpolation.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Device pointer to aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.
pLevels – Host pointer to an array of 3 host pointers, one per cube edge, pointing to user defined INPUT level values.
aLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
-
NppStatus nppiLUT_Trilinear_8u_AC4IR_Ctx(Npp8u *pSrcDst, int nSrcDstStep, NppiSize oSizeROI, Npp32u *pValues, Npp8u *pLevels[3], int aLevels[3], NppStreamContext nppStreamCtx)
Four channel 8-bit unsigned 3D trilinear interpolated look-up-table in place color conversion, not affecting alpha.
Alpha channel is the last channel and is not processed.
The LUT is derived from a set of user defined mapping points through trilinear interpolation.
- Parameters
pSrcDst – In-Place Image Pointer.
nSrcDstStep – In-Place-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pValues – Device pointer aLevels[2] number of contiguous 2D x,y planes of 4-byte packed RGBX values containing the user defined base OUTPUT values at that x,y, and z (R,G,B) level location. Each level must contain x * y 4-byte packed pixel values (4th byte is used for alignement only and is ignored) in row (x) order.
pLevels – Host pointer to an array of 3 host pointers, one per cube edge, pointing to user defined INPUT level values.
aLevels – Host pointer to an array of 3 user defined number of input/output mapping points, one per 3D cube edge. aLevels[0] represents the number of x axis levels (Red), aLevels[1] represents the number of y axis levels (Green), and aLevels[2] represets the number of z axis levels (Blue).
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_NUMBER_OF_LEVELS_ERROR if the number of levels is less than 2 or greater than 256.
ColorLUTPalette
Perform image color processing using various types of bit range restricted palette color look up tables.
Functions
-
NppStatus nppiLUTPalette_8u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 8-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_8u24u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 8-bit unsigned bit range restricted 24-bit palette look-up-table color conversion with 24-bit destination output per pixel.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (3 bytes per pixel).
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_8u32u_C1R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 8-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit destination output per pixel.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (4 bytes per pixel).
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_8u_C3R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_8u_C4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[4], int nBitSize, NppStreamContext nppStreamCtx)
Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_8u_AC4R_Ctx(const Npp8u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
Four channel 8-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8.
-
NppStatus nppiLUTPalette_16u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 16-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u8u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 16-bit unsigned bit range restricted 8-bit unsigned palette look-up-table color conversion with 8-bit unsigned destination output per pixel.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (1 unsigned byte per pixel).
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u24u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 16-bit unsigned bit range restricted 24-bit unsigned palette look-up-table color conversion with 24-bit unsigned destination output per pixel.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (3 unsigned bytes per pixel).
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u32u_C1R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp32u *pDst, int nDstStep, NppiSize oSizeROI, const Npp32u *pTable, int nBitSize, NppStreamContext nppStreamCtx)
One channel 16-bit unsigned bit range restricted 32-bit palette look-up-table color conversion with 32-bit unsigned destination output per pixel.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (4 bytes per pixel).
oSizeROI – Region-Of-Interest (ROI).
pTable – Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer)
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u_C3R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
Three channel 16-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u_C4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[4], int nBitSize, NppStreamContext nppStreamCtx)
Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPalette_16u_AC4R_Ctx(const Npp16u *pSrc, int nSrcStep, Npp16u *pDst, int nDstStep, NppiSize oSizeROI, const Npp16u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
Four channel 16-bit unsigned bit range restricted palette look-up-table color conversion, not affecting Alpha.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. Alpha channel is the last channel and is not processed.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step.
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
nBitSize – Number of least significant bits (must be > 0 and <= 16) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns
Image Data Related Error Codes, ROI Related Error Codes
NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16.
-
NppStatus nppiLUTPaletteSwap_8u_C3A0C4R_Ctx(const Npp8u *pSrc, int nSrcStep, int nAlphaValue, Npp8u *pDst, int nDstStep, NppiSize oSizeROI, const Npp8u *pTables[3], int nBitSize, NppStreamContext nppStreamCtx)
Three channel 8-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 8-bit unsigned destination output with alpha.
The LUT is derived from a set of user defined mapping points in a palette and source pixels are then processed using a restricted bit range when looking up palette values. This function also reverses the source pixel channel order in the destination so the Alpha channel is the first channel.
- Parameters
pSrc – Source-Image Pointer.
nSrcStep – Source-Image Line Step (3 bytes per pixel).
nAlphaValue – Signed alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels.
pDst – Destination-Image Pointer.
nDstStep – Destination-Image Line Step (4 bytes per pixel with alpha).
oSizeROI – Region-Of-Interest (ROI).
pTables – Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. Alpha values < 0 or > 255 will cause destination pixel alpha channel values to be unmodified.
nBitSize – Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
nppStreamCtx – Application Managed Stream Context.
- Returns