Skip to content
This repository has been archived by the owner on Dec 25, 2019. It is now read-only.
/ dot-devignetting Public archive

Fast automatic image and video devignetting.

Notifications You must be signed in to change notification settings

dajuric/dot-devignetting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fast automatic image and video devignetting.

Resources

Stars

Watchers

Forks

Packages

No packages published