public unsafe static void ConvertBgrToBgra_Byte(IImage src, IImage dest)
        {
            var channels = ChannelSplitter.SplitChannels(src, new int[] { Bgr.IdxB, Bgr.IdxG, Bgr.IdxR });

            var alphaChannel = Image.Create(ColorInfo.GetInfo(typeof(Gray), src.ColorInfo.ChannelType), src.Width, src.Height);

            (alphaChannel as Image <Gray, byte>).SetValue(byte.MaxValue);

            ChannelMerger.MergeChannels(new IImage[] { channels[Bgr.IdxB], channels[Bgr.IdxG], channels[Bgr.IdxR], alphaChannel }, dest);
        }
 public static void ConvertGrayToComplex(IImage src, IImage dest)
 {
     ChannelMerger.MergeChannels(new IImage[] { src }, dest, 0); //real(dest)
 }
 public unsafe static void ConvertGrayToBgr(IImage src, IImage dest)
 {
     IImage[] channels = new IImage[] { src, src, src };
     ChannelMerger.MergeChannels(channels, dest);
 }
        public unsafe static void ConvertBgraToBgr(IImage src, IImage dest)
        {
            var channels = ChannelSplitter.SplitChannels(src, new int[] { Bgr.IdxB, Bgr.IdxG, Bgr.IdxR });

            ChannelMerger.MergeChannels(channels, dest);
        }