Library/ManagedCuda/NPP/NPPImage_8uC4.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_8uC4 dest, byte[] nThresholdLT, byte[] nValueLT, byte[] nThresholdGT, byte[] nValueGT)
		{
			status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_LTValGTVal_8u_AC4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, nThresholdLT, nValueLT, nThresholdGT, nValueGT);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_LTValGTVal_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void ThresholdLTGT ( NPPImage_8uC4 dest , byte [ ] nThresholdLT , byte [ ] nValueLT , byte [ ] nThresholdGT , byte [ ] nValueGT ) { status = NPPNativeMethods . NPPi . Threshold . nppiThreshold_LTValGTVal_8u_AC4R ( _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_8uC4
None
nThresholdLT
byte[]
The thresholdLT value.
The thresholdLT value .
nValueLT
byte[]
The thresholdLT replacement value.
The thresholdLT replacement value .
nThresholdGT
byte[]
The thresholdGT value.
The thresholdGT value .
nValueGT
byte[]
The thresholdGT replacement value.
The thresholdGT replacement value .