Library/ManagedCuda/NPP/NPPsExtensionMethods.cs
/// <summary>
/// 64-bit floating point signal threshold with constant level.
/// </summary>
/// <param name="pSrc">Source signal pointer.</param>
/// <param name="pDst">Destination 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>
64-bit floating point signal threshold with constant level.
64 - bit floating point signal threshold with constant level .
public static void Threshold(this CudaDeviceVariable<double> pSrc, CudaDeviceVariable<double> pDst, double nLevel, NppCmpOp nRelOp)
		{
			NppStatus status = NPPNativeMethods.NPPs.Threshold.nppsThreshold_64f(pSrc.DevicePointer, pDst.DevicePointer, pSrc.Size, nLevel, nRelOp);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppsThreshold_64f", status));
			NPPException.CheckNppStatus(status, pSrc);
		}
public static void Threshold ( this CudaDeviceVariable < double > pSrc , CudaDeviceVariable < double > pDst , double nLevel , NppCmpOp nRelOp ) { NppStatus status = NPPNativeMethods . NPPs . Threshold . nppsThreshold_64f ( pSrc . DevicePointer , pDst . DevicePointer , pSrc . Size , nLevel , nRelOp ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , pSrc ) ; }
64-bit floating point signal threshold with constant level.
64 - bit floating point signal threshold with constant level .
CudaDeviceVariable<double>
this
pDst
CudaDeviceVariable<double>
Destination signal pointer.
Destination signal pointer .
nLevel
double
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 ) .
pSrc
Source signal pointer.
Source signal pointer .