Library/ManagedCuda/NPP/NPPImage_8uC3.cs
/// <summary>
/// Set pixel values to nValue. <para/>
/// The 8-bit mask image affects setting of the respective pixels in the destination image. <para/>
/// If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding
/// destination pixel is set to specified value.
/// </summary>
/// <param name="nValue">Value to be set</param>
/// <param name="channel">Channel number. This number is added to the dst pointer</param>
Set pixel values to nValue.
The 8-bit mask image affects setting of the respective pixels in the destination image.
If the mask value is zero (0) the pixel is not set, if the mask is non-zero, the corresponding
destination pixel is set to specified value.
Set pixel values to nValue . The 8 - bit mask image affects setting of the respective pixels in the destination image . If the mask value is zero ( 0 ) the pixel is not set if the mask is non - zero the corresponding destination pixel is set to specified value .
public void Set(byte nValue, int channel)
		{
			if (channel < 0 | channel >= _channels) throw new ArgumentOutOfRangeException("channel", "channel must be in range [0..2].");
			status = NPPNativeMethods.NPPi.MemSet.nppiSet_8u_C3CR(nValue, _devPtrRoi + channel * _typeSize, _pitch, _sizeRoi);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSet_8u_C3CR", status));
			NPPException.CheckNppStatus(status, this);
		}
public void Set ( byte nValue , int channel ) { if ( channel < 0 | channel >= _channels ) throw new ArgumentOutOfRangeException ( " " , " " ) ; status = NPPNativeMethods . NPPi . MemSet . nppiSet_8u_C3CR ( nValue , _devPtrRoi + channel * _typeSize , _pitch , _sizeRoi ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , status ) ) ; NPPException . CheckNppStatus ( status , this ) ; }
Set pixel values to nValue.
Set pixel values to nValue .
nValue
byte
Value to be set
Value to be set
channel
int
Channel number. This number is added to the dst pointer
Channel number . This number is added to the dst pointer