Log() & Exp() by Accord.Net

Bitmap input = ... 

// Apply log
Logarithm log = new Logarithm();
Bitmap output = log.Apply(input);

// Revert log
Exponential exp = new Exponential();
Bitmap reconstruction = exp.Apply(output);

// Show results on screen
ImageBox.Show("input", input);
ImageBox.Show("output", output);
ImageBox.Show("reconstruction", reconstruction);

댓글

이 블로그의 인기 게시물

Draw Circle on PictureBox when Button Click - Winform

2D FFT of Gray Image by AForge