Exemplo n.º 1
0
        public void tone_map()
        {
            if (this.hdr_image == null)
            {
                return;
            }
            DateTime start = DateTime.Now;

            this.tmo.tmo(this.hdr_image, this.hdr_output);
            this.ldr_output = this.hdr_output.convert_to_bgra();
            var flippedImage = new TransformedBitmap(this.ldr_output.BufferSource, new ScaleTransform(1, -1));

            this.img_output.Source = flippedImage;
            //this.img_output.Source = this.ldr_output.BufferSource;
            TimeSpan elapsed = DateTime.Now - start;

            this.txt_elapsed_time.Text = elapsed.Milliseconds.ToString();
        }
Exemplo n.º 2
0
 public void tone_map()
 {
     if (this.hdr_image == null)
         return;
     DateTime start = DateTime.Now;
     this.tmo.tmo(this.hdr_image, this.hdr_output);
     this.ldr_output = this.hdr_output.convert_to_bgra();
     var flippedImage = new TransformedBitmap(this.ldr_output.BufferSource, new ScaleTransform(1, -1));
     this.img_output.Source = flippedImage;
     //this.img_output.Source = this.ldr_output.BufferSource;
     TimeSpan elapsed = DateTime.Now - start;
     this.txt_elapsed_time.Text = elapsed.Milliseconds.ToString();
 }