Log in

View Full Version : DeBarrel Plugin


vcmohan
20th March 2008, 12:01
DeBarrel (http://avisynth.org/vcmohan/DeBarrel/DeBarrel.zip) is a new plugin that corrects for Barrel type or pin cushion type distortions that are present on all images, but noticeable to different extants. Projecting an image on to a flat film or sensor array by the lens creates the distortion.

These are corrected by specifying 3 parameters. On a perfect grid the following distortions were generated using this plugin in reverse.

http://img152.imageshack.us/img152/2500/pin0qn6.th.jpg (http://img152.imageshack.us/my.php?image=pin0qn6.jpg)
http://img152.imageshack.us/img152/4920/barrel0as2.th.jpg (http://img152.imageshack.us/my.php?image=barrel0as2.jpg)

niiyan
20th March 2008, 16:20
@vcmohan,
Hmm, I can't download DeBarrel plugin.
Is that link correct?

---
niiyan

vcmohan
21st March 2008, 03:42
Sorry for that. Now you will be able to down load.

IanB
23rd March 2008, 06:36
The "source" link does not work.


:Edit: Now it does, thanks. :)

vcmohan
23rd March 2008, 09:54
I wanted to clean a bit prior to providing link. I provided the link now and will clean later.

vcmohan
24th March 2008, 12:55
I have added a test option, wherein for a range of coefficients the distorted grids are overlain on the reference frame, to enable finding the values of coefficients.

Comatose
30th March 2008, 07:23
Very nice work.

Undead Sega
31st March 2008, 02:38
Can this be used for when ur using Wide Angle lenses which will tend to give perspective distortion, can this correct it?

vcmohan
31st March 2008, 03:31
Perspective distortion is when you are shooting an object not from a squarely center position. Such distortion can be corrected by my Reform plugin. With a wide angle lens what you mostly see is a barrel type distortion. Please see the full writeup of the plugin. Test procedure to arrive at values of coefficients is given.