Class NPPNativeMethods.NPPi.ColorLUTPalette
Perform image color processing using various types of bit range restricted palette color look up tables.
Inheritance
Inherited Members
Namespace: ManagedCuda.NPP
Assembly: NPP.dll
Syntax
public static class ColorLUTPalette
Methods
nppiLUTPalette_16u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u24u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u24u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (3 unsigned bytes per pixel). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u32u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u32u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (4 bytes per pixel). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_16u8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_16u8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (1 unsigned byte per pixel). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPalette_8u_AC4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u_AC4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPalette_8u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPalette_8u_C3R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u_C3R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPalette_8u_C4R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u_C4R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step. |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 4 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPalette_8u24u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u24u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (3 bytes per pixel). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPalette_8u32u_C1R(CUdeviceptr, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr, Int32)
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.
Declaration
public static NppStatus nppiLUTPalette_8u32u_C1R(CUdeviceptr pSrc, int nSrcStep, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr pTable, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (4 bytes per pixel). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr | pTable | Pointer to an array of user defined OUTPUT palette values (this is a device memory pointer) |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |
nppiLUTPaletteSwap_16u_C3A0C4R(CUdeviceptr, Int32, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
Three channel 16-bit unsigned source bit range restricted palette look-up-table color conversion to four channel 16-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.
Declaration
public static NppStatus nppiLUTPaletteSwap_16u_C3A0C4R(CUdeviceptr pSrc, int nSrcStep, int nAlphaValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step (3 unsigned short integers per pixel). |
System.Int32 | nAlphaValue | Signed alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (4 unsigned short integers per pixel with alpha). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 16. |
nppiLUTPaletteSwap_8u_C3A0C4R(CUdeviceptr, Int32, Int32, CUdeviceptr, Int32, NppiSize, CUdeviceptr[], Int32)
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.
Declaration
public static NppStatus nppiLUTPaletteSwap_8u_C3A0C4R(CUdeviceptr pSrc, int nSrcStep, int nAlphaValue, CUdeviceptr pDst, int nDstStep, NppiSize oSizeROI, CUdeviceptr[] pTables, int nBitSize)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | pSrc | Source-Image Pointer. |
System.Int32 | nSrcStep | Source-Image Line Step (3 bytes per pixel). |
System.Int32 | nAlphaValue | Signed alpha value that will be used to initialize the pixel alpha channel position in all modified destination pixels. |
CUdeviceptr | pDst | Destination-Image Pointer. |
System.Int32 | nDstStep | Destination-Image Line Step (4 bytes per pixel with alpha). |
NppiSize | oSizeROI | Region-of-Interest (ROI). |
CUdeviceptr[] | pTables | Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values. |
System.Int32 | 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. |
Returns
Type | Description |
---|---|
NppStatus | StepError, NotEvenStepError, NullPointerError, AlignmentError, StepError, SizeError - ::NPP_LUT_PALETTE_BITSIZE_ERROR if nBitSize is < 1 or > 8. |