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

LUT() public method

Inplace look-up-table color conversion. The LUT is derived from a set of user defined mapping points with no interpolation.
public LUT ( CudaDeviceVariable pValues, CudaDeviceVariable pLevels ) : void
pValues CudaDeviceVariable Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
pLevels CudaDeviceVariable Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.
return void
        public void LUT(CudaDeviceVariable<int>[] pValues, CudaDeviceVariable<int>[] pLevels)
        {
            CUdeviceptr[] ptrsV = new CUdeviceptr[] { pValues[0].DevicePointer, pValues[1].DevicePointer, pValues[2].DevicePointer };
            CUdeviceptr[] ptrsL = new CUdeviceptr[] { pLevels[0].DevicePointer, pLevels[1].DevicePointer, pLevels[2].DevicePointer };
            int[] size = new int[] { (int)pLevels[0].Size, (int)pLevels[1].Size, (int)pLevels[2].Size };
            status = NPPNativeMethods.NPPi.ColorLUT.nppiLUT_8u_C3IR(_devPtrRoi, _pitch, _sizeRoi, ptrsV, ptrsL, size);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUT_8u_C3IR", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::LUT ( NPPImage_8uC3 dst, CudaDeviceVariable pValues, CudaDeviceVariable pLevels ) : void
NPPImage_8uC3