Library/ManagedCuda/NPP/NPPImage_8uC4.cs
/// <summary>
/// If for a comparison operations OP the predicate (sourcePixel.channel OP nThreshold) is true, the channel
/// value is set to nThreshold, otherwise it is set to sourcePixel. Not affecting Alpha.
/// </summary>
/// <param name="dest">Destination image</param>
/// <param name="eComparisonOperation">The type of comparison operation to be used. The only valid values are: NppCmpOp.Less and NppCmpOp.Greater</param>
/// <param name="aThresholds">The threshold values, one per color channel. (Size = 3)</param>
If for a comparison operations OP the predicate (sourcePixel.channel OP nThreshold) is true, the channel
value is set to nThreshold, otherwise it is set to sourcePixel. Not affecting Alpha.
If for a comparison operations OP the predicate ( sourcePixel . channel OP nThreshold ) is true the channel value is set to nThreshold otherwise it is set to sourcePixel . Not affecting Alpha .
public void Threshold(NPPImage_8uC4 dest, NppCmpOp eComparisonOperation, byte[] aThresholds)
		{
			status = NPPNativeMethods.NPPi.Threshold.nppiThreshold_8u_AC4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, aThresholds, eComparisonOperation);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiThreshold_8u_AC4R", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Threshold ( NPPImage_8uC4 dest , NppCmpOp eComparisonOperation , byte [ ] aThresholds ) { status = NPPNativeMethods . NPPi . Threshold . nppiThreshold_8u_AC4R ( _devPtrRoi , _pitch , dest . DevicePointerRoi , dest . Pitch , _sizeRoi , aThresholds , eComparisonOperation ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
If for a comparison operations OP the predicate (sourcePixel.channel OP nThreshold) is true, the channel
value is set to nThreshold, otherwise it is set to sourcePixel.
If for a comparison operations OP the predicate ( sourcePixel . channel OP nThreshold ) is true the channel value is set to nThreshold otherwise it is set to sourcePixel .
dest
NPPImage_8uC4
None
eComparisonOperation
NppCmpOp
The type of comparison operation to be used. The only valid values are: NppCmpOp.Less and NppCmpOp.Greater
The type of comparison operation to be used . The only valid values are : NppCmpOp . Less and NppCmpOp . Greater
aThresholds
byte[]
The threshold values, one per color channel.
The threshold values one per color channel .