ManagedCuda.NPP.NPPImage_8uC3.LUTPalette C# (CSharp) Method

LUTPalette() public method

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 LUTPalette ( NPPImage_8uC3 dst, CudaDeviceVariable pTable, int nBitSize ) : void
dst NPPImage_8uC3 Destination-Image
pTable CudaDeviceVariable 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.
return void
        public void LUTPalette(NPPImage_8uC3 dst, CudaDeviceVariable<byte>[] pTable, int nBitSize)
        {
            CUdeviceptr[] ptrsT = new CUdeviceptr[] { pTable[0].DevicePointer, pTable[1].DevicePointer, pTable[2].DevicePointer };
            status = NPPNativeMethods.NPPi.ColorLUTPalette.nppiLUTPalette_8u_C3R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, ptrsT, nBitSize);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUTPalette_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }
NPPImage_8uC3