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

SwapChannels() public method

Swap color channels
public SwapChannels ( NPPImage_8uC4 dest, int aDstOrder, byte nValue ) : void
dest NPPImage_8uC4 Destination image
aDstOrder int Integer array describing how channel values are permutated. The n-th entry of the array /// contains the number of the channel that is stored in the n-th channel of the output image. E.g. /// Given an RGB image, aDstOrder = [3,2,1,0] converts this to VBGR channel order.
nValue byte (V) Single channel constant value that can be replicated in one or more of the 4 destination channels. /// nValue is either written or not written to a particular channel depending on the aDstOrder entry for that destination /// channel. An aDstOrder value of 3 will output nValue to that channel, an aDstOrder value greater than 3 will leave that /// particular destination channel value unmodified.
return void
        public void SwapChannels(NPPImage_8uC4 dest, int[] aDstOrder, byte nValue)
        {
            status = NPPNativeMethods.NPPi.SwapChannel.nppiSwapChannels_8u_C3C4R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, aDstOrder, nValue);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSwapChannels_8u_C3C4R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::SwapChannels ( NPPImage_8uC3 dest, int aDstOrder ) : void
NPPImage_8uC3::SwapChannels ( int aDstOrder ) : void
NPPImage_8uC3