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).
- 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();
- Readme file - shown upon installation of the NuGet package.
- Samples
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
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.