Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 8-bit unsigned char in place signal subtract from constant,
/// scale, then clamp to saturated value
/// </summary>
/// <param name="pSrcDst">In-Place Signal Pointer.</param>
/// <param name="nValue">Constant value each vector element is to be subtracted from</param>
/// <param name="nScaleFactor">Integer Result Scaling.</param>
8-bit unsigned char in place signal subtract from constant,
scale, then clamp to saturated value
8 - bit unsigned char in place signal subtract from constant scale then clamp to saturated value
public static void SubCRev(this CudaDeviceVariable<byte> pSrcDst, byte nValue, int nScaleFactor)
		{
			NppStatus status = NPPNativeMethods.NPPs.SubCRev.nppsSubCRev_8u_ISfs(nValue, pSrcDst.DevicePointer, pSrcDst.Size, nScaleFactor);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsSubCRev_8u_ISfs", status));
			NPPException.CheckNppStatus(status, pSrcDst);
		}
public static void SubCRev ( this CudaDeviceVariable < byte > pSrcDst , byte nValue , int nScaleFactor ) { NppStatus status = NPPNativeMethods . NPPs . SubCRev . nppsSubCRev_8u_ISfs ( nValue , pSrcDst . DevicePointer , pSrcDst . Size , nScaleFactor ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrcDst ) ; }
8-bit unsigned char in place signal subtract from constant,
scale, then clamp to saturated value
8 - bit unsigned char in place signal subtract from constant scale then clamp to saturated value
CudaDeviceVariable<byte>
this
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 .
pSrcDst
In-Place Signal Pointer.
In - Place Signal Pointer .