Library/ManagedCuda/NPP/NPPImage_16sC1.cs
/// <summary>
/// Image threshold.<para/>
/// If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set
/// to nThreshold, otherwise it is set to sourcePixel.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="nThreshold">The threshold value.</param>
/// <param name="eComparisonOperation">eComparisonOperation. Only allowed values are <see cref="NppCmpOp.Less"/> and <see cref="NppCmpOp.Greater"/></param>
Image threshold.
If for a comparison operations OP the predicate (sourcePixel OP nThreshold) is true, the pixel is set
to nThreshold, otherwise it is set to sourcePixel.
Image threshold . If for a comparison operations OP the predicate ( sourcePixel OP nThreshold ) is true the pixel is set to nThreshold otherwise it is set to sourcePixel .
public void Threshold(NPPImage_16sC1 dest, short nThreshold, NppCmpOp eComparisonOperation)
		{
			status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_16s_C1R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nThreshold, eComparisonOperation);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_16s_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Threshold ( NPPImage_16sC1 dest , short nThreshold , NppCmpOp eComparisonOperation ) { status = NPPNativeMethods . NPPi . Threshold . nppiThreshold_16s_C1R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , nThreshold , eComparisonOperation ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image threshold.
Image threshold .
dest
NPPImage_16sC1
None
nThreshold
short
The threshold value.
The threshold value .
eComparisonOperation
NppCmpOp
eComparisonOperation. Only allowed values are  and
eComparisonOperation . Only allowed values are and