Ejemplo n.º 1
0
        public static IDebayeredImage Debayer(
            IRenderedImage imageData,
            bool saveColorChannels  = false,
            bool saveLumChannel     = false,
            SensorType bayerPattern = SensorType.RGGB)
        {
            var debayeredImage = ImageUtility.Debayer(imageData.Image, System.Drawing.Imaging.PixelFormat.Format16bppGrayScale, saveColorChannels, saveLumChannel, bayerPattern);

            return(new DebayeredImage(
                       image: debayeredImage.ImageSource,
                       rawImageData: imageData.RawImageData,
                       debayeredData: debayeredImage.Data,
                       saveColorChannels: saveColorChannels,
                       saveLumChannels: saveLumChannel));
        }