Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 16-bit unsigned short signal subtract signal, scale, then clamp to saturated value.
/// </summary>
/// <param name="pSrc1">Source signal pointer.</param>
/// <param name="pSrc2">Source signal pointer, signal1 elements to be subtracted from signal2 elements.</param>
/// <param name="pDst">Destination signal pointer.</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
16-bit unsigned short signal subtract signal, scale, then clamp to saturated value.
16 - bit unsigned short signal subtract signal scale then clamp to saturated value .
public static void Sub(this CudaDeviceVariable<ushort> pSrc1, CudaDeviceVariable<ushort> pSrc2, CudaDeviceVariable<ushort> pDst, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.SubSignal.nppsSub_16u_Sfs(pSrc1.DevicePointer, pSrc2.DevicePointer, pDst.DevicePointer, pSrc1.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsSub_16u_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc1);
		}
public static void Sub ( this CudaDeviceVariable < ushort > pSrc1 , CudaDeviceVariable < ushort > pSrc2 , CudaDeviceVariable < ushort > pDst , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . SubSignal . nppsSub_16u_Sfs ( pSrc1 . DevicePointer , pSrc2 . DevicePointer , pDst . DevicePointer , pSrc1 . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc1 ) ; }
16-bit unsigned short signal subtract signal, scale, then clamp to saturated value.
16 - bit unsigned short signal subtract signal scale then clamp to saturated value .
CudaDeviceVariable<ushort>
this
pSrc2
CudaDeviceVariable<ushort>
Source signal pointer, signal1 elements to be subtracted from signal2 elements.
Source signal pointer signal1 elements to be subtracted from signal2 elements .
pDst
CudaDeviceVariable<ushort>
Destination signal pointer.
Destination signal pointer .
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc1
Source signal pointer.
Source signal pointer .