Esempio n. 1
0
        public void DecomposeWithSafeCode()
        {
            using (var originalImage = new Bitmap(OriginalFilename))
            {
                var transform      = new ForwardWaveletTransform(1);
                var channels       = new SafeColorChannels(originalImage.Width, originalImage.Height);
                var imageProcessor = new ImageProcessor(channels, transform);
                imageProcessor.ApplyTransform(originalImage);

                VerifyAsImage(originalImage);
            }
        }
Esempio n. 2
0
        public void RecomposeWithSafeCode()
        {
            using (var originalImage = new Bitmap(OneStepFileName))
            {
                WaveletTransform transform = new InverseWaveletTransform(1);
                ColorChannels    channels  = new SafeColorChannels(originalImage.Width, originalImage.Height);
                var imageProcessor         = new ImageProcessor(channels, transform);
                imageProcessor.ApplyTransform(originalImage);

                VerifyAsImage(originalImage);
            }
        }
Esempio n. 3
0
        public void FullRecomposeWithSafeCode()
        {
            using (var originalImage = new Bitmap(DecomposedFilename))
            {
                var width          = originalImage.Width;
                var height         = originalImage.Height;
                var transform      = new InverseWaveletTransform(width, height);
                var channels       = new SafeColorChannels(width, height);
                var imageProcessor = new ImageProcessor(channels, transform);
                imageProcessor.ApplyTransform(originalImage);

                VerifyAsImage(originalImage);
            }
        }