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

SwapChannels() public method

Swap color channels
public SwapChannels ( NPPImage_8uC3 dest, int aDstOrder ) : void
dest NPPImage_8uC3 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 = [2,1,0] converts this to BGR channel order.
return void
        public void SwapChannels(NPPImage_8uC3 dest, int[] aDstOrder)
        {
            status = NPPNativeMethods.NPPi.SwapChannel.nppiSwapChannels_8u_C3R(_devPtrRoi, _pitch, dest.DevicePointerRoi, dest.Pitch, _sizeRoi, aDstOrder);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nppiSwapChannels_8u_C3R", status));
            NPPException.CheckNppStatus(status, this);
        }

Same methods

NPPImage_8uC3::SwapChannels ( NPPImage_8uC4 dest, int aDstOrder, byte nValue ) : void
NPPImage_8uC3::SwapChannels ( int aDstOrder ) : void
NPPImage_8uC3