Fast automatic image and video devignetting.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8431ce7 Nov 16, 2016
Permalink
Failed to load latest commit information.
Deployment Initial commit Nov 14, 2016
Samples Initial commit Nov 14, 2016
Source Initial commit Nov 14, 2016
.gitignore Initial commit Nov 13, 2016
DotDevignetting.sln Initial commit Nov 14, 2016
README.md Update README.md Nov 16, 2016

README.md

DotDevignetting logo

DotDevignetting

DotDevignetting - Fast automatic image and video devignetting (lens shading correction).
Use it for standalone image correction or real-time video correction (e.g. live-feed from camera).

Samples

Output sample     Output sample

Code

  • Image devignetting:
  var image = ImageIO.LoadColor("(your image)").Clone();
  image.Devignette(optimizeVignettingCentre: true);
  image.Show("Corrected", scaleForm: true);
  • Video devignetting:
  //initialize capture and buffer
  VideoCaptureBase capture = new FileCapture("(your video)"); // /*or*/ capture = new CameraCapture();
  Bgr<byte>[,] frame = null;

  //initialize devignetting alg
  capture.ReadTo(ref frame);
  var devignetting = new Devignetting(frame, optimizeVignettingCentre: true);

  //do the job
  while(true)
  {
      capture.ReadTo(ref frame);
      if (frame == null) break;
        
      devignetting.DevignetteSingleStep(frame);
      frame.Show("Corrected");
  }

  capture.Close();

Getting started

  • Readme file - shown upon installation of the NuGet package.
  • Samples

How to Engage, Contribute and Provide Feedback

Remember: Your opinion is important and will define the future roadmap.

  • questions, comments - message on Github, or write to: darko.juric2 [at] gmail.com
  • spread the word

Final word

If you like the project please star it in order to help to spread the word. That way you will make the framework more significant and in the same time you will motivate me to improve it, so the benefit is mutual.