Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// look-up-table color conversion.<para/>
/// The LUT is derived from a set of user defined mapping points through linear interpolation.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="values0">array of user defined OUTPUT values, channel 0</param>
/// <param name="levels0">array of user defined INPUT values, channel 0</param>
/// <param name="values1">array of user defined OUTPUT values, channel 1</param>
/// <param name="levels1">array of user defined INPUT values, channel 1</param>
/// <param name="values2">array of user defined OUTPUT values, channel 2</param>
/// <param name="levels2">array of user defined INPUT values, channel 2</param>
/// <param name="values3">array of user defined OUTPUT values, channel 3</param>
/// <param name="levels3">array of user defined INPUT values, channel 3</param>
look-up-table color conversion.
The LUT is derived from a set of user defined mapping points through linear interpolation.
look - up - table color conversion . The LUT is derived from a set of user defined mapping points through linear interpolation .
public void Lut(NPPImage_16sC4 dest, CudaDeviceVariable<int> values0, CudaDeviceVariable<int> levels0, CudaDeviceVariable<int> values1, CudaDeviceVariable<int> levels1,
			CudaDeviceVariable<int> values2, CudaDeviceVariable<int> levels2, CudaDeviceVariable<int> values3, CudaDeviceVariable<int> levels3)
		{
			CUdeviceptr[] values = new CUdeviceptr[4];
			CUdeviceptr[] levels = new CUdeviceptr[4];
			int[] levelLengths = new int[4];
			values[0] = values0.DevicePointer;
			values[1] = values1.DevicePointer;
			values[2] = values2.DevicePointer;
			values[3] = values3.DevicePointer;
			levels[0] = levels0.DevicePointer;
			levels[1] = levels1.DevicePointer;
			levels[2] = levels2.DevicePointer;
			levels[3] = levels3.DevicePointer;
			levelLengths[0] = levels0.Size;
			levelLengths[1] = levels1.Size;
			levelLengths[2] = levels2.Size;
			levelLengths[3] = levels3.Size;
			status = NPPNativeMethods.NPPi.ColorLUTLinear.nppiLUT_Linear_16s_C4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, values, levels, levelLengths);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUT_Linear_16s_C4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Lut ( NPPImage_16sC4 dest , CudaDeviceVariable < int > values0 , CudaDeviceVariable < int > levels0 , CudaDeviceVariable < int > values1 , CudaDeviceVariable < int > levels1 , CudaDeviceVariable < int > values2 , CudaDeviceVariable < int > levels2 , CudaDeviceVariable < int > values3 , CudaDeviceVariable < int > levels3 ) { CUdeviceptr [ ] values = new CUdeviceptr [ 4 ] ; CUdeviceptr [ ] levels = new CUdeviceptr [ 4 ] ; int [ ] levelLengths = new int [ 4 ] ; values [ 0 ] = values0 . DevicePointer ; values [ 1 ] = values1 . DevicePointer ; values [ 2 ] = values2 . DevicePointer ; values [ 3 ] = values3 . DevicePointer ; levels [ 0 ] = levels0 . DevicePointer ; levels [ 1 ] = levels1 . DevicePointer ; levels [ 2 ] = levels2 . DevicePointer ; levels [ 3 ] = levels3 . DevicePointer ; levelLengths [ 0 ] = levels0 . Size ; levelLengths [ 1 ] = levels1 . Size ; levelLengths [ 2 ] = levels2 . Size ; levelLengths [ 3 ] = levels3 . Size ; status = NPPNativeMethods . NPPi . ColorLUTLinear . nppiLUT_Linear_16s_C4R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , values , levels , levelLengths ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
look-up-table color conversion.
look - up - table color conversion .
dest
NPPImage_16sC4
None
values0
CudaDeviceVariable<int>
array of user defined OUTPUT values, channel 0
array of user defined OUTPUT values channel 0
levels0
CudaDeviceVariable<int>
array of user defined INPUT values, channel 0
array of user defined INPUT values channel 0
values1
CudaDeviceVariable<int>
array of user defined OUTPUT values, channel 1
array of user defined OUTPUT values channel 1
levels1
CudaDeviceVariable<int>
array of user defined INPUT values, channel 1
array of user defined INPUT values channel 1
values2
CudaDeviceVariable<int>
array of user defined OUTPUT values, channel 2
array of user defined OUTPUT values channel 2
levels2
CudaDeviceVariable<int>
array of user defined INPUT values, channel 2
array of user defined INPUT values channel 2
values3
CudaDeviceVariable<int>
array of user defined OUTPUT values, channel 3
array of user defined OUTPUT values channel 3
levels3
CudaDeviceVariable<int>
array of user defined INPUT values, channel 3
array of user defined INPUT values channel 3