ManagedCuda.NPP.NPPImage_8uC3.Set C# (CSharp) Method

Set() public method

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 Set ( byte nValue, int channel ) : void
nValue byte Value to be set
channel int Channel number. This number is added to the dst pointer
return void
        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);
        }

Same methods

NPPImage_8uC3::Set ( byte nValue ) : void
NPPImage_8uC3::Set ( byte nValue, NPPImage_8uC1 mask ) : void
NPPImage_8uC3