Library/ManagedCuda/NPP/NPPImage_16sC4.cs
/// <summary>
/// Image threshold. Not affecting Alpha.<para/>
/// If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set
/// to nValue, otherwise it is set to sourcePixel.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="nThreshold">The threshold value.</param>
/// <param name="nValue">The threshold replacement value.</param>
Image threshold. Not affecting Alpha.
If for a comparison operations sourcePixel is greater than nThreshold is true, the pixel is set
to nValue, otherwise it is set to sourcePixel.
Image threshold . Not affecting Alpha . If for a comparison operations sourcePixel is greater than nThreshold is true the pixel is set to nValue otherwise it is set to sourcePixel .
public void ThresholdGTA(NPPImage_16sC4 dest, short[] nThreshold, short[] nValue)
		{
			status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_GTVal_16s_AC4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nThreshold, nValue);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_GTVal_16s_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void ThresholdGTA ( NPPImage_16sC4 dest , short [ ] nThreshold , short [ ] nValue ) { status = NPPNativeMethods . NPPi . Threshold . nppiThreshold_GTVal_16s_AC4R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , nThreshold , nValue ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image threshold.
Image threshold .
dest
NPPImage_16sC4
None
nThreshold
short[]
The threshold value.
The threshold value .
nValue
short[]
The threshold replacement value.
The threshold replacement value .