Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 32-bit in place floating point signal threshold with constant level.
/// </summary>
/// <param name="pSrcDst">In-Place Signal Pointer.</param>
/// <param name="nLevel">Constant threshold value to be used to limit each signal sample</param>
/// <param name="nRelOp">NppCmpOp type of thresholding operation (NPP_CMP_LESS or NPP_CMP_GREATER only).</param>
32-bit in place floating point signal threshold with constant level.
32 - bit in place floating point signal threshold with constant level .
public static void Threshold(this CudaDeviceVariable<float> pSrcDst, float nLevel, NppCmpOp nRelOp)
		{
			NppStatus status = NPPNativeMethods.NPPs.Threshold.nppsThreshold_32f_I(pSrcDst.DevicePointer, pSrcDst.Size, nLevel, nRelOp);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsThreshold_32f_I", status));
			NPPException.CheckNppStatus(status, pSrcDst);
		}
public static void Threshold ( this CudaDeviceVariable < float > pSrcDst , float nLevel , NppCmpOp nRelOp ) { NppStatus status = NPPNativeMethods . NPPs . Threshold . nppsThreshold_32f_I ( pSrcDst . DevicePointer , pSrcDst . Size , nLevel , nRelOp ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrcDst ) ; }
32-bit in place floating point signal threshold with constant level.
32 - bit in place floating point signal threshold with constant level .
CudaDeviceVariable<float>
this
nLevel
float
Constant threshold value to be used to limit each signal sample
Constant threshold value to be used to limit each signal sample
nRelOp
NppCmpOp
NppCmpOp type of thresholding operation (NPP_CMP_LESS or NPP_CMP_GREATER only).
NppCmpOp type of thresholding operation ( NPP_CMP_LESS or NPP_CMP_GREATER only ) .
pSrcDst
In-Place Signal Pointer.
In - Place Signal Pointer .