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); } }
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); } }
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); } }