Library/ManagedCuda/NPP/NPPImage_16sC3.cs
/// <summary>
/// cubic interpolated look-up-table color conversion.
/// The LUT is derived from a set of user defined mapping points through cubic interpolation. 
/// </summary>
/// <param name="dst">Destination-Image</param>
/// <param name="pValues">Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.</param>
/// <param name="pLevels">Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.</param>
cubic interpolated look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through cubic interpolation.
cubic interpolated look - up - table color conversion . The LUT is derived from a set of user defined mapping points through cubic interpolation .
public void LUTCubic(NPPImage_16sC3 dst, 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[] { pLevels[0].Size, pLevels[1].Size, pLevels[2].Size };
			status = NPPNativeMethods.NPPi.ColorLUTCubic.nppiLUT_Cubic_16s_C3R(_devPtrRoi, _pitch, dst.DevicePointerRoi, dst.Pitch, _sizeRoi, ptrsV, ptrsL, size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUT_Cubic_16s_C3R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void LUTCubic ( NPPImage_16sC3 dst , 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 [ ] { pLevels [ 0 ] . Size , pLevels [ 1 ] . Size , pLevels [ 2 ] . Size } ; status = NPPNativeMethods . NPPi . ColorLUTCubic . nppiLUT_Cubic_16s_C3R ( _devPtrRoi , _pitch , dst . DevicePointerRoi , dst . Pitch , _sizeRoi , ptrsV , ptrsL , size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
cubic interpolated look-up-table color conversion.
cubic interpolated look - up - table color conversion .
dst
NPPImage_16sC3
None
pValues
CudaDeviceVariable<int>[]
Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined OUTPUT values.
Host pointer to an array of 3 device memory pointers one per color CHANNEL pointing to user defined OUTPUT values .
pLevels
CudaDeviceVariable<int>[]
Host pointer to an array of 3 device memory pointers, one per color CHANNEL, pointing to user defined INPUT values. pLevels.Size gives nLevels.
Host pointer to an array of 3 device memory pointers one per color CHANNEL pointing to user defined INPUT values . pLevels . Size gives nLevels .