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

LUTLinear() public method

Inplace linear interpolated look-up-table color conversion. The LUT is derived from a set of user defined mapping points through cubic interpolation.
public LUTLinear ( 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 LUTLinear(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.ColorLUTLinear.nppiLUT_Linear_8u_C3IR(_devPtrRoi, _pitch, _sizeRoi, ptrsV, ptrsL, size);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUT_Linear_8u_C3IR", status));
            NPPException.CheckNppStatus(status, this);
        }
NPPImage_8uC3