Library/ManagedCuda/NPP/NPPImage_16sC1.cs
/// <summary>
/// Image threshold.<para/>
/// If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set
/// to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="nThresholdLT">The thresholdLT value.</param>
/// <param name="nValueLT">The thresholdLT replacement value.</param>
/// <param name="nThresholdGT">The thresholdGT value.</param>
/// <param name="nValueGT">The thresholdGT replacement value.</param>
Image threshold.
If for a comparison operations sourcePixel is less than nThresholdLT is true, the pixel is set
to nValueLT, else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT, otherwise it is set to sourcePixel.
Image threshold . If for a comparison operations sourcePixel is less than nThresholdLT is true the pixel is set to nValueLT else if sourcePixel is greater than nThresholdGT the pixel is set to nValueGT otherwise it is set to sourcePixel .
public void ThresholdLTGT(NPPImage_16sC1 dest, short nThresholdLT, short nValueLT, short nThresholdGT, short nValueGT)
		{
			status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_LTValGTVal_16s_C1R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nThresholdLT, nValueLT, nThresholdGT, nValueGT);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_LTValGTVal_16s_C1R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void ThresholdLTGT ( NPPImage_16sC1 dest , short nThresholdLT , short nValueLT , short nThresholdGT , short nValueGT ) { status = NPPNativeMethods . NPPi . Threshold . nppiThreshold_LTValGTVal_16s_C1R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , nThresholdLT , nValueLT , nThresholdGT , nValueGT ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Image threshold.
Image threshold .
dest
NPPImage_16sC1
None
nThresholdLT
short
The thresholdLT value.
The thresholdLT value .
nValueLT
short
The thresholdLT replacement value.
The thresholdLT replacement value .
nThresholdGT
short
The thresholdGT value.
The thresholdGT value .
nValueGT
short
The thresholdGT replacement value.
The thresholdGT replacement value .