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

SwapChannels() public method

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

Same methods

NPPImage_16sC3::SwapChannels ( ManagedCuda.NPP.NPPImage_16sC4 dest, int aDstOrder, short nValue ) : void
NPPImage_16sC3::SwapChannels ( int aDstOrder ) : void
NPPImage_16sC3