Library/ManagedCuda/NPP/NPPImage_16uC3.cs
/// <summary>
/// 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.
/// </summary>
/// <param name="dst">Destination-Image</param>
/// <param name="pTable">Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.</param>
/// <param name="nBitSize">Number of least significant bits (must be &gt; 0 and &lt;= 8) of each source pixel value to use as index into palette table during conversion.</param>
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.
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 .
public void LUTPalette(NPPImage_16uC3 dst, CudaDeviceVariable<byte>[] pTable, int nBitSize)
		{
			CUdeviceptr[] ptrsT = new CUdeviceptr[] { pTable[0].DevicePointer, pTable[1].DevicePointer, pTable[2].DevicePointer };
			status = NPPNativeMethods.NPPi.ColorLUTPalette.nppiLUTPalette_16u_C3R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, ptrsT, nBitSize);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUTPalette_16u_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void LUTPalette ( NPPImage_16uC3 dst , CudaDeviceVariable < byte > [ ] pTable , int nBitSize ) { CUdeviceptr [ ] ptrsT = new CUdeviceptr [ ] { pTable [ 0 ] . DevicePointer , pTable [ 1 ] . DevicePointer , pTable [ 2 ] . DevicePointer } ; status = NPPNativeMethods . NPPi . ColorLUTPalette . nppiLUTPalette_16u_C3R ( _devPtrRoi , _pitch , dst . DevicePointerRoi , dst . Pitch , _sizeRoi , ptrsT , nBitSize ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
range restricted palette look-up-table color conversion.
range restricted palette look - up - table color conversion .
dst
NPPImage_16uC3
None
pTable
CudaDeviceVariable<byte>[]
Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT palette values.
Host pointer to an array of 3 device memory pointers one per color CHANNEL pointing to user defined OUTPUT palette values .
nBitSize
int
Number of least significant bits (must be > 0 and <= 8) of each source pixel value to use as index into palette table during conversion.
Number of least significant bits ( must be > 0 and < = 8 ) of each source pixel value to use as index into palette table during conversion .