fulla can correct both geometric distortion and vignetting,
both of which my Canon A630 is prone to at the wide end of its zoom (circa 35mm).
I established that the distortion parameters (a,b,c) from
my hugin project were directly usable as parameters
to fulla's -g, but that the 'd' parameter (companion to 'e')
in hugin, is not the 'd' that fulla needs. The 'd' that
fulla needs is 1 - ($a + $b + $c);
That works nicely, and my pictures are now undistorted.
I then moved on to vignetting. I used the Exposure
optimiser of hugin 0.7.0 on a LDR panorama
to establish corrections for vignetting.
I then "fished" the Va - Vd numbers out of the project file,
and fed them to fulla's -c argument.
Sadly, my output is now black :-(
Here is a segment of my pto file, and my fulla command line:
i w3264 h2448 f0 Eb1 Eev0.0426853873562094 Er1 Ra-0.289657175540924 Rb-0.160850718617439 Rc-0.698156535625458 Rd0.750597715377808 Re-0.0794976875185966 Va1 Vb-0.299619633752106 Vc0.223789252858095 Vd-0.0834355105414739 Vx0 Vy0 a0.0121556676966267 b-0.0365387828989006 c0.00207187580963575 d0 e0 g0 p1.03313129581927 r-94.3381191539111 t0 v52.9392446427902 y-21.8856217777085 Vm5 u10 n"img_3128.jpg"
fulla -v -o ./IMG_3614_corr.JPG -g 0.0121557:-0.0365388:0.00207188:1.02231122 -c 1:-0.299619633752106:0.223789252858095:-0.0834355105414739 IMG_3614.JPG
All help gratefully received.
BugBear
>I then moved on to vignetting. I used the Exposure
>optimiser of hugin 0.7.0 on a LDR panorama
>to establish corrections for vignetting.
>
>I then "fished" the Va - Vd numbers out of the project file,
>and fed them to fulla's -c argument.
>
>Sadly, my output is now black :-(
Yes, it looks like the fulla -c option is broken, I can't get it to
produce anything useful.
As a workaround you can use a single .pto file and nona to do the
job you want, the only fulla functionality that isn't currently
available in nona is the tca correction.
--
Bruno
It sounds like the best way to create the command
I want (a sort of batch correcter) is therefore
http://search.cpan.org/dist/Panotools-Script/
and nona. Is that your view?
BgBear
Yes I'd probably write a custom perl script using Panotools::Script.
..but the easiest way to do it would be to create a hugin .pto
project that does everything you want to a single photo, save it and
then correct further photos using nona on the command-line:
nona -o IMG_0001-fixed.tif fixthings.pto IMG_0001.tif
Note also that lensfun does a lot of this stuff, so if you use the
latest ufraw-0.14 with lensfun support, then you can use
panotools/hugin lens parameters to 'correct' RAW photos as part of
the RAW conversion process.
--
Bruno