Library/ManagedCuda/NPP/NPPImage_8uC1.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="values">array of user defined OUTPUT values</param>
/// <param name="levels">array of user defined INPUT values</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 LUTLinear(NPPImage_8uC1 dest, CudaDeviceVariable<int> values, CudaDeviceVariable<int> levels)
		{
			if (values.Size != levels.Size) throw new ArgumentException("values and levels must have same size.");
			status = NPPNativeMethods.NPPi.ColorProcessing.nppiLUT_Linear_8u_C1R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, values.DevicePointer, levels.DevicePointer, (int)levels.Size) ;
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiLUT_Linear_8u_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void LUTLinear ( NPPImage_8uC1 dest , CudaDeviceVariable < int > values , CudaDeviceVariable < int > levels ) { if ( values . Size != levels . Size ) throw new ArgumentException ( " " ) ; status = NPPNativeMethods . NPPi . ColorProcessing . nppiLUT_Linear_8u_C1R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , values . DevicePointer , levels . DevicePointer , ( int ) levels . Size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
look-up-table color conversion.
look - up - table color conversion .
dest
NPPImage_8uC1
None
values
CudaDeviceVariable<int>
array of user defined OUTPUT values
array of user defined OUTPUT values
levels
CudaDeviceVariable<int>
array of user defined INPUT values
array of user defined INPUT values