for a university project I have to process a lot of fisheye images to
retrieve rectilinear images. I tried defisheye.sh from http://
www.fmwconcepts.com/imagemagick/defisheye/index.php but on our 8 core
ubuntu drive pc it still takes about 90 minutes to process a single
image.
Are there other scripts available for this purpose? Can I use the
hugin tools?
I would be glad if someone could point me in the right direction.
I have the correct lens parameters from the manufacture of the
fisheye lens (Sunex Superfisheye: http://www.superfisheye.com/)
regards,
Hadubard
> Are there other scripts available for this purpose? Can I use the
> hugin tools?
> I would be glad if someone could point me in the right direction.
Do you know the software
lensfun?
http://lensfun.berlios.de/
It is possible to compile ufraw with the lensfun library.
Maybe there is a possibility to use ufraw-batch in combination with lensfun.
Regards
Claus
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
>It is possible to compile ufraw with the lensfun library.
>Maybe there is a possibility to use ufraw-batch in combination with lensfun.
Yes, for RAW files ufraw-batch in combination with lensfun would do
it. For non-RAW files then you can use fulla, a command-line tool
that ships with hugin:
http://wiki.panotools.org/Fulla
Note that either way you will probably need to calibrate your lens
distortion parameters with hugin first.
--
Bruno
>> It is possible to compile ufraw with the lensfun library.
>> Maybe there is a possibility to use ufraw-batch in combination
>> with lensfun.
>
> Yes, for RAW files ufraw-batch in combination with lensfun would do
> it.
I just checked the ufraw website and it doesn't mention a possibility
to correct for fisheye distortions or any other kind of distortion.
So that won't help. Btw. I already used dcraw to convert the raw
images to tiff, but I could work with both types.
> For non-RAW files then you can use fulla, a command-line tool
> that ships with hugin:
>
> http://wiki.panotools.org/Fulla
Thanks, just found that too, I will surely give it a try.
> Note that either way you will probably need to calibrate your lens
> distortion parameters with hugin first.
Why is that? I got the original parameters from Sunnex and I supposed
they know their lenses.
regards,
Hadubard
> > Note that either way you will probably need to calibrate your lens
> > distortion parameters with hugin first.
>
> Why is that? I got the original parameters from Sunnex and I supposed
> they know their lenses.
Parameters for what lens correction model? Panotools (and hence hugin
and fulla) feature a lens correction model based on a default projection
(fisheye, rectilinear, equirectangular etc.) and a correction
polynomial. See http://wiki.panotools.org/Lens_correction_model for
details.
--
Erik Krause
http://www.erik-krause.de
-------- Original-Nachricht --------
> Datum: Mon, 2 Feb 2009 18:48:58 +0100
> Von: Hadubard <hadu...@gmail.com>
> I just checked the ufraw website and it doesn't mention a possibility
> to correct for fisheye distortions or any other kind of distortion.
> So that won't help.
You're right.
lensfun is the lib that delivers the correction.
ufraw is a example for a application that uses this lib.
digikam (for KDE4) is another application that uses this lib.
Regards
Claus
--
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
I'm really not good at all this. It's not really my domain. But
Sunnex gave me a PTGui starter guide saying, that for use with their
lens I had to set some parameters b and c to specified values and the
horizontal field of view of the lens to 185. So I thought that I
could simply come up with a scriptable version of the pano tools, and
since fulla is using the same library that might work?!
Tomorrow I will try fulla. But if you have other recommendations it
would be of great interest to me.
regards,
Hadubard
Yes these is the same system as used in fulla, i.e. you would use
parameters like this: -g a:b:c:d (where a = 0 and d = 1 - a - b - c)
Note that fulla will correct lens distortion and give you a
'perfect' fisheye image, but it won't change the projection.
If you want to extract a rectilinear image then you need to create a
hugin project file with these parameters and with output set to
rectilinear, check that it all works, save the file and use it as a
template with 'nona'.
Probably you don't actually need fulla.
--
Bruno
Ok, I will try that tomorrow.
Thanks for your help. This seems like a real productive group ;-)
regards,
Hadubard
but on our 8 core
ubuntu drive pc it still takes about 90 minutes to process a single
image.
Thanks for mentioning that, but it would still be far too slow for
our purposes. For each set of images we have to process 720 indiviual
images and we can't afford to calculate more than a day for all of them.
And by the way, when I checked the cpu usage using the "top" command
it was constantly at 100%. And I'm not the only one working with that
machine ;-)
regards,
Hadubard
Unless the Sunnex parameters are in the format that hugin/fulla requires
you'll either need to convert the parameters, or calibrate from
scratch.
BugBear
No the artefacts are because you are not rotating the lens around
the 'no parallax point'. This is nothing to do with the lens
distortion.
>Is that possible with fulla? I just tried to use the parameters from
>Sunnex (parameters b and c) with the following fulla command line:
>fulla -v -g 0:-0.2986:0.0671:0 IMG_0711.CR2.tiff
>Where comes the horizontal field of view into it?
>
>The result is here:
>http://user.cs.tu-berlin.de/~baumbach/image3.jpg (compressed version)
>That is not at all what I was looking for.
Assuming that you do want equirectangular panoramas, then you don't
want to convert to rectilinear at all - Slices from (corrected)
fisheye images will do the job.
So you can use fulla/lensfun rather than nona.
>What am I missing? Does it mean, that the parameters are not working
>with fulla and that I have to calibrate using hugin?
The parameters are not working, ptgui works slightly differently and
these images would need to be rotated 90 degrees for the same values
to apply. However the image still looks really wrong, I strongly
recommend you recalibrate the lens with hugin.
--
Bruno
The way I put the image strips together I strongly believe the
artefacts are caused by fisheye distortion. And I strongly believe
that I'm rotating the lens around the point of no parallax. I work on
a stereo viewer and the image you saw is only one of two
perspectives. When I view the stereo images in my application I have
a really convincing stereo impression. I believe that this wouldn't
be like that with a parallax error.
What makes you believe it is a parallax problem?
>> Is that possible with fulla? I just tried to use the parameters from
>> Sunnex (parameters b and c) with the following fulla command line:
>> fulla -v -g 0:-0.2986:0.0671:0 IMG_0711.CR2.tiff
>> Where comes the horizontal field of view into it?
>>
>> The result is here:
>> http://user.cs.tu-berlin.de/~baumbach/image3.jpg (compressed version)
>> That is not at all what I was looking for.
>
> Assuming that you do want equirectangular panoramas, then you don't
> want to convert to rectilinear at all - Slices from (corrected)
> fisheye images will do the job.
So what do you mean with corrected?
> So you can use fulla/lensfun rather than nona.
ok, but how? Calibrating the lens with hugin and than apply the
obtained parameters in the way I did with the wrong parameters?
>> What am I missing? Does it mean, that the parameters are not working
>> with fulla and that I have to calibrate using hugin?
>
> The parameters are not working, ptgui works slightly differently and
> these images would need to be rotated 90 degrees for the same values
> to apply. However the image still looks really wrong, I strongly
> recommend you recalibrate the lens with hugin.
Which image? The third one?
In order to retrieve the correct lens parameters?
regards,
Hadubard