Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 8-bit unsigned char signal subtract from constant, scale, then clamp to saturated value.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="nValue">Constant value each vector element is to be subtracted from</param>
/// <param name="pDst">Destination signal pointer.</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
8-bit unsigned char signal subtract from constant, scale, then clamp to saturated value.
8 - bit unsigned char signal subtract from constant scale then clamp to saturated value .
public static void SubCRev(this CudaDeviceVariable<byte> pSrc, CudaDeviceVariable<byte> pDst, byte nValue, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.SubCRev.nppsSubCRev_8u_Sfs(pSrc.DevicePointer, nValue, pDst.DevicePointer, pSrc.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsSubCRev_8u_Sfs", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void SubCRev ( this CudaDeviceVariable < byte > pSrc , CudaDeviceVariable < byte > pDst , byte nValue , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . SubCRev . nppsSubCRev_8u_Sfs ( pSrc . DevicePointer , nValue , pDst . DevicePointer , pSrc . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
8-bit unsigned char signal subtract from constant, scale, then clamp to saturated value.
8 - bit unsigned char signal subtract from constant scale then clamp to saturated value .
CudaDeviceVariable<byte>
this
pDst
CudaDeviceVariable<byte>
Destination signal pointer.
Destination signal pointer .
nValue
byte
Constant value each vector element is to be subtracted from
Constant value each vector element is to be subtracted from
nScaleFactor
int
Integer Result Scaling.
Integer Result Scaling .
pSrc
Source signal pointer.
Source signal pointer .